Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/FICN/src/misc/testing/CMakeLists.txt @ 727

Last change on this file since 727 was 727, checked in by bensch, 16 years ago

FICN: Added simple testing facilities to CMake.this is an example of how to implement Testing using CMake.

The Boolean cache-option TESTING_ENABLED can be triggered to enable all tests. Be aware to add all testing subdirectory includes into a IF(TESTING_ENABLED) clause.

File size: 169 bytes
Line 
1INCLUDE_DIRECTORIES(${INCLUDE_DIRECTORIES}
2        ../
3)
4
5ADD_EXECUTABLE(TestConverter
6 TestConverter.cpp
7)
8
9
10ADD_TEST(TestConverter
11        ${EXECUTABLE_OUTPUT_PATH}/TestConverter
12)
Note: See TracBrowser for help on using the repository browser.