blob: 1813ba9004c680b04fc8ece98d857c33b4ba8131 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
set(self floormat-serialize)
file(GLOB sources "*.cpp" "../loader/*.cpp" CONFIGURE_ARGS)
add_library(${self} OBJECT "${sources}")
target_link_libraries(
${self} PUBLIC
Magnum::Magnum
Magnum::Trade
nlohmann_json::nlohmann_json
fmt::fmt
)
if(MSVC)
add_compile_options(-EHsc)
endif()
if(WIN32 OR MAGNUM_BUILD_PLUGINS_STATIC)
target_link_libraries(${self} PUBLIC
MagnumPlugins::StbImageImporter
Magnum::TgaImporter
)
endif()
if(WIN32)
target_link_libraries(${self} PUBLIC ntdll)
endif()
if(FLOORMAT_PRECOMPILED-HEADERS)
target_precompile_headers(${self} PRIVATE precomp.hpp)
endif()
|