From 8d405b265285c368df2e9cf1c14acee7532e0ee7 Mon Sep 17 00:00:00 2001 From: nancy.liao <huihui.liao@greentest.com.cn> Date: ćšć, 29 5æ 2025 18:14:38 +0800 Subject: [PATCH] Merge branch 'develop' of http://139.9.88.116:3000/r/module/open-license-manager into develop --- src/library/locate/CMakeLists.txt | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/library/locate/CMakeLists.txt b/src/library/locate/CMakeLists.txt index 6c19298..22d78b8 100644 --- a/src/library/locate/CMakeLists.txt +++ b/src/library/locate/CMakeLists.txt @@ -1,4 +1,4 @@ -ADD_LIBRARY(locators STATIC +add_library(locate OBJECT ApplicationFolder.cpp EnvironmentVarLocation.cpp EnvironmentVarData.cpp @@ -7,12 +7,11 @@ LocatorFactory.cpp ) -add_dependencies( locators os base ) - -target_link_libraries( - locators - os - base +target_include_directories(locate PRIVATE + $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../../include> + $<BUILD_INTERFACE:${LCC_INCLUDE_DIR}> ) -install(TARGETS locators ARCHIVE DESTINATION lib/${PROJECT_NAME}/${LCC_PROJECT_NAME}) \ No newline at end of file +if(CODE_COVERAGE AND UNIX) + target_compile_options(locate PUBLIC -O0 -g --coverage) +endif(CODE_COVERAGE AND UNIX) \ No newline at end of file -- Gitblit v1.9.1