Closed Crghilardi closed 2 years ago
Looks useful and clean enough to merge, even to a CMake non-expert like myself. The flag names seem to be not unusual for this purpose, based on a quick web search, so :+1:.
Seems something was missed somewhere, because if I build with -DBUILD_DOCS=OFF
, I get:
CMake Error at CMakeLists.txt:334 (ADD_DEPENDENCIES):
The dependency target "doc_cpp" of target "PACKAGE_SRC_TAR" does not exist.
Hello, I was recently trying to compile
vigra
as a shared library to link with another program. I did not haveDoxygen
in my build environment but did not need documentation or tests.This PR adds two options to the top level
CMakeLists.txt
-BUILD_DOCS
andBUILD_TESTS
(both ON by default) that allow a user to specify if they want to compile those directories such as:cmake .. -DBUILD_TESTS=OFF -DBUILD_DOCS=ON ...