From e38a8e6b150522febe3be4d7e16d8150a1fae090 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Thu, 6 Mar 2025 17:03:19 -0500 Subject: [PATCH] build: build lib/common as static library --- src/lib/common/CMakeLists.txt | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/lib/common/CMakeLists.txt b/src/lib/common/CMakeLists.txt index 72a5315f3..9b1c2fe6c 100644 --- a/src/lib/common/CMakeLists.txt +++ b/src/lib/common/CMakeLists.txt @@ -1,11 +1,9 @@ -# SPDX-FileCopyrightText: (C) 2024 Chris Rizzitello +# SPDX-FileCopyrightText: (C) 2024 - 2025 Chris Rizzitello # SPDX-License-Identifier: MIT -set(CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE ON) - configure_file(constants.h.in constants.h @ONLY) -add_library(common INTERFACE +add_library(common STATIC common.h version.h IInterface.h @@ -21,9 +19,9 @@ add_library(common INTERFACE stdvector.h ${CMAKE_CURRENT_BINARY_DIR}/constants.h ) - -target_link_libraries(common INTERFACE Qt6::Core) +set_target_properties(common PROPERTIES LINKER_LANGUAGE CXX) +target_link_libraries(common PUBLIC Qt6::Core) if(APPLE) - target_sources(common INTERFACE MacOSXPrecomp.h) + target_sources(common PUBLIC MacOSXPrecomp.h) endif()