by adding document to the cmaker call , the documentation will be created. By default the documentation will not be created
set(EXECUTABLE_OUTPUT_PATH ../../bin/)
set(DBUS_FOLDER ${CMAKE_SOURCE_DIR}/../dbusInterfaces)
set(DOC_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/../doc/AudioGui)
+set(DOCUMENT $ENV{gendoc})
cmake_policy(SET CMP0015 NEW)
#add a target to generate API documentation with Doxygen
find_package(Doxygen)
if(DOXYGEN_FOUND)
+if(DOCUMENT)
configure_file(Doxyfile.in ${PROJECT_BINARY_DIR}/Doxyfile @ONLY IMMEDIATE)
add_custom_target (Docs ALL
COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/Doxyfile WORKING_DIRECTORY ${DOC_OUTPUT_PATH}
SOURCES ${PROJECT_BINARY_DIR}/Doxyfile)
+endif(DOCUMENT)
endif(DOXYGEN_FOUND)
set(DOC_OUTPUT_PATH ../../doc/)
set(DBUS_FOLDER ${CMAKE_SOURCE_DIR}/../dbusInterfaces)
set(DOC_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/../doc/AudioManager)
+set(DOCUMENT $ENV{gendoc})
cmake_policy(SET CMP0015 NEW)
#add a target to generate API documentation with Doxygen
find_package(Doxygen)
if(DOXYGEN_FOUND)
+if(DOCUMENT)
configure_file(Doxyfile.in ${PROJECT_BINARY_DIR}/Doxyfile @ONLY IMMEDIATE)
add_custom_target (Docs ALL
COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/Doxyfile WORKING_DIRECTORY ${DOC_OUTPUT_PATH}
SOURCES ${PROJECT_BINARY_DIR}/Doxyfile)
+endif(DOCUMENT)
endif(DOXYGEN_FOUND)
set(EXECUTABLE_OUTPUT_PATH ../../bin/)
set(DBUS_FOLDER ${CMAKE_SOURCE_DIR}/../dbusInterfaces)
set(DOC_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/../doc/PlayerGUI)
+set(DOCUMENT $ENV{gendoc})
cmake_policy(SET CMP0015 NEW)
#add a target to generate API documentation with Doxygen
find_package(Doxygen)
if(DOXYGEN_FOUND)
+if(DOCUMENT)
configure_file(Doxyfile.in ${PROJECT_BINARY_DIR}/Doxyfile @ONLY IMMEDIATE)
add_custom_target (Docs ALL
COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/Doxyfile WORKING_DIRECTORY ${DOC_OUTPUT_PATH}
SOURCES ${PROJECT_BINARY_DIR}/Doxyfile)
+endif(DOCUMENT)
endif(DOXYGEN_FOUND)
set(LIBRARY_OUTPUT_PATH ../plugins)
set(DBUS_FOLDER ${CMAKE_SOURCE_DIR}/../dbusInterfaces)
set(DOC_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/../doc/DBusPlugin)
+set(DOCUMENT $ENV{gendoc})
cmake_policy(SET CMP0015 NEW)
#add a target to generate API documentation with Doxygen
find_package(Doxygen)
if(DOXYGEN_FOUND)
+if(DOCUMENT)
configure_file(Doxyfile.in ${PROJECT_BINARY_DIR}/Doxyfile @ONLY IMMEDIATE)
add_custom_target (Docs ALL
COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/Doxyfile WORKING_DIRECTORY ${DOC_OUTPUT_PATH}
SOURCES ${PROJECT_BINARY_DIR}/Doxyfile)
+endif(DOCUMENT)
endif(DOXYGEN_FOUND)
set(EXECUTABLE_OUTPUT_PATH ../../bin/)
set(LIBRARY_OUTPUT_PATH ../plugins)
set(DOC_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/../doc/JackPlugin)
+set(DOCUMENT $ENV{gendoc})
cmake_policy(SET CMP0015 NEW)
#add a target to generate API documentation with Doxygen
find_package(Doxygen)
if(DOXYGEN_FOUND)
+if(DOCUMENT)
configure_file(Doxyfile.in ${PROJECT_BINARY_DIR}/Doxyfile @ONLY IMMEDIATE)
add_custom_target (Docs ALL
COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/Doxyfile WORKING_DIRECTORY ${DOC_OUTPUT_PATH}
SOURCES ${PROJECT_BINARY_DIR}/Doxyfile)
+endif(DOCUMENT)
endif(DOXYGEN_FOUND)
set(LIBRARY_OUTPUT_PATH ../plugins)
set(DBUS_FOLDER ${CMAKE_SOURCE_DIR}/../dbusInterfaces)
set(DOC_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/../doc/PluginTest)
+set(DOCUMENT $ENV{gendoc})
cmake_policy(SET CMP0015 NEW)
#add a target to generate API documentation with Doxygen
find_package(Doxygen)
if(DOXYGEN_FOUND)
+if(DOCUMENT)
configure_file(Doxyfile.in ${PROJECT_BINARY_DIR}/Doxyfile @ONLY IMMEDIATE)
add_custom_target (Docs ALL
COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/Doxyfile WORKING_DIRECTORY ${DOC_OUTPUT_PATH}
SOURCES ${PROJECT_BINARY_DIR}/Doxyfile)
+endif(DOCUMENT)
endif(DOXYGEN_FOUND)
;;
*)
echo ""
- echo " Usage: ./cmaker.sh {cmake|make|all} {all|main|plugins|target xxx}"
+ echo " Usage: ./cmaker.sh {cmake|make|all} {all|main|plugins|target xxx} [document]"
echo " xxx stands for the directory of the target to be build"
echo " Output binaries are below \bin, builds are done in \build\xxx"
echo " Script does only use Subdirectories beginning with upper Cases !"
+ echo " document if this flag is present, the documentation will be created"
echo ""
exit 1
;;
esac
+echo "$3"
+doc="document"
+if [ "$3" = "$doc" ]
+then
+ export gendoc="ON"
+else
+ export gendoc="OFF"
+fi
make_build
case "$2" in
all)
;;
*)
echo ""
- echo " Usage: ./cmaker.sh {cmake|make|all} {all|applications|plugins|target xxx}"
+ echo " Usage: ./cmaker.sh {cmake|make|all} {all|applications|plugins|target xxx} [-document]"
echo " xxx stands for the directory of the target to be build"
echo " Output binaries are below \bin, builds are done in \build\xxx"
echo " Script does only use Subdirectories beginning with upper Cases !"
+ echo " document if this flag is present, the documentation will be created"
echo ""
exit 1
;;