From f26df4f80afc199c9a063f280bc60b0cf2006944 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 17 Nov 2015 19:01:01 -0200 Subject: Move Handling of user manual to Modules directory Signed-off-by: Tomaz Canabrava --- CMakeLists.txt | 9 +-------- cmake/Modules/HandleUserManual.cmake | 7 +++++++ 2 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 cmake/Modules/HandleUserManual.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index 2a3bf27f1..0be935399 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -91,6 +91,7 @@ include(cmake/Modules/HandleFindLibDiveComputer.cmake) include(cmake/Modules/HandleFindMarble.cmake) include(cmake/Modules/HandleFindGrantlee.cmake) include(cmake/Modules/HandleFtdiSupport.cmake) +include(cmake/Modules/HandleUserManual.cmake) include(cmake/Modules/HandleVersionGeneration.cmake) pkg_config_library(LIBXML libxml-2.0 REQUIRED) @@ -109,14 +110,6 @@ if(ANDROID) set(NO_PRINTING ON) endif() -if(NO_USERMANUAL) - message(STATUS "building without usermanual") - add_definitions(-DNO_USERMANUAL) -else() - set(WEBKIT_PKG WebKitWidgets) - set(WEBKIT_LIB Qt5::WebKitWidgets) -endif() - set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} ${LIBDIVECOMPUTER_LIBRARIES} ${LIBGIT2_LIBRARIES} ${LIBUSB_LIBRARIES}) # configure Qt. diff --git a/cmake/Modules/HandleUserManual.cmake b/cmake/Modules/HandleUserManual.cmake new file mode 100644 index 000000000..eeac35c5b --- /dev/null +++ b/cmake/Modules/HandleUserManual.cmake @@ -0,0 +1,7 @@ +if(NO_USERMANUAL) + message(STATUS "building without usermanual") + add_definitions(-DNO_USERMANUAL) +else() + set(WEBKIT_PKG WebKitWidgets) + set(WEBKIT_LIB Qt5::WebKitWidgets) +endif() -- cgit v1.2.3-70-g09d2