diff options
author | Mauro Sardara <msardara+fdio@cisco.com> | 2017-06-05 15:45:33 +0200 |
---|---|---|
committer | Mauro Sardara <msardara+fdio@cisco.com> | 2017-06-05 16:46:09 +0200 |
commit | b9969fb070049f4c9319ab1465481a9709525e6e (patch) | |
tree | 12578cb76fc0db9d1fbad5ce64516dadd70a0aad /libccnx-transport-rta/ccnx/transport | |
parent | 5e7ad51c32a92b84e2e42741d96c68ec834e6f8b (diff) |
- Adding support for iOS
- Adding build type: DEBUG, RELEASE, RELEASE with debug symbols, RELEASE with min size executable
Change-Id: Idd76bc93af6a90e9e491c53373d845f49b6b3b45
Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
Diffstat (limited to 'libccnx-transport-rta/ccnx/transport')
-rw-r--r-- | libccnx-transport-rta/ccnx/transport/CMakeLists.txt | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/libccnx-transport-rta/ccnx/transport/CMakeLists.txt b/libccnx-transport-rta/ccnx/transport/CMakeLists.txt index 119826cb..a1416ea1 100644 --- a/libccnx-transport-rta/ccnx/transport/CMakeLists.txt +++ b/libccnx-transport-rta/ccnx/transport/CMakeLists.txt @@ -181,20 +181,24 @@ set(TRANSPORT_RTA_SOURCE_FILES ${RTA_COMMANDS_SRCS} ) -add_library(ccnx_transport_rta STATIC ${TRANSPORT_RTA_SOURCE_FILES}) -add_library(ccnx_transport_rta.shared SHARED ${TRANSPORT_RTA_SOURCE_FILES}) - -set_target_properties(ccnx_transport_rta.shared PROPERTIES - C_STANDARD 99 - SOVERSION 1 - VERSION 1.0 - OUTPUT_NAME ccnx_transport_rta ) - -set(libccnx_transport_rta_libraries - ccnx_transport_rta - ccnx_transport_rta.shared - ) - +if(COMPILE_FOR_IOS OR ANDROID_API) + add_library(ccnx_transport_rta STATIC ${TRANSPORT_RTA_SOURCE_FILES}) + set(libccnx_transport_rta_libraries + ccnx_transport_rta + ) +else() + add_library(ccnx_transport_rta STATIC ${TRANSPORT_RTA_SOURCE_FILES}) + add_library(ccnx_transport_rta.shared SHARED ${TRANSPORT_RTA_SOURCE_FILES}) + set_target_properties(ccnx_transport_rta.shared PROPERTIES + C_STANDARD 99 + SOVERSION 1 + VERSION 1.0 + OUTPUT_NAME ccnx_transport_rta ) + set(libccnx_transport_rta_libraries + ccnx_transport_rta + ccnx_transport_rta.shared + ) +endif() foreach(lib ${libccnx_transport_rta_libraries}) install(TARGETS ${lib} COMPONENT library LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) set_property(TARGET ${lib} PROPERTY C_STANDARD 99) |