mirror of https://github.com/labapart/gattlib
Make building docs optional - defaults to on
parent
1f6c89f0bf
commit
d300b66ebd
|
@ -29,6 +29,7 @@ project(gattlib)
|
|||
|
||||
option(GATTLIB_BUILD_EXAMPLES "Build GattLib examples" YES)
|
||||
option(GATTLIB_SHARED_LIB "Build GattLib as a shared library" YES)
|
||||
option(GATTLIB_BUILD_DOCS "Build GattLib docs" YES)
|
||||
|
||||
find_package(PkgConfig REQUIRED)
|
||||
|
||||
|
@ -84,7 +85,9 @@ else()
|
|||
link_directories(${PROJECT_BINARY_DIR}/bluez)
|
||||
endif()
|
||||
|
||||
if(GATTLIB_BUILD_DOCS)
|
||||
add_subdirectory(docs)
|
||||
endif()
|
||||
|
||||
# Generate pkg-config file before building the examples
|
||||
configure_file(dbus/gattlib.pc.in ${PROJECT_BINARY_DIR}/gattlib.pc @ONLY)
|
||||
|
|
Loading…
Reference in New Issue