root/library/tests/unittest-cpp/CMakeLists.txt @ 736

Revision 736, 1.2 kB (checked in by mido, 14 years ago)

a small improvement of TestRunner?, now cleaning enviroment for each test - but it did not help, merger_2d_stress (and others) is stil running improperly

Line 
1# Create a library called "unittest" which includes sources from this
2# platform's subdirectory
3
4SET(unittest_src AssertException.cpp AssertException.h CheckMacros.h Checks.cpp Checks.h Config.h CurrentTest.cpp CurrentTest.h DeferredTestReporter.cpp DeferredTestReporter.h DeferredTestResult.cpp DeferredTestResult.h ExecuteTest.h MemoryOutStream.cpp MemoryOutStream.h ReportAssert.cpp ReportAssert.h Test.cpp Test.h TestDetails.cpp TestDetails.h TestList.cpp TestList.h TestMacros.h TestReporter.cpp TestReporter.h TestReporterStdout.cpp TestReporterStdout.h TestResults.cpp TestResults.h TestRunner.cpp TestRunner.h TestSuite.h TimeConstraint.cpp TimeConstraint.h TimeHelpers.h UnitTest++.h XmlTestReporter.cpp XmlTestReporter.h)
5
6IF(WIN32)
7   SET(unittest_src ${unittest_src} Win32/TimeHelpers.cpp Win32/TimeHelpers.h)
8ELSE()
9   SET(unittest_src ${unittest_src} Posix/SignalTranslator.cpp Posix/SignalTranslator.h Posix/TimeHelpers.cpp Posix/TimeHelpers.h)
10ENDIF()
11
12add_library(unittest ${unittest_src})
13
14target_link_libraries(unittest  bdm)
15
16
17# From CMake version 2.8, it is not allowed to add subdirectories without
18# their CMakeLists, therfore the following two lines were commented out:
19# add_subdirectory(Posix)
20# add_subdirectory(Win32)
Note: See TracBrowser for help on using the browser.