Adds initial intermediate qt6 porting state
This commit is contained in:
11247 files changed
+1891537
No files matched your search
@@ -0,0 +1,47 @@
|
||||
#
|
||||
# CMake Script
|
||||
# $Id$
|
||||
# $HeadURL$
|
||||
# $Author$
|
||||
#
|
||||
|
||||
FIND_PACKAGE(BZip2 REQUIRED)
|
||||
SET(nglcomp_SRCS
|
||||
nglcomp_bzip2iodevice.cpp
|
||||
nglcomp_bzip2iodevice.h
|
||||
nglcomp_compress.cpp
|
||||
nglcomp_compress.h
|
||||
nglcomp_export.h
|
||||
nglcomp_tarfilter.cpp
|
||||
nglcomp_tarfilter.h
|
||||
)
|
||||
NGL_ADD_LIBRARY(WS nglcompression SHARED ${nglcomp_SRCS})
|
||||
NGL_TARGET_LINK_LIBRARIES(nglcompression
|
||||
PUBLIC
|
||||
Qt5::Core
|
||||
PRIVATE
|
||||
Qt5::Concurrent
|
||||
NGLLogger
|
||||
${BZIP2_LIBRARIES}
|
||||
# BZip2::BZip2 # not available with cmake 3.5
|
||||
)
|
||||
NGL_TARGET_INCLUDE_DIRECTORIES(nglcompression
|
||||
PRIVATE
|
||||
${BZIP2_INCLUDE_DIR}
|
||||
)
|
||||
NGL_INSTALL_TARGET(nglcompression)
|
||||
|
||||
IF(BUILD_WS AND BUILD_TESTING)
|
||||
REMOVE_DEFINITIONS(-DQT_GUI_LIB)
|
||||
ADD_EXECUTABLE(nglcomp_test nglcomp_test.cpp nglcomp_test.h)
|
||||
|
||||
TARGET_LINK_LIBRARIES(nglcomp_test
|
||||
NGLLogger
|
||||
nglcoreapplication
|
||||
ngltools
|
||||
nglcompression
|
||||
Qt5::Test
|
||||
)
|
||||
|
||||
ADD_TEST(NAME nglcomp_test COMMAND $<TARGET_FILE:nglcomp_test>)
|
||||
ENDIF()
|
||||
Reference in new issue
Block a user