summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..6234a7a
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,9 @@
+cmake_minimum_required(VERSION 3.14)
+project(wadb VERSION 0.0.0 LANGUAGES C)
+add_executable(${PROJECT_NAME} main.c leb128.c)
+target_link_libraries(${PROJECT_NAME} PRIVATE dwarf)
+target_compile_options(${PROJECT_NAME} PRIVATE -Wall)
+
+if(CMAKE_BUILD_TYPE STREQUAL "Debug")
+ target_compile_options(${PROJECT_NAME} PRIVATE -Og)
+endif()