mirror of
https://github.com/ennorehling/cutest.git
synced 2024-12-22 07:52:21 +00:00
19 lines
502 B
CMake
19 lines
502 B
CMake
project (cutest C)
|
|
|
|
FILE (GLOB LIB_HDR *.h)
|
|
add_library (${PROJECT_NAME} CuTest.c ${LIB_HDR})
|
|
|
|
add_executable (CuTestTest AllTests.c CuTestTest.c)
|
|
target_link_libraries (CuTestTest cutest)
|
|
|
|
enable_testing()
|
|
add_test (cutest CuTestTest)
|
|
|
|
IF (MSVC)
|
|
find_package (MSVC MODULE)
|
|
MSVC_CRT_SECURE_NO_WARNINGS (${PROJECT_NAME} CuTestTest)
|
|
ENDIF (MSVC)
|
|
|
|
set (CUTEST_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE INTERNAL "CuTest headers")
|
|
set (CUTEST_LIBRARIES cutest CACHE INTERNAL "CuTest libraries")
|