From 13cf6fe70cc68bd4d803385f5c6d7fe9c7691247 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 7 Sep 2023 11:38:59 +0200 Subject: build: add a build version without libraries --- source/lib/control/CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'source/lib/control/CMakeLists.txt') diff --git a/source/lib/control/CMakeLists.txt b/source/lib/control/CMakeLists.txt index 2fce909..9e5a33d 100644 --- a/source/lib/control/CMakeLists.txt +++ b/source/lib/control/CMakeLists.txt @@ -6,7 +6,7 @@ file(GLOB_RECURSE LIB_SOURCES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" CONFIGURE_D find_package("Boost" REQUIRED COMPONENTS "headers") find_package("spdlog" REQUIRED) -add_library("wanda-${LIB_NAME}" +add_library("wanda-${LIB_NAME}" ${WANDA_LIBRARY_TYPE} ${LIB_SOURCES} ) @@ -37,8 +37,10 @@ target_link_libraries("wanda-${LIB_NAME}" PUBLIC "spdlog::spdlog_header_only" ) -install(TARGETS "wanda-${LIB_NAME}" - FILE_SET HEADERS -) +if(NOT WANDA_APPLICATIONS_ONLY) + install(TARGETS "wanda-${LIB_NAME}" + FILE_SET HEADERS + ) +endif() add_library("wanda::${LIB_NAME}" ALIAS "wanda-${LIB_NAME}") -- cgit v1.2.3