blob: 501dc4487dabe2fc164c501be9280748c6948163 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
set(self floormat-serialize)
file(GLOB sources "*.cpp" CONFIGURE_ARGS)
add_library(${self}_o STATIC "${sources}")
target_link_libraries(
${self}_o PUBLIC
Magnum::Magnum
nlohmann_json::nlohmann_json
)
add_library(${self} STATIC dummy.cc)
target_link_libraries(${self} PUBLIC ${self}_o floormat-loader floormat)
if(FLOORMAT_PRECOMPILED-HEADERS)
target_precompile_headers(${self}_o PRIVATE precomp.hpp)
endif()
if(MSVC)
add_compile_options(-EHsc)
endif()
|