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

Revision 418, 1.0 kB (checked in by vbarta, 15 years ago)

#27: added UnitTest?++ to bdm sources, changed test_user_data to use it

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
14add_subdirectory(Posix)
15add_subdirectory(Win32)
Note: See TracBrowser for help on using the browser.