CMake: Allow not building executable

This commit is contained in:
Ricardo Constantino (:RiCON) 2016-03-16 14:34:03 +00:00
parent 6500f09931
commit 50b2e0802f
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -132,4 +132,6 @@ install(
include(symbols.cmake) include(symbols.cmake)
if (BUILD_BINARY)
add_subdirectory(tools) add_subdirectory(tools)
endif (BUILD_BINARY)