Added flag BUILD_DOCS for documentation in CMakeLists.txt
parent
f1632aada5
commit
ff1e65b292
|
|
@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.2)
|
|||
project(libicsneo VERSION 0.2.0)
|
||||
|
||||
option(BUILD_TESTS "Build all tests." OFF)
|
||||
option(BUILD_DOCS "Build documentation. Don't use in Visual Studio." OFF)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
|
||||
|
|
@ -36,7 +37,8 @@ if(DOXYGEN_FOUND)
|
|||
endif()
|
||||
endif()
|
||||
|
||||
if(DOXYGEN_FOUND)
|
||||
if(BUILD_DOCS)
|
||||
if(DOXYGEN_FOUND)
|
||||
message("Will build Doxygen based documentation")
|
||||
|
||||
add_custom_target(libicsneo_doxygen ALL
|
||||
|
|
@ -67,7 +69,7 @@ if(DOXYGEN_FOUND)
|
|||
"${ICSNEO_DOCS_DIR}/conf.py"
|
||||
@ONLY)
|
||||
|
||||
add_custom_target(libicsneo_sphinx ALL
|
||||
add_custom_target(libicsneo_sphinx
|
||||
${SPHINX_EXECUTABLE}
|
||||
-q -b html
|
||||
-c "${ICSNEO_DOCS_DIR}"
|
||||
|
|
@ -77,8 +79,10 @@ if(DOXYGEN_FOUND)
|
|||
COMMENT "Building HTML documentation with Sphinx"
|
||||
DEPENDS icsneocpp icsneoc icsneolegacy)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
if(WIN32)
|
||||
file(GLOB PLATFORM_SRC_EXTERNAL ${CMAKE_CURRENT_SOURCE_DIR}/platform/windows/*.cpp)
|
||||
file(GLOB PLATFORM_SRC_INTERNAL ${CMAKE_CURRENT_SOURCE_DIR}/platform/windows/internal/*.cpp)
|
||||
|
|
|
|||
Loading…
Reference in New Issue