summaryrefslogtreecommitdiffhomepage
path: root/test/CMakeLists.txt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-12-02 11:07:08 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-12-02 13:11:04 +0100
commit93197c83cae3f3da5fb3f3ba55a7909336079a44 (patch)
treeaa2a386c6a1a5554779e8aa6fc7e689bac548306 /test/CMakeLists.txt
parent9a0ac7c7fd06a60f0e61b88828eaa59c0ee30fdd (diff)
cmake: try to fix ci link error
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r--test/CMakeLists.txt17
1 files changed, 8 insertions, 9 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index adcd246f..6eea9f5f 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -3,21 +3,20 @@ file(GLOB sources "*.cpp" CONFIGURE_ARGS)
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/test")
-add_library(${self}_o STATIC ${sources})
-target_link_libraries(${self}_o PUBLIC Magnum::GL Magnum::Trade nlohmann_json::nlohmann_json)
+add_executable(${self} "${sources}")
+
+target_link_libraries(${self} PRIVATE floormat-serialize floormat)
+target_link_libraries(${self} PRIVATE Magnum::GL Magnum::Trade nlohmann_json::nlohmann_json)
if(APPLE)
- target_link_libraries(${self}_o PUBLIC Magnum::WindowlessCglApplication)
+ target_link_libraries(${self} PRIVATE Magnum::WindowlessCglApplication)
elseif(WIN32)
- target_link_libraries(${self}_o PUBLIC Magnum::WindowlessWglApplication)
- target_link_libraries(${self}_o PUBLIC ntdll)
+ target_link_libraries(${self} PRIVATE Magnum::WindowlessWglApplication)
+ target_link_libraries(${self} PRIVATE ntdll)
else()
- target_link_libraries(${self}_o PUBLIC Magnum::WindowlessGlxApplication)
+ target_link_libraries(${self} PRIVATE Magnum::WindowlessGlxApplication)
endif()
-add_executable(${self} dummy.cc)
-target_link_libraries(${self} PUBLIC ${self}_o floormat-loader floormat-serialize floormat)
-
if(FLOORMAT_PRECOMPILED-HEADERS)
target_precompile_headers(${self} PRIVATE precomp.hpp)
endif()