15 lines
299 B
CMake
15 lines
299 B
CMake
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)
|
|
target_link_libraries(test_list -lcheck)
|
|
add_test(test_list test_list)
|