cutest/CMakeLists.txt

14 lines
386 B
CMake
Raw Normal View History

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
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()
add_test (cutest CuTestTest)
2012-06-03 09:25:23 +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")