From 9d7cd404cc2d09c82b65be4828be0ac74eca20a7 Mon Sep 17 00:00:00 2001 From: gcontini <1121667+gcontini@users.noreply.github.com> Date: 周三, 01 1月 2020 20:26:43 +0800 Subject: [PATCH] cleanup & new api --- src/library/locate/CMakeLists.txt | 14 ++++---------- 1 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/library/locate/CMakeLists.txt b/src/library/locate/CMakeLists.txt index 6c19298..0862d6c 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,6 @@ LocatorFactory.cpp ) -add_dependencies( locators os base ) - -target_link_libraries( - locators - os - base -) - -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