- Timestamp:
- Apr 22, 2012, 10:41:02 AM (13 years ago)
- Location:
- code/branches/testing/test
- Files:
-
- 3 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/testing/test/CMakeLists.txt
r9114 r9115 2 2 3 3 ADD_CUSTOM_TARGET(test COMMAND ${CMAKE_CTEST_COMMAND} "$(ARGS)" COMMENT "Running tests") 4 5 ADD_EXECUTABLE(sample_test EXCLUDE_FROM_ALL SampleTest.cc)6 ADD_DEPENDENCIES(test sample_test)7 8 ADD_TEST(sample_test ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/sample_test)9 10 11 IF(Boost_UNIT_TEST_FRAMEWORK_FOUND)12 INCLUDE_DIRECTORIES(13 ${Boost_INCLUDE_DIRS}14 )15 ADD_EXECUTABLE(boost_test EXCLUDE_FROM_ALL BoostTest.cc)16 TARGET_LINK_LIBRARIES(boost_test ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY})17 ADD_DEPENDENCIES(test boost_test)18 19 ADD_TEST(boost_test_sample ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/boost_test)20 ENDIF()21 22 INCLUDE_DIRECTORIES(23 ../src/external/gtest/include24 ../src/external/gmock/include25 )26 27 ADD_EXECUTABLE(28 gtest_sample29 EXCLUDE_FROM_ALL30 ${GTEST_MAIN}31 gtest_samples/sample1.cc32 gtest_samples/sample1_unittest.cc33 gtest_samples/sample2.cc34 gtest_samples/sample2_unittest.cc35 gtest_samples/sample3_unittest.cc36 gtest_samples/sample4.cc37 gtest_samples/sample4_unittest.cc38 )39 TARGET_LINK_LIBRARIES(gtest_sample gtest_orxonox)40 ADD_DEPENDENCIES(test gtest_sample)41 42 ADD_TEST(gtest_sample ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/gtest_sample)43 44 #-----------------45 4 46 5 CONFIGURE_FILE("CTestCustom.cmake" "CTestCustom.cmake" @ONLY) … … 51 10 ../src/orxonox 52 11 ../src/modules 12 ../src/external/gtest/include 13 ../src/external/gmock/include 53 14 ${CMAKE_BINARY_DIR}/src 54 15 ${Boost_INCLUDE_DIRS}
Note: See TracChangeset
for help on using the changeset viewer.