cmake_minimum_required(VERSION 3.16) project(mempool) # Library add_library(mempool src/mempool.c) target_include_directories(mempool PUBLIC include) target_compile_options(mempool PRIVATE -Wall -Wextra) # Test add_executable(mempool_test test/mempool_test.c) target_link_libraries(mempool_test mempool) target_compile_options(mempool_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra)