# List the source files
set(SRCS AssertException.cpp
         Checks.cpp
         CurrentTest.cpp
         DeferredTestReporter.cpp
         DeferredTestResult.cpp
         MemoryOutStream.cpp
         ReportAssert.cpp
         Test.cpp
         TestDetails.cpp
         TestList.cpp
         TestReporter.cpp
         TestReporterStdout.cpp
         TestResults.cpp
         TestRunner.cpp
         TimeConstraint.cpp
         XmlTestReporter.cpp
)

# List the plateform-specific source files
if (WIN32)
    set(SRCS_PLATFORM Win32/TimeHelpers.cpp)
    set(INCLUDE_PLATFORM ${UNITTEST_CPP_SOURCE_DIR}/include/Win32)
else(WIN32)
    set(SRCS_PLATFORM Posix/SignalTranslator.cpp Posix/TimeHelpers.cpp)
    set(INCLUDE_PLATFORM ${UNITTEST_CPP_SOURCE_DIR}/include/Posix)
endif(WIN32)

# List the include paths
include_directories(${UNITTEST_CPP_SOURCE_DIR}/include ${INCLUDE_PLATFORM})

# Declaration of the library
add_library(UnitTest++ STATIC ${SRCS} ${SRCS_PLATFORM})

# List the source files
set(SRCS AssertException.cpp
         Checks.cpp
         CurrentTest.cpp
         DeferredTestReporter.cpp
         DeferredTestResult.cpp
         MemoryOutStream.cpp
         ReportAssert.cpp
         Test.cpp
         TestDetails.cpp
         TestList.cpp
         TestReporter.cpp
         TestReporterStdout.cpp
         TestResults.cpp
         TestRunner.cpp
         TimeConstraint.cpp
         XmlTestReporter.cpp
)

# List the plateform-specific source files
if (WIN32)
    set(SRCS_PLATFORM Win32/TimeHelpers.cpp)
    set(INCLUDE_PLATFORM ${UNITTEST_CPP_SOURCE_DIR}/include/Win32)
else(WIN32)
    set(SRCS_PLATFORM Posix/SignalTranslator.cpp Posix/TimeHelpers.cpp)
    set(INCLUDE_PLATFORM ${UNITTEST_CPP_SOURCE_DIR}/include/Posix)
endif(WIN32)

# List the include paths
include_directories(${UNITTEST_CPP_SOURCE_DIR}/include ${INCLUDE_PLATFORM})

# Disable some warnings in Visual Studio
if (WIN32)
    add_definitions(-D_CRT_SECURE_NO_WARNINGS)
endif()

# Declaration of the library
add_library(UnitTest++ STATIC ${SRCS} ${SRCS_PLATFORM})

Remove some warnings with Visual Studio
Remove some warnings with Visual Studio
