From f9c5ec11383d71504ae59c6084ab7b46c3832a17 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 1 Dec 2022 19:55:00 +0100 Subject: cmake: allow more parallelization --- serialize/CMakeLists.txt | 11 ++++++----- serialize/dummy.cc | 0 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 serialize/dummy.cc (limited to 'serialize') diff --git a/serialize/CMakeLists.txt b/serialize/CMakeLists.txt index 4f73f716..501dc448 100644 --- a/serialize/CMakeLists.txt +++ b/serialize/CMakeLists.txt @@ -1,15 +1,16 @@ set(self floormat-serialize) file(GLOB sources "*.cpp" CONFIGURE_ARGS) -add_library(${self} STATIC "${sources}") +add_library(${self}_o STATIC "${sources}") target_link_libraries( - ${self} PUBLIC - floormat-loader - floormat + ${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} PRIVATE precomp.hpp) + target_precompile_headers(${self}_o PRIVATE precomp.hpp) endif() if(MSVC) diff --git a/serialize/dummy.cc b/serialize/dummy.cc new file mode 100644 index 00000000..e69de29b -- cgit v1.2.3