diff options
author | 3gg <3gg@shellblade.net> | 2023-03-02 20:03:52 -0800 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2023-03-02 20:03:52 -0800 |
commit | 664006b1c42aae84a3c749d9b71c1047e0b8ffcf (patch) | |
tree | e08f8af944b132742b3bb1d240d8954328e667e5 /vm/CMakeLists.txt |
Diffstat (limited to 'vm/CMakeLists.txt')
-rw-r--r-- | vm/CMakeLists.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/vm/CMakeLists.txt b/vm/CMakeLists.txt new file mode 100644 index 0000000..3199ce6 --- /dev/null +++ b/vm/CMakeLists.txt | |||
@@ -0,0 +1,19 @@ | |||
1 | cmake_minimum_required(VERSION 3.0) | ||
2 | |||
3 | project(vm) | ||
4 | |||
5 | # Library | ||
6 | add_library(vm | ||
7 | src/vm.c) | ||
8 | |||
9 | target_include_directories(vm PUBLIC | ||
10 | ${CMAKE_CURRENT_SOURCE_DIR}/src) | ||
11 | |||
12 | # Tests | ||
13 | add_executable(vmtest | ||
14 | test/vm_test.c) | ||
15 | |||
16 | target_link_libraries(vmtest | ||
17 | vm) | ||
18 | |||
19 | target_compile_options(vmtest PRIVATE -DUNIT_TEST -Wall -Wextra) | ||