Added testrunner test to cmake. #7098
This commit is contained in:
parent
70c20515a9
commit
1d7fac3ca9
|
@ -12,6 +12,10 @@ include(cmake/buildFiles.cmake REQUIRED)
|
||||||
|
|
||||||
file(GLOB cfgs "cfg/*.cfg")
|
file(GLOB cfgs "cfg/*.cfg")
|
||||||
|
|
||||||
|
if (BUILD_TESTS)
|
||||||
|
enable_testing()
|
||||||
|
endif()
|
||||||
|
|
||||||
add_subdirectory(externals/tinyxml)
|
add_subdirectory(externals/tinyxml)
|
||||||
add_subdirectory(lib) # CppCheck Library
|
add_subdirectory(lib) # CppCheck Library
|
||||||
add_subdirectory(cli) # Client application
|
add_subdirectory(cli) # Client application
|
||||||
|
|
|
@ -20,4 +20,6 @@ if (BUILD_TESTS)
|
||||||
|
|
||||||
add_dependencies(testrunner copy_cfg)
|
add_dependencies(testrunner copy_cfg)
|
||||||
|
|
||||||
|
add_test(NAME testrunner COMMAND testrunner WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue