mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 21:20:19 +00:00
5f9df02ffc
I wasn't linking the tests against the qrc library, which made trying to load the xslt transformation files for the parse test fail. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
28 lines
No EOL
795 B
CMake
28 lines
No EOL
795 B
CMake
# QTest based tests
|
|
macro(TEST NAME FILE)
|
|
add_executable(${NAME} ${FILE} ${SUBSURFACE_RESOURCES} )
|
|
target_link_libraries(${NAME} subsurface_corelib ${QT_TEST_LIBRARIES} ${SUBSURFACE_LINK_LIBRARIES} )
|
|
add_test(NAME ${NAME} COMMAND $<TARGET_FILE:${NAME}>)
|
|
endmacro()
|
|
|
|
enable_testing()
|
|
add_definitions(-g)
|
|
TEST(TestUnitConversion testunitconversion.cpp)
|
|
TEST(TestProfile testprofile.cpp)
|
|
TEST(TestGpsCoords testgpscoords.cpp)
|
|
TEST(TestParse testparse.cpp)
|
|
TEST(TestPlan testplan.cpp)
|
|
TEST(TestDiveSiteDuplication testdivesiteduplication.cpp)
|
|
TEST(TestRenumber testrenumber.cpp)
|
|
TEST(TestGitStorage testgitstorage.cpp)
|
|
|
|
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND}
|
|
DEPENDS
|
|
TestUnitConversion
|
|
TestProfile
|
|
TestGpsCoords
|
|
TestParse
|
|
TestGitStorage
|
|
TestPlan
|
|
TestDiveSiteDuplication
|
|
) |