1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
cmake_minimum_required(VERSION 3.5) project(list) # Library add_library(list INTERFACE) target_include_directories(list INTERFACE include) # Test add_executable(list_test test/list_test.c) target_link_libraries(list_test list) target_compile_options(list_test PRIVATE -DUNIT_TEST -Wall -Wextra)