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