Skip to content

Commit

Permalink
Make tests a part of the QuaZip project
Browse files Browse the repository at this point in the history
Remove the EXCLUDE_FROM_ALL flag and the sub-project.
Now the tests are just another target within the QuaZip
project, which should make CI easier, according to #134.
  • Loading branch information
stachenov committed Nov 3, 2021
1 parent 01b984e commit 02aa5ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
8 changes: 3 additions & 5 deletions qztest/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
project(qztest)

set(QZTEST_SOURCES
qztest.h
testjlcompress.h
Expand All @@ -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
)
Expand Down

0 comments on commit 02aa5ae

Please sign in to comment.