Added testrunner test to cmake. #7098

This commit is contained in:
Frank Zingsheim 2015-11-26 21:01:07 +01:00
parent 70c20515a9
commit 1d7fac3ca9
2 changed files with 6 additions and 0 deletions

View File

@ -12,6 +12,10 @@ include(cmake/buildFiles.cmake REQUIRED)
file(GLOB cfgs "cfg/*.cfg")
if (BUILD_TESTS)
enable_testing()
endif()
add_subdirectory(externals/tinyxml)
add_subdirectory(lib) # CppCheck Library
add_subdirectory(cli) # Client application

View File

@ -20,4 +20,6 @@ if (BUILD_TESTS)
add_dependencies(testrunner copy_cfg)
add_test(NAME testrunner COMMAND testrunner WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
endif()