1 CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
5 SET(LIB_NAME "UnitTest++")
6 SET(TEST_NAME "TestUnitTest++")
8 SET(LIB_SOURCE_FILES "UnitTest++/src/AssertException.cpp"
9 "UnitTest++/src/Test.cpp"
10 "UnitTest++/src/Checks.cpp"
11 "UnitTest++/src/TestRunner.cpp"
12 "UnitTest++/src/TestResults.cpp"
13 "UnitTest++/src/TestReporter.cpp"
14 "UnitTest++/src/TestReporterStdout.cpp"
15 "UnitTest++/src/ReportAssert.cpp"
16 "UnitTest++/src/TestList.cpp"
17 "UnitTest++/src/TimeConstraint.cpp"
18 "UnitTest++/src/TestDetails.cpp"
19 "UnitTest++/src/MemoryOutStream.cpp"
20 "UnitTest++/src/DeferredTestReporter.cpp"
21 "UnitTest++/src/DeferredTestResult.cpp"
22 "UnitTest++/src/XmlTestReporter.cpp"
23 "UnitTest++/src/CurrentTest.cpp")
25 SET(TEST_SOURCE_FILES "UnitTest++/src/tests/Main.cpp"
26 "UnitTest++/src/tests/TestAssertHandler.cpp"
27 "UnitTest++/src/tests/TestChecks.cpp"
28 "UnitTest++/src/tests/TestUnitTest++.cpp"
29 "UnitTest++/src/tests/TestTest.cpp"
30 "UnitTest++/src/tests/TestTestResults.cpp"
31 "UnitTest++/src/tests/TestTestRunner.cpp"
32 "UnitTest++/src/tests/TestCheckMacros.cpp"
33 "UnitTest++/src/tests/TestTestList.cpp"
34 "UnitTest++/src/tests/TestTestMacros.cpp"
35 "UnitTest++/src/tests/TestTimeConstraint.cpp"
36 "UnitTest++/src/tests/TestTimeConstraintMacro.cpp"
37 "UnitTest++/src/tests/TestMemoryOutStream.cpp"
38 "UnitTest++/src/tests/TestDeferredTestReporter.cpp"
39 "UnitTest++/src/tests/TestXmlTestReporter.cpp"
40 "UnitTest++/src/tests/TestCurrentTest.cpp")
44 LIST(APPEND LIB_SOURCE_FILES "UnitTest++/src/Win32/TimeHelpers.cpp")
46 LIST(APPEND LIB_SOURCE_FILES "UnitTest++/src/Posix/SignalTranslator.cpp"
47 "UnitTest++/src/Posix/TimeHelpers.cpp")
50 ADD_LIBRARY(${LIB_NAME} STATIC ${LIB_SOURCE_FILES})
52 ADD_EXECUTABLE(${TEST_NAME} ${TEST_SOURCE_FILES} ${OSG_ADD_GLOBAL_EXE_SRC})
54 TARGET_LINK_LIBRARIES(${TEST_NAME} ${LIB_NAME})