diff options
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r-- | test/CMakeLists.txt | 17 |
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() |