diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2025-05-18 12:36:57 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2025-05-22 01:29:09 +0200 |
| commit | 3020949c380baa4c2817c597de0ff0c7f8473087 (patch) | |
| tree | 1265fc648779e2364c3d6a75788711fbeb50eeea /CMakeLists.txt | |
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 9 |
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() |
