From 651631e81223aa668665406de2de6f9190c285d1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20K=C3=BCmmel?= Date: Sat, 7 Nov 2009 11:19:57 +0000 Subject: [PATCH] cmake: add option to suppress install make rules git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31887 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/cmake/CMakeLists.txt | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/development/cmake/CMakeLists.txt b/development/cmake/CMakeLists.txt index 2cad68eb3b..af6a1d0095 100644 --- a/development/cmake/CMakeLists.txt +++ b/development/cmake/CMakeLists.txt @@ -15,6 +15,8 @@ set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true) project(lyx) +option(lyxinstall "Build install projects/rules" ON) + # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ # is checked set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/modules") @@ -423,14 +425,18 @@ if(NOT use_external_libintl) endif() add_subdirectory(src) -add_subdirectory(man) -if(NOT ${_PERL_EXECUTABLE} MATCHES "-NOTFOUND") - add_subdirectory(doc) +if(lyxinstall) + add_subdirectory(man) + if(NOT ${_PERL_EXECUTABLE} MATCHES "-NOTFOUND") + add_subdirectory(doc) + endif() endif() add_subdirectory(lyx2lyx) add_subdirectory(scripts) -include(../Install) +if(lyxinstall) + include(../Install) +endif() SET(CPACK_PACKAGE_VERSION_MAJOR "${LYX_MAJOR_VERSION}") SET(CPACK_PACKAGE_VERSION_MINOR "${LYX_MINOR_VERSION}") @@ -475,7 +481,10 @@ endif() # so we do not provide infofiles for # CPACK_RESOURCE_FILE_README and CPACK_RESOURCE_FILE_WELCOME -include(CPack) +if(lyxinstall) + include(CPack) +endif() + #Now it is possible to create some packages # cd # make package -- 2.39.2