mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +02:00
Added flag BUILD_DOCS for documentation in CMakeLists.txt
This commit is contained in:
+5
-1
@@ -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,6 +37,7 @@ if(DOXYGEN_FOUND)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(BUILD_DOCS)
|
||||
if(DOXYGEN_FOUND)
|
||||
message("Will build Doxygen based documentation")
|
||||
|
||||
@@ -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}"
|
||||
@@ -78,6 +80,8 @@ if(DOXYGEN_FOUND)
|
||||
DEPENDS icsneocpp icsneoc icsneolegacy)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
if(WIN32)
|
||||
file(GLOB PLATFORM_SRC_EXTERNAL ${CMAKE_CURRENT_SOURCE_DIR}/platform/windows/*.cpp)
|
||||
|
||||
Reference in New Issue
Block a user