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
This commit is contained in:
Peter Kümmel 2009-11-07 11:19:57 +00:00
parent 637d7399a7
commit 651631e812

View File

@ -15,6 +15,8 @@ set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
project(lyx) project(lyx)
option(lyxinstall "Build install projects/rules" ON)
# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/
# is checked # is checked
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/modules") set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/modules")
@ -423,14 +425,18 @@ if(NOT use_external_libintl)
endif() endif()
add_subdirectory(src) add_subdirectory(src)
add_subdirectory(man) if(lyxinstall)
if(NOT ${_PERL_EXECUTABLE} MATCHES "-NOTFOUND") add_subdirectory(man)
add_subdirectory(doc) if(NOT ${_PERL_EXECUTABLE} MATCHES "-NOTFOUND")
add_subdirectory(doc)
endif()
endif() endif()
add_subdirectory(lyx2lyx) add_subdirectory(lyx2lyx)
add_subdirectory(scripts) add_subdirectory(scripts)
include(../Install) if(lyxinstall)
include(../Install)
endif()
SET(CPACK_PACKAGE_VERSION_MAJOR "${LYX_MAJOR_VERSION}") SET(CPACK_PACKAGE_VERSION_MAJOR "${LYX_MAJOR_VERSION}")
SET(CPACK_PACKAGE_VERSION_MINOR "${LYX_MINOR_VERSION}") SET(CPACK_PACKAGE_VERSION_MINOR "${LYX_MINOR_VERSION}")
@ -475,7 +481,10 @@ endif()
# so we do not provide infofiles for # so we do not provide infofiles for
# CPACK_RESOURCE_FILE_README and CPACK_RESOURCE_FILE_WELCOME # CPACK_RESOURCE_FILE_README and CPACK_RESOURCE_FILE_WELCOME
include(CPack) if(lyxinstall)
include(CPack)
endif()
#Now it is possible to create some packages #Now it is possible to create some packages
# cd <BuildDir> # cd <BuildDir>
# make package # make package