mirror of https://github.com/AxioDL/metaforce.git
38 lines
991 B
CMake
38 lines
991 B
CMake
|
project(qztest)
|
||
|
|
||
|
set(QZTEST_SOURCES
|
||
|
qztest.h
|
||
|
testjlcompress.h
|
||
|
testquachecksum32.h
|
||
|
testquagzipfile.h
|
||
|
testquaziodevice.h
|
||
|
testquazip.h
|
||
|
testquazipdir.h
|
||
|
testquazipfile.h
|
||
|
testquazipfileinfo.h
|
||
|
testquazipnewinfo.h
|
||
|
qztest.cpp
|
||
|
testjlcompress.cpp
|
||
|
testquachecksum32.cpp
|
||
|
testquagzipfile.cpp
|
||
|
testquaziodevice.cpp
|
||
|
testquazip.cpp
|
||
|
testquazipdir.cpp
|
||
|
testquazipfile.cpp
|
||
|
testquazipfileinfo.cpp
|
||
|
testquazipnewinfo.cpp
|
||
|
)
|
||
|
|
||
|
add_executable(${PROJECT_NAME} ${QZTEST_SOURCES} qztest.qrc)
|
||
|
set_target_properties(${PROJECT_NAME} PROPERTIES AUTORCC ON)
|
||
|
target_link_libraries(${PROJECT_NAME}
|
||
|
${QUAZIP_TEST_QT_LIBRARIES}
|
||
|
QuaZip::QuaZip
|
||
|
)
|
||
|
|
||
|
add_test(NAME qztest_test
|
||
|
COMMAND qztest
|
||
|
WORKING_DIRECTORY ${QUAZIP_BINARY_DIR}/quazip # preliminary hack to find the dll on windows
|
||
|
)
|
||
|
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --verbose DEPENDS qztest)
|