This commit is contained in:
Vitor Santos Costa 2016-04-05 08:04:09 +01:00
parent 5dbe54dadc
commit dfbdce4240
1 changed files with 14 additions and 6 deletions

View File

@ -26,11 +26,24 @@ endif ()
SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${my_cxx_flags}" )
SET( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${my_cxx_flags}" )
add_library (utf8proc
if (ANDROID)
add_library (utf8proc OBJECT
utf8proc.c
utf8proc.h
)
else(ANDROID)
add_library (utf8proc SHARED
utf8proc.c
utf8proc.h
)
install(TARGETS utf8proc
LIBRARY DESTINATION ${libdir}
ARCHIVE DESTINATION ${libdir})
endif(ANDROID)
set_target_properties (utf8proc PROPERTIES
POSITION_INDEPENDENT_CODE ON
VERSION "${SO_MAJOR}.${SO_MINOR}.${SO_PATCH}"
@ -41,8 +54,3 @@ set_target_properties (utf8proc PROPERTIES
set ( YAP_YAPUTF8LIB $<TARGET_FILE_NAME:utf8proc> )
install(TARGETS utf8proc
LIBRARY DESTINATION ${libdir}
ARCHIVE DESTINATION ${libdir})