Skip to content

Commit

Permalink
Improved Theme usage design.
Browse files Browse the repository at this point in the history
Starting to prepare for doxygen.
  • Loading branch information
sagi-z committed Jun 13, 2017
1 parent ea16e05 commit 71837b1
Show file tree
Hide file tree
Showing 16 changed files with 2,559 additions and 109 deletions.
29 changes: 29 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ cmake_minimum_required(VERSION 2.8)
project (canvascv)

find_package(OpenCV 3.1.0 REQUIRED)
SET(CMAKE_GIT_REPO "CanvasCV")

add_definitions(-std=c++11 -Werror=return-type)
SET( CMAKE_CXX_STANDARD_REQUIRED ON )
Expand Down Expand Up @@ -83,6 +84,34 @@ else()
set(CPACK_PACKAGING_INSTALL_PREFIX "/usr/local")
endif()

option(BUILD_DOCUMENTATION "Use Doxygen to create the HTML documentation for gh-pages" OFF)
if(BUILD_DOCUMENTATION)
FIND_PACKAGE(Doxygen)
if (NOT DOXYGEN_FOUND)
message(FATAL_ERROR
"Doxygen is needed to build the documentation. Please install it correctly")
endif()

CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile)

FILE(WRITE ${CMAKE_BINARY_DIR}/concat.cmake "
FILE(READ \${SRC1} S1)
FILE(READ \${SRC2} S2)
FILE(WRITE \${DST} \${S1}\${S2})
")

add_custom_target (doc ALL
COMMAND ${DOXYGEN_EXECUTABLE} -w html ${CMAKE_BINARY_DIR}/doxygen_header_orig.html.in ${CMAKE_BINARY_DIR}/ignore_footer.html ${CMAKE_BINARY_DIR}/ignore_css.css
COMMAND ${CMAKE_COMMAND} -D SRC1=${CMAKE_CURRENT_SOURCE_DIR}/doxygen_header.html.in
-D SRC2=${CMAKE_BINARY_DIR}/doxygen_header_orig.html.in
-D DST=${CMAKE_SOURCE_DIR}/doxygen_header.html
-P ${CMAKE_BINARY_DIR}/concat.cmake
COMMAND ${CMAKE_COMMAND} -E remove_directory docs/doxygen
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
endif()

# This must always be last!
include(CPack)

Loading

0 comments on commit 71837b1

Please sign in to comment.