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

Revision 689, 1.2 kB (checked in by mido, 15 years ago)

new version of libconfig added
an improvement of testsuite - calling of "testsuite print" prints all the currently prepared unit tests
a CMakeLists.txt modificiation to remowe CMake 2.8 warnings

RevLine 
[418]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
[689]14# From CMake version 2.8, it is not allowed to add subdirectories without
15# their CMakeLists, therfore were the following two lines commented out:
16# add_subdirectory(Posix)
17# add_subdirectory(Win32)
Note: See TracBrowser for help on using the browser.