cmake_minimum_required(VERSION 2.6.4)
+
set(LYX_PROJECT lyx)
set(LYX_CMAKE_DIR "development/cmake")
# Supress regeneration
set(CMAKE_SUPPRESS_REGENERATION FALSE)
+if(NOT help AND NOT HELP)
+ # 'project' triggers the searching for a compiler
+ project(${LYX_PROJECT})
+endif()
include(LyXMacros)
LYX_OPTION(DEPENDENCIES_DOWNLOAD "Download dependencies for MSVC 10" OFF MSVC)
# APPLE specific
-LYX_OPTION(DMG "Build as Mac bundle, needed for .dmg (experimental) " OFF GCC)
-LYX_OPTION(COCOA "Use Cocoa on Mac" OFF GCC)
+LYX_OPTION(DMG "Build as Mac bundle, needed for .dmg (experimental) " OFF MAC)
+LYX_OPTION(COCOA "Use Cocoa on Mac" OFF MAC)
if(help OR HELP)
message(STATUS)
message(STATUS)
else()
-# 'project' triggers the searching for a compiler
-project(${LYX_PROJECT})
-
# Check option dependencies
set(bundle_dir ${TOP_BINARY_DIR}/bin)
set(LYX_CPACK 1)
set(LYX_BUNDLE MACOSX_BUNDLE)
- set(LYX_INSTALL_PREFIX LyX2.1 CACHE STRING "LyX bundle install prefix" FORCE)
+ set(LYX_INSTALL_PREFIX LyX${LYX_INSTALL_SUFFIX} CACHE STRING "LyX bundle install prefix" FORCE)
set(LYX_DATA_SUBDIR LyX.app/Contents/Resources/ CACHE STRING "Bundle Contents dir" FORCE)
+ set(LYX_PROGRAM_SUFFIX "" CACHE STRING "disable suffix for dmg test" FORCE) #TODO remove
+ set(LYX_INSTALL_SUFFIX "" CACHE STRING "disable suffix for dmg test" FORCE) #TODO remove
message(STATUS)
- message(STATUS "Bundle creation is enabled.")
- message(STATUS "It is experimental, to increase turn around speed use:")
+ message(STATUS "Bundle creation is enabled (experimental):")
+ message(STATUS " make")
+ message(STATUS " make install/strip")
+ message(STATUS " make package")
+ message(STATUS "To increase turn around speed use:")
message(STATUS " cmake -DLYX_MERGE_FILES=1 -DLYX_NO_OPTIMIZE=1 -DLYX_INSTALL=1 -DLYX_DMG=1 ../trunk")
- message(STATUS "or use the shell script 'developent/cmake/dmg'")
+ message(STATUS "or use the shell script 'development/cmake/dmg'")
message(STATUS)
endif()
include(../Install)
endif()
+add_subdirectory(sourcedoc "${TOP_BINARY_DIR}/sourcedoc")
message(STATUS)
message(STATUS "Build options, switch LYX_* variables by -DLYX_*=1 or 0:")