From d481edb3619e251285c238c05f47a121ecd96df7 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 12 Nov 2022 13:43:34 +0100 Subject: cmake: add targets for loader, serialize, draw --- draw/CMakeLists.txt | 11 +++++++++++ draw/precomp.hpp | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 draw/CMakeLists.txt create mode 100644 draw/precomp.hpp (limited to 'draw') diff --git a/draw/CMakeLists.txt b/draw/CMakeLists.txt new file mode 100644 index 00000000..ded948b8 --- /dev/null +++ b/draw/CMakeLists.txt @@ -0,0 +1,11 @@ +set(self floormat-draw) +file(GLOB sources "*.cpp" CONFIGURE_ARGS) +add_library(${self} STATIC "${sources}") +target_link_libraries( + ${self} PUBLIC + floormat + Magnum::GL +) +if(FLOORMAT_PRECOMPILED-HEADERS) + target_precompile_headers(${self} PRIVATE precomp.hpp) +endif() diff --git a/draw/precomp.hpp b/draw/precomp.hpp new file mode 100644 index 00000000..0b357722 --- /dev/null +++ b/draw/precomp.hpp @@ -0,0 +1,2 @@ +#pragma once +#include "../src/precomp.hpp" -- cgit v1.2.3