add cmake configuration for MSVC

This commit is contained in:
Enno Rehling 2012-06-03 02:25:23 -07:00
parent d00bb596fa
commit 6a3b89d6bf

View File

@ -1,10 +1,15 @@
project (cutest C)
enable_testing()
add_library (cutest CuTest.c)
add_executable (AllTests AllTests.c CuTestTest.c)
target_link_libraries (AllTests cutest)
enable_testing()
add_test (cutest AllTests)
find_package (MSVC QUIET)
if (${MSVC_FOUND})
MSVC_CRT_SECURE_NO_WARNINGS (cutest)
MSVC_CRT_SECURE_NO_WARNINGS (AllTests)
endif (${MSVC_FOUND})