[neurun] Refine neurun-core CMakeLists (#6635)
author이한종/On-Device Lab(SR)/Engineer/삼성전자 <hanjoung.lee@samsung.com>
Wed, 14 Aug 2019 12:01:47 +0000 (21:01 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Wed, 14 Aug 2019 12:01:47 +0000 (21:01 +0900)
Refine `target_link_libraries`.

- One target per line
- Remove duplicated lib - `dl`

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
runtimes/neurun/core/CMakeLists.txt

index f56b482..6df1198 100644 (file)
@@ -4,7 +4,9 @@ add_library(neurun-core STATIC ${SOURCES})
 set_target_properties(neurun-core PROPERTIES POSITION_INDEPENDENT_CODE ON)
 target_include_directories(neurun-core PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
 target_include_directories(neurun-core PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src)
-target_link_libraries(neurun-core PUBLIC nnfw_lib_misc nnfw_lib_cpp14)
-target_link_libraries(neurun-core PRIVATE nnfw_lib_cker dl)
-target_link_libraries(neurun-core PRIVATE dl nnfw_common)
+target_link_libraries(neurun-core PUBLIC nnfw_lib_misc)
+target_link_libraries(neurun-core PUBLIC nnfw_lib_cpp14)
+target_link_libraries(neurun-core PRIVATE nnfw_lib_cker)
+target_link_libraries(neurun-core PRIVATE nnfw_common)
 target_link_libraries(neurun-core PRIVATE nnfw_coverage)
+target_link_libraries(neurun-core PRIVATE dl)