diff --git a/CMakeLists.txt b/CMakeLists.txt index b2e8922..687dce3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -70,5 +70,5 @@ add_subdirectory(quazip) if(QUAZIP_ENABLE_TESTS) message(STATUS "Building QuaZip tests") enable_testing() - add_subdirectory(qztest EXCLUDE_FROM_ALL) + add_subdirectory(qztest) endif() diff --git a/qztest/CMakeLists.txt b/qztest/CMakeLists.txt index 65b7f55..fd5da07 100644 --- a/qztest/CMakeLists.txt +++ b/qztest/CMakeLists.txt @@ -1,5 +1,3 @@ -project(qztest) - set(QZTEST_SOURCES qztest.h testjlcompress.h @@ -23,9 +21,9 @@ set(QZTEST_SOURCES testquazipnewinfo.cpp ) -add_executable(${PROJECT_NAME} ${QZTEST_SOURCES} qztest.qrc) -set_target_properties(${PROJECT_NAME} PROPERTIES AUTORCC ON) -target_link_libraries(${PROJECT_NAME} +add_executable(qztest ${QZTEST_SOURCES} qztest.qrc) +set_target_properties(qztest PROPERTIES AUTORCC ON) +target_link_libraries(qztest ${QUAZIP_TEST_QT_LIBRARIES} QuaZip::QuaZip )