gimi/CMakeLists.txt

20 lines
522 B
CMake
Raw Normal View History

2024-07-21 18:40:56 +02:00
cmake_minimum_required(VERSION 3.30)
project(gimi VERSION 0.1.0 LANGUAGES C)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED true)
2024-07-22 09:17:46 +02:00
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
2024-07-21 18:40:56 +02:00
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY build)
2024-07-22 09:17:46 +02:00
add_library(toml STATIC ./libs/tomlc99/toml.h ./libs/tomlc99/toml.c)
2024-07-21 22:15:01 +02:00
file(GLOB_RECURSE SRC CONFIGURE_DEPENDS ./src/*.c ./src/*.h)
configure_file(src/gimi_constants.h.in src/gimi_constants.h)
2024-07-21 18:40:56 +02:00
2024-07-22 09:17:46 +02:00
include_directories(libs/tomlc99)
2024-07-21 18:40:56 +02:00
add_executable(gimi ${SRC})
2024-07-22 09:17:46 +02:00
target_link_libraries(gimi PUBLIC toml)