From: 박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 Date: Mon, 11 Feb 2019 02:00:45 +0000 (+0900) Subject: [enco.core] Explicit dependent library visibility (#3018) X-Git-Tag: nncc_backup~868 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ab8c48ec32738fff93d046782865b238b31f9064;p=platform%2Fcore%2Fml%2Fnnfw.git [enco.core] Explicit dependent library visibility (#3018) This commit makes the visibility of enco_core's dependent libraries explicit. Signed-off-by: Jonghyun Park --- diff --git a/contrib/enco/core/CMakeLists.txt b/contrib/enco/core/CMakeLists.txt index 02723c1..b144ff2 100644 --- a/contrib/enco/core/CMakeLists.txt +++ b/contrib/enco/core/CMakeLists.txt @@ -11,12 +11,13 @@ list(REMOVE_ITEM SOURCES ${TESTS}) add_library(enco_core SHARED ${SOURCES}) target_include_directories(enco_core PRIVATE src) target_include_directories(enco_core PUBLIC include) -target_link_libraries(enco_core enco_intf_cmdline) -target_link_libraries(enco_core coco_core) -target_link_libraries(enco_core coco_generic) -target_link_libraries(enco_core pp) -target_link_libraries(enco_core morph) -target_link_libraries(enco_core stdex) +target_link_libraries(enco_core PUBLIC enco_intf_cmdline) +target_link_libraries(enco_core PUBLIC coco_core) +target_link_libraries(enco_core PUBLIC coco_generic) +# These libraries are linked for internal use, and thus does not appear in public headers. +target_link_libraries(enco_core PRIVATE pp) +target_link_libraries(enco_core PRIVATE morph) +target_link_libraries(enco_core PRIVATE stdex) nncc_find_package(GTest QUIET) @@ -28,4 +29,5 @@ add_executable(enco_core_test ${TESTS}) target_include_directories(enco_core_test PRIVATE src) target_link_libraries(enco_core_test gtest_main) target_link_libraries(enco_core_test enco_core) +target_link_libraries(enco_core_test morph) add_test(enco_core_test enco_core_test)