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:
+6
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user