Skip to content

Commit

Permalink
Merge pull request #667 from GamovCoder/KAA-1070
Browse files Browse the repository at this point in the history
KAA-1070: Add doxygen target to cmake
  • Loading branch information
rasendubi committed May 16, 2016
2 parents 17a7b6a + 61f1f1b commit ca122d9
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 3 deletions.
2 changes: 2 additions & 0 deletions client/client-multi/client-c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -189,3 +189,5 @@ install(TARGETS ${KAA_BUILD_SHARED} ${KAA_BUILD_STATIC} DESTINATION lib)
if(KAA_UNITTESTS_COMPILE)
include(${CMAKE_CURRENT_SOURCE_DIR}/listfiles/UnitTest.cmake)
endif()

add_subdirectory(Modules/doxygen)
32 changes: 32 additions & 0 deletions client/client-multi/client-c/Modules/doxygen/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#
# Copyright 2014-2016 CyberVision, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# This cmake list is resposible for building doxygen documentation.

find_package (Doxygen REQUIRED)

if(DOXYGEN_FOUND)

add_custom_target(doxygen
COMMAND ${CMAKE_COMMAND} -E make_directory target/apidocs/doxygen
COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile
WORKING_DIRECTORY
${KAA_SDK_DIR}
COMMENT "Generating doxygen docs"
VERBATIM
)

endif()
4 changes: 1 addition & 3 deletions client/client-multi/client-c/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
set -e
set -v

# Stupid doxygen can't create a directory
mkdir -p target/apidocs
doxygen
make doxygen

make

Expand Down

0 comments on commit ca122d9

Please sign in to comment.