diff options
Diffstat (limited to 'mem/CMakeLists.txt')
| -rw-r--r-- | mem/CMakeLists.txt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/mem/CMakeLists.txt b/mem/CMakeLists.txt new file mode 100644 index 0000000..233d2be --- /dev/null +++ b/mem/CMakeLists.txt | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | cmake_minimum_required(VERSION 3.0) | ||
| 2 | |||
| 3 | project(mem) | ||
| 4 | |||
| 5 | # Library | ||
| 6 | |||
| 7 | add_library(mem | ||
| 8 | src/mem.c) | ||
| 9 | |||
| 10 | target_include_directories(mem PUBLIC | ||
| 11 | include) | ||
| 12 | |||
| 13 | target_link_libraries(mem | ||
| 14 | list) | ||
| 15 | |||
| 16 | target_compile_options(mem PRIVATE -Wall -Wextra) | ||
| 17 | |||
| 18 | # Test | ||
| 19 | |||
| 20 | add_executable(mem_test | ||
| 21 | test/mem_test.c) | ||
| 22 | |||
| 23 | target_link_libraries(mem_test | ||
| 24 | mem) | ||
| 25 | |||
| 26 | target_compile_options(mem_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra) | ||
