mirror of
https://github.com/ennorehling/cutest.git
synced 2024-12-22 07:52:21 +00:00
add cmake configuration for MSVC
This commit is contained in:
parent
d00bb596fa
commit
6a3b89d6bf
@ -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})
|
||||||
|
Loading…
Reference in New Issue
Block a user