Add cmake target for RDC
RDC will provide cmake files exporting the INCLUDE/LIBRARY targets. Change-Id: I8e8aeff426c45eae823d988f6473424ccf29687c
Tá an tiomantas seo le fáil i:
@@ -265,13 +265,22 @@ if ("${CMAKE_BUILD_TYPE}" STREQUAL Release)
|
||||
endif()
|
||||
endif ()
|
||||
|
||||
# use the target_include_directories() command to specify the include directories for the target
|
||||
target_include_directories(${BOOTSTRAP_LIB}
|
||||
PUBLIC
|
||||
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
|
||||
"$<INSTALL_INTERFACE:${RDC_CLIENT_INSTALL_PREFIX}/rdc/include>"
|
||||
)
|
||||
|
||||
## Add the install directives for the runtime library.
|
||||
if(BUILD_STANDALONE)
|
||||
install(TARGETS ${BOOTSTRAP_LIB} ${RDC_LIB} ${RDCCLIENT_LIB}
|
||||
EXPORT rdcTargets
|
||||
LIBRARY DESTINATION ${RDC_CLIENT_INSTALL_PREFIX}/${RDC}/lib
|
||||
COMPONENT ${CLIENT_COMPONENT})
|
||||
else()
|
||||
install(TARGETS ${BOOTSTRAP_LIB} ${RDC_LIB}
|
||||
EXPORT rdcTargets
|
||||
LIBRARY DESTINATION ${RDC_CLIENT_INSTALL_PREFIX}/${RDC}/lib
|
||||
COMPONENT ${CLIENT_COMPONENT})
|
||||
endif()
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir