2012-06-03 06:59:41 +00:00
|
|
|
project (cutest C)
|
|
|
|
|
|
|
|
add_library (cutest CuTest.c)
|
|
|
|
|
|
|
|
add_executable (AllTests AllTests.c CuTestTest.c)
|
|
|
|
target_link_libraries (AllTests cutest)
|
|
|
|
|
2012-06-03 09:25:23 +00:00
|
|
|
enable_testing()
|
2012-06-03 06:59:41 +00:00
|
|
|
add_test (cutest AllTests)
|
2012-06-03 09:25:23 +00:00
|
|
|
|
|
|
|
find_package (MSVC QUIET)
|
|
|
|
if (${MSVC_FOUND})
|
|
|
|
MSVC_CRT_SECURE_NO_WARNINGS (cutest)
|
|
|
|
MSVC_CRT_SECURE_NO_WARNINGS (AllTests)
|
|
|
|
endif (${MSVC_FOUND})
|