Debian Codegraph @

tests/CppUTest/CMakeLists.txt

raw
1 set(CppUTestTests_src
2 AllTests.cpp
3 SetPluginTest.cpp
4 CheatSheetTest.cpp
5 SimpleStringTest.cpp
6 SimpleStringCacheTest.cpp
7 CompatabilityTests.cpp
8 CommandLineArgumentsTest.cpp
9 TestFailureTest.cpp
10 TestFailureNaNTest.cpp
11 CommandLineTestRunnerTest.cpp
12 TestFilterTest.cpp
13 TestHarness_cTest.cpp
14 JUnitOutputTest.cpp
15 TestHarness_cTestCFile.c
16 DummyMemoryLeakDetector.cpp
17 MemoryLeakDetectorTest.cpp
18 TestInstallerTest.cpp
19 AllocLetTestFree.c
20 MemoryOperatorOverloadTest.cpp
21 TestMemoryAllocatorTest.cpp
22 MemoryLeakWarningTest.cpp
23 TestOutputTest.cpp
24 AllocLetTestFreeTest.cpp
25 TestRegistryTest.cpp
26 AllocationInCFile.c
27 PluginTest.cpp
28 TestResultTest.cpp
29 PreprocessorTest.cpp
30 TestUTestMacro.cpp
31 TestUTestStringMacro.cpp
32 AllocationInCppFile.cpp
33 UtestTest.cpp
34 SimpleMutexTest.cpp
35 UtestPlatformTest.cpp
36 TeamCityOutputTest.cpp
37 )
38
39 if (MSVC)
40 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4723")
41 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4723")
42 endif (MSVC)
43
44 if (MINGW)
45 find_package (Threads REQUIRED)
46 set(THREAD_LIB "pthread")
47 endif (MINGW)
48
49 if (${CMAKE_HOST_SYSTEM_NAME} MATCHES "OpenBSD")
50 set (THREADS_HAVE_PTHREAD_ARG 1)
51 find_package (Threads REQUIRED)
52 set (THREAD_LIB "pthread")
53 endif ()
54
55 add_executable(CppUTestTests ${CppUTestTests_src})
56 cpputest_normalize_test_output_location(CppUTestTests)
57 target_link_libraries(CppUTestTests CppUTest ${THREAD_LIB})
58
59 if (TESTS_BUILD_DISCOVER)
60 cpputest_buildtime_discover_tests(CppUTestTests)
61 endif()