Revise acl common cmake (#6340)
author오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Thu, 8 Aug 2019 00:45:46 +0000 (09:45 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Thu, 8 Aug 2019 00:45:46 +0000 (09:45 +0900)
- Add strict build option: nnfw_common
- Link arm_compute and arm_compute_ex library
- Include path acl_common for acl_common user (acl_cl, acl_neon)

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
runtimes/neurun/backend/acl_common/CMakeLists.txt

index e97cd7f..2ad3d2f 100644 (file)
@@ -4,16 +4,17 @@ if(NOT ARMCompute_FOUND)
   return()
 endif(NOT ARMCompute_FOUND)
 
-
 file(GLOB SOURCES "*.cc")
 
 add_library(${LIB_NEURUN_BACKEND_ACL_COMMON} STATIC ${SOURCES})
 
 target_include_directories(${LIB_NEURUN_BACKEND_ACL_COMMON} PUBLIC ${NEURUN_INCLUDE_DIR})
-
-target_link_libraries(${LIB_NEURUN_BACKEND_ACL_COMMON} arm_compute)
-target_link_libraries(${LIB_NEURUN_BACKEND_ACL_COMMON} nnfw_lib_misc nnfw_lib_cpp14)
+target_include_directories(${LIB_NEURUN_BACKEND_ACL_COMMON} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
+target_link_libraries(${LIB_NEURUN_BACKEND_ACL_COMMON} PUBLIC arm_compute arm_compute_ex)
+target_link_libraries(${LIB_NEURUN_BACKEND_ACL_COMMON} PUBLIC nnfw_lib_misc nnfw_lib_cpp14)
+target_link_libraries(${LIB_NEURUN_BACKEND_ACL_COMMON} PRIVATE nnfw_common)
 
 set_target_properties(${LIB_NEURUN_BACKEND_ACL_COMMON} PROPERTIES POSITION_INDEPENDENT_CODE ON)
 set_target_properties(${LIB_NEURUN_BACKEND_ACL_COMMON} PROPERTIES OUTPUT_NAME backend_acl_common)
+
 install(TARGETS ${LIB_NEURUN_BACKEND_ACL_COMMON} DESTINATION lib)