breakhack/linkedlist/CMakeLists.txt

16 lines
350 B
CMake
Raw Normal View History

2017-11-30 21:00:47 +01:00
cmake_minimum_required (VERSION 3.2.0)
SET(CMAKE_COLOR_MAKEFILE ON)
project(linkedlist C)
add_definitions("-Wall")
add_library(linkedlist linkedlist.c)
enable_testing()
add_executable(test_list check_linkedlist linkedlist)
2017-12-05 13:40:52 +01:00
target_compile_options(test_list PRIVATE -pthread)
2017-11-30 21:00:47 +01:00
target_link_libraries(test_list -lcheck)
add_test(test_list test_list)