geode/codegen/Broma/CMakeLists.txt
matcool 2c3520f454 Add CPM.cmake, use it for external libraries
this removes submodules and external libraries in the code in favor of
importing them as CPM packages. CPM_SOURCE_CACHE is recommended as
codegen has to readd two of the same dependencies
2022-12-12 18:20:24 -03:00

12 lines
No EOL
397 B
CMake

cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
project(Broma LANGUAGES C CXX)
add_library(Broma ${CMAKE_CURRENT_SOURCE_DIR}/src/broma.cpp)
target_compile_features(Broma PRIVATE cxx_std_17)
target_include_directories(Broma PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
target_compile_definitions(Broma PUBLIC TAO_PEGTL_GHC_FILESYSTEM=1)
target_link_libraries(Broma taocpp::pegtl ghc_filesystem)