aboutsummaryrefslogtreecommitdiff
path: root/vm/CMakeLists.txt
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2023-03-02 20:03:52 -0800
committer3gg <3gg@shellblade.net>2023-03-02 20:03:52 -0800
commit664006b1c42aae84a3c749d9b71c1047e0b8ffcf (patch)
treee08f8af944b132742b3bb1d240d8954328e667e5 /vm/CMakeLists.txt
Initial commit.HEADmain
Diffstat (limited to 'vm/CMakeLists.txt')
-rw-r--r--vm/CMakeLists.txt19
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 @@
1cmake_minimum_required(VERSION 3.0)
2
3project(vm)
4
5# Library
6add_library(vm
7 src/vm.c)
8
9target_include_directories(vm PUBLIC
10 ${CMAKE_CURRENT_SOURCE_DIR}/src)
11
12# Tests
13add_executable(vmtest
14 test/vm_test.c)
15
16target_link_libraries(vmtest
17 vm)
18
19target_compile_options(vmtest PRIVATE -DUNIT_TEST -Wall -Wextra)