diff options
author | Rolf Eike Beer <eb@emlix.com> | 2017-10-20 10:31:29 (GMT) |
---|---|---|
committer | Rolf Eike Beer <kde@opensource.sf-tec.de> | 2017-10-20 18:25:40 (GMT) |
commit | 7c1c75a2c5583415d178e0e46a1a356bef9b0c84 (patch) | |
tree | 305f101e105276db4a507171173fe478d67154fb /addon | |
parent | ac5ca4ef86ad50232be75a65fab99302307b7795 (diff) | |
download | Doxygen-7c1c75a2c5583415d178e0e46a1a356bef9b0c84.zip Doxygen-7c1c75a2c5583415d178e0e46a1a356bef9b0c84.tar.gz Doxygen-7c1c75a2c5583415d178e0e46a1a356bef9b0c84.tar.bz2 |
CMake: avoid if() around the whole contents of plugin CMakeLists.txt
Just don't call add_subdirectory() if the build flag is not set.
Diffstat (limited to 'addon')
-rw-r--r-- | addon/CMakeLists.txt | 17 | ||||
-rw-r--r-- | addon/doxyapp/CMakeLists.txt | 4 | ||||
-rw-r--r-- | addon/doxyparse/CMakeLists.txt | 4 | ||||
-rw-r--r-- | addon/doxysearch/CMakeLists.txt | 4 | ||||
-rw-r--r-- | addon/doxywizard/CMakeLists.txt | 4 |
5 files changed, 17 insertions, 16 deletions
diff --git a/addon/CMakeLists.txt b/addon/CMakeLists.txt new file mode 100644 index 0000000..fd8c73f --- /dev/null +++ b/addon/CMakeLists.txt @@ -0,0 +1,17 @@ +add_subdirectory(doxmlparser) + +if (build_app) + add_subdirectory(doxyapp) +endif () + +if (build_parse) + add_subdirectory(doxyparse) +endif () + +if (build_search) + add_subdirectory(doxysearch) +endif () + +if (build_wizard) + add_subdirectory(doxywizard) +endif () diff --git a/addon/doxyapp/CMakeLists.txt b/addon/doxyapp/CMakeLists.txt index 423aea6..4fd1816 100644 --- a/addon/doxyapp/CMakeLists.txt +++ b/addon/doxyapp/CMakeLists.txt @@ -1,5 +1,3 @@ -if (build_app) - # configvalues.h add_custom_command( COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/src/configgen.py -maph ${CMAKE_SOURCE_DIR}/src/config.xml > ${GENERATED_SRC}/configvalues.h @@ -35,5 +33,3 @@ ${CLANG_LIBS} ) install(TARGETS doxyapp DESTINATION bin) - -endif() diff --git a/addon/doxyparse/CMakeLists.txt b/addon/doxyparse/CMakeLists.txt index e4f9021..8e7536f 100644 --- a/addon/doxyparse/CMakeLists.txt +++ b/addon/doxyparse/CMakeLists.txt @@ -1,5 +1,3 @@ -if (build_parse) - # configvalues.h add_custom_command( COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/src/configgen.py -maph ${CMAKE_SOURCE_DIR}/src/config.xml > ${GENERATED_SRC}/configvalues.h @@ -35,5 +33,3 @@ ${CLANG_LIBS} ) install(TARGETS doxyparse DESTINATION bin) - -endif() diff --git a/addon/doxysearch/CMakeLists.txt b/addon/doxysearch/CMakeLists.txt index 33e01c1..54794a6 100644 --- a/addon/doxysearch/CMakeLists.txt +++ b/addon/doxysearch/CMakeLists.txt @@ -1,5 +1,3 @@ -if (build_search) - find_package(Xapian REQUIRED) find_package(ZLIB REQUIRED) @@ -32,5 +30,3 @@ target_link_libraries(doxysearch.cgi ) install(TARGETS doxyindexer doxysearch.cgi DESTINATION bin) - -endif() diff --git a/addon/doxywizard/CMakeLists.txt b/addon/doxywizard/CMakeLists.txt index 1838f75..0907d23 100644 --- a/addon/doxywizard/CMakeLists.txt +++ b/addon/doxywizard/CMakeLists.txt @@ -1,5 +1,3 @@ -if (build_wizard) - # search for Qt5 if (NOT force_qt4) find_package(Qt5Core QUIET CONFIG) @@ -112,5 +110,3 @@ ${QT_LIBRARIES} ${QT_QTMAIN_LIBRARY} ) install(TARGETS doxywizard DESTINATION bin) - -endif() |