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

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

the real update of libconfig with an addaptation of its directories
all cfg files added directly into VS solution (this change is actually concerning only the \tests directory)

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