2022-07-30 12:24:03 -04:00
|
|
|
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
|
|
|
|
project(Codegen LANGUAGES C CXX)
|
|
|
|
|
2022-12-12 14:23:53 -05:00
|
|
|
include(../cmake/CPM.cmake)
|
|
|
|
|
|
|
|
CPMAddPackage("gh:fmtlib/fmt#9.1.0")
|
2023-02-26 10:21:04 -05:00
|
|
|
CPMAddPackage("gh:geode-sdk/Broma#b1adda0")
|
2022-07-30 12:24:03 -04:00
|
|
|
|
|
|
|
file(GLOB SOURCES
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(${PROJECT_NAME} ${SOURCES})
|
2022-12-13 00:36:50 -05:00
|
|
|
target_compile_features(Codegen PUBLIC cxx_std_17)
|
2022-12-12 14:23:53 -05:00
|
|
|
|
2022-12-14 11:05:46 -05:00
|
|
|
target_link_libraries(Codegen PRIVATE fmt::fmt Broma)
|
2022-07-30 12:24:03 -04:00
|
|
|
target_include_directories(Codegen PRIVATE
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src
|
|
|
|
)
|
|
|
|
|
|
|
|
target_precompile_headers(Codegen PRIVATE
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/Shared.hpp
|
2022-11-12 09:16:46 -05:00
|
|
|
)
|
|
|
|
|
2023-02-19 11:24:39 -05:00
|
|
|
install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX})
|