2012-06-03 06:59:41 +00:00
|
|
|
project (cutest C)
|
|
|
|
|
2012-06-07 03:16:25 +00:00
|
|
|
FILE (GLOB LIB_HDR *.h)
|
|
|
|
add_library (${PROJECT_NAME} CuTest.c ${LIB_HDR})
|
2012-06-03 06:59:41 +00:00
|
|
|
|
2012-06-04 05:29:30 +00:00
|
|
|
add_executable (CuTestTest AllTests.c CuTestTest.c)
|
|
|
|
target_link_libraries (CuTestTest cutest)
|
2012-06-03 06:59:41 +00:00
|
|
|
|
2012-06-03 09:25:23 +00:00
|
|
|
enable_testing()
|
2012-06-04 05:29:30 +00:00
|
|
|
add_test (cutest CuTestTest)
|
2012-06-03 09:25:23 +00:00
|
|
|
|
2012-06-04 05:29:30 +00:00
|
|
|
IF (MSVC)
|
|
|
|
find_package (MSVC MODULE)
|
2012-06-04 06:38:24 +00:00
|
|
|
MSVC_CRT_SECURE_NO_WARNINGS (${PROJECT_NAME} CuTestTest)
|
2012-06-04 05:29:30 +00:00
|
|
|
ENDIF (MSVC)
|
2012-06-03 18:48:07 +00:00
|
|
|
|
2012-06-04 03:30:42 +00:00
|
|
|
set (CUTEST_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE INTERNAL "CuTest headers")
|
2012-06-04 01:42:51 +00:00
|
|
|
set (CUTEST_LIBRARIES cutest CACHE INTERNAL "CuTest libraries")
|