aboutsummaryrefslogtreecommitdiff
path: root/mem/CMakeLists.txt
blob: 233d2bee5e227530f9a96230fe449eb198da274c (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
cmake_minimum_required(VERSION 3.0)

project(mem)

# Library

add_library(mem
  src/mem.c)

target_include_directories(mem PUBLIC
  include)

target_link_libraries(mem
  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)