mirror of
https://gitlab.freedesktop.org/uchardet/uchardet.git
synced 2025-12-06 16:56:40 +08:00
CMake: Allow not building executable
This commit is contained in:
parent
6500f09931
commit
50b2e0802f
@ -69,6 +69,8 @@ if (BUILD_SHARED_LIBS)
|
|||||||
option(BUILD_STATIC "Build static library"
|
option(BUILD_STATIC "Build static library"
|
||||||
ON)
|
ON)
|
||||||
endif (BUILD_SHARED_LIBS)
|
endif (BUILD_SHARED_LIBS)
|
||||||
|
option(BUILD_BINARY "Build executable"
|
||||||
|
ON)
|
||||||
|
|
||||||
configure_file(
|
configure_file(
|
||||||
uchardet.pc.in
|
uchardet.pc.in
|
||||||
|
|||||||
@ -132,4 +132,6 @@ install(
|
|||||||
|
|
||||||
include(symbols.cmake)
|
include(symbols.cmake)
|
||||||
|
|
||||||
|
if (BUILD_BINARY)
|
||||||
add_subdirectory(tools)
|
add_subdirectory(tools)
|
||||||
|
endif (BUILD_BINARY)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user