[CMake] Add UTF8PROC_NO_INSTALL option (#152)
* [CMake] Add UTF8PROC_NO_INSTALL option * change to UTF8PROC_INSTALL
This commit is contained in:
parent
e57cb43f2c
commit
416749803b
@ -13,6 +13,8 @@ set(SO_MAJOR 2)
|
|||||||
set(SO_MINOR 2)
|
set(SO_MINOR 2)
|
||||||
set(SO_PATCH 0)
|
set(SO_PATCH 0)
|
||||||
|
|
||||||
|
option(UTF8PROC_INSTALL "Enable installation of utf8proc" On)
|
||||||
|
|
||||||
add_library (utf8proc
|
add_library (utf8proc
|
||||||
utf8proc.c
|
utf8proc.c
|
||||||
utf8proc.h
|
utf8proc.h
|
||||||
@ -46,12 +48,14 @@ set_target_properties (utf8proc PROPERTIES
|
|||||||
SOVERSION ${SO_MAJOR}
|
SOVERSION ${SO_MAJOR}
|
||||||
)
|
)
|
||||||
|
|
||||||
install(TARGETS utf8proc
|
if (UTF8PROC_INSTALL)
|
||||||
RUNTIME DESTINATION bin
|
install(TARGETS utf8proc
|
||||||
LIBRARY DESTINATION lib
|
RUNTIME DESTINATION bin
|
||||||
ARCHIVE DESTINATION lib)
|
LIBRARY DESTINATION lib
|
||||||
|
ARCHIVE DESTINATION lib)
|
||||||
|
|
||||||
install(
|
install(
|
||||||
FILES
|
FILES
|
||||||
"${PROJECT_SOURCE_DIR}/utf8proc.h"
|
"${PROJECT_SOURCE_DIR}/utf8proc.h"
|
||||||
DESTINATION include)
|
DESTINATION include)
|
||||||
|
endif()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user