gimi/CMakeLists.txt

19 lines
522 B
CMake

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)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY build)
add_library(toml STATIC ./libs/tomlc99/toml.h ./libs/tomlc99/toml.c)
file(GLOB_RECURSE SRC CONFIGURE_DEPENDS ./src/*.c ./src/*.h)
configure_file(src/gimi_constants.h.in src/gimi_constants.h)
include_directories(libs/tomlc99)
add_executable(gimi ${SRC})
target_link_libraries(gimi PUBLIC toml)