aboutsummaryrefslogtreecommitdiff
path: root/mem/CMakeLists.txt
blob: 007a95b67b7da257858440b95e257017a6a4f784 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
cmake_minimum_required(VERSION 3.5)

project(mem)

# Library

add_library(mem
  src/mem.c)

target_include_directories(mem PUBLIC
  include)

target_link_libraries(mem
  cassert
  list)

target_compile_options(mem PRIVATE -Wall -Wextra)

# Test

add_executable(mem_test
  test/mem_test.c)

target_link_libraries(mem_test
  mem)

target_compile_options(mem_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra)