From: 박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 Date: Fri, 5 Oct 2018 01:07:56 +0000 (+0900) Subject: 'nncc_foundation' as a static library (#1753) X-Git-Tag: nncc_backup~1626 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=52b7a0c50fc4dc5124a2dd9998aeed56d5dc1d96;p=platform%2Fcore%2Fml%2Fnnfw.git 'nncc_foundation' as a static library (#1753) This commit converts 'nncc_fountion' as a static library in order to permit the use of this library without installation. Signed-off-by: Jonghyun Park --- diff --git a/libs/foundation/CMakeLists.txt b/libs/foundation/CMakeLists.txt index 6e66987..c06e381 100644 --- a/libs/foundation/CMakeLists.txt +++ b/libs/foundation/CMakeLists.txt @@ -3,7 +3,9 @@ file(GLOB_RECURSE SOURCES "src/*.cpp") file(GLOB_RECURSE TESTS "src/*.test.cpp") list(REMOVE_ITEM SOURCES ${TESTS}) -add_nncc_library(nncc_foundation SHARED ${HEADERS} ${SOURCES}) +# NOTE STATIC is deliberately used here to permit the use of 'nncc_foundation' without installation +add_nncc_library(nncc_foundation STATIC ${HEADERS} ${SOURCES}) +set_target_properties(nncc_foundation PROPERTIES POSITION_INDEPENDENT_CODE ON) set_target_properties(nncc_foundation PROPERTIES LINKER_LANGUAGE CXX) target_include_directories(nncc_foundation PUBLIC include)