2022-07-30 12:24:03 -04:00
|
|
|
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
|
|
|
|
project(Codegen LANGUAGES C CXX)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
|
|
|
|
add_subdirectory(Broma)
|
2022-11-28 11:32:25 -05:00
|
|
|
add_subdirectory(../loader/include/Geode/external/fmt ${CMAKE_CURRENT_BINARY_DIR}/fmt)
|
|
|
|
add_subdirectory(../loader/include/Geode/external/filesystem ${CMAKE_CURRENT_BINARY_DIR}/fs)
|
2022-07-30 12:24:03 -04:00
|
|
|
|
|
|
|
file(GLOB SOURCES
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(${PROJECT_NAME} ${SOURCES})
|
|
|
|
target_link_libraries(Codegen PRIVATE fmt::fmt Broma)
|
|
|
|
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
|
|
|
)
|
|
|
|
|
|
|
|
install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX})
|