add cmake configuration for MSVC

This commit is contained in:
Enno Rehling 2012-06-03 02:25:23 -07:00
parent d00bb596fa
commit 6a3b89d6bf
1 changed files with 7 additions and 2 deletions

View File

@ -1,10 +1,15 @@
project (cutest C) project (cutest C)
enable_testing()
add_library (cutest CuTest.c) add_library (cutest CuTest.c)
add_executable (AllTests AllTests.c CuTestTest.c) add_executable (AllTests AllTests.c CuTestTest.c)
target_link_libraries (AllTests cutest) target_link_libraries (AllTests cutest)
enable_testing()
add_test (cutest AllTests) 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})