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 tsl::robin_map ) if(MSVC) add_compile_options(-EHsc) endif() if(WIN32 OR MAGNUM_BUILD_PLUGINS_STATIC) target_link_libraries(${self} PUBLIC MagnumPlugins::StbImageImporter Magnum::TgaImporter tsl::robin_map ) endif() if(WIN32) target_link_libraries(${self} PUBLIC ntdll) endif() if(NOT MSVC) target_precompile_headers(${self} REUSE_FROM floormat) else() target_precompile_headers(${self} PRIVATE ../src/precomp.hpp) endif()