Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9022


Ignore:
Timestamp:
Feb 26, 2012, 4:22:54 PM (10 years ago)
Author:
landauf
Message:

sample tests with google test

Location:
code/branches/testing/test
Files:
13 added
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/testing/test/CMakeLists.txt

    r9020 r9022  
    66ADD_DEPENDENCIES(test sample_test)
    77
    8 ADD_TEST(test1a ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/sample_test)
    9 ADD_TEST(test1b ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/sample_test)
    10 ADD_TEST(test1c ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/sample_test)
     8ADD_TEST(sample_test ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/sample_test)
    119
    1210
     
    1917  ADD_DEPENDENCIES(test boost_test)
    2018
    21   ADD_TEST(test2 ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/boost_test)
     19  ADD_TEST(boost_test_sample ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/boost_test)
    2220ENDIF()
     21
     22INCLUDE_DIRECTORIES(
     23  ../src/external/gtest/include
     24  ../src/external/gmock/include
     25)
     26
     27ADD_EXECUTABLE(
     28    gtest_sample
     29    EXCLUDE_FROM_ALL
     30    ${GTEST_MAIN}
     31    gtest_samples/sample1.cc
     32    gtest_samples/sample1_unittest.cc
     33    gtest_samples/sample2.cc
     34    gtest_samples/sample2_unittest.cc
     35    gtest_samples/sample3_unittest.cc
     36    gtest_samples/sample4.cc
     37    gtest_samples/sample4_unittest.cc
     38)
     39TARGET_LINK_LIBRARIES(gtest_sample gtest_orxonox)
     40ADD_DEPENDENCIES(test gtest_sample)
     41
     42ADD_TEST(gtest_sample ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/gtest_sample)
Note: See TracChangeset for help on using the changeset viewer.