]> git.lyx.org Git - lyx.git/commitdiff
Rename development/cmake/README.cmake to INSTALL.cmake
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 11 Jul 2007 07:27:56 +0000 (07:27 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 11 Jul 2007 07:27:56 +0000 (07:27 +0000)
Actually distribute the cmake files with LyX.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19034 a592a061-630c-0410-9148-cb99ea01b6c8

INSTALL.cmake [new file with mode: 0644]
Makefile.am
development/Makefile.am
development/cmake/README.cmake [deleted file]
development/scons/scons_manifest.py

diff --git a/INSTALL.cmake b/INSTALL.cmake
new file mode 100644 (file)
index 0000000..284758b
--- /dev/null
@@ -0,0 +1,82 @@
+Building LyX with CMake
+
+For all builds:
+- CMake 2.4 or CVS version from www.cmake.org
+- install Qt 4 and make sure qmake 4 is found
+  (add the folder with qmake to the environment variable PATH)
+- by default it builds the Qt4 frontend
+- with GNUWIN32_DIR you could point to your gnuwin32 packages
+  (eg. -DGNUWIN32_DIR=c:\gnuwin32) by default it searches in your 
+  program  folder
+
+Building Visual C++ 2005 project files:
+- install Visual C++ 2005
+- install Platform SDK 2005, "Core" and "Web Workshop"
+- add include and library paths of the SDK to the IDE search paths,
+  menu: Tools->Options->VC++ directories->Library files + Include files
+- install zlib (www.zlib.net) into %ProgramFiles%/GnuWin32/include+lib
+  or %ProgramFiles%/zlib/include+lib
+- create a build directory, e.g. .../trunk/../build
+- call in the build directory 'cmake ..\trunk\development\cmake'
+- start lyx.sln
+- Warnings:
+       The default warning level of the msvc cmake builds is now /W4.
+       The cmake option 
+               -DDISABLEWALL=1 
+       switches to /W3, 
+               -DWALL=1 
+       re enables /W4.
+       To disable a specific warning add it to MSVC_W_DISABLE of
+       cmake/CMakeLists.txt. To make the warning an error add it
+       to MSVC_W_ERROR of the same file.
+
+TIPS: - rename Microsoft Visual Studio 8\VC\vcpackages\feacp.dll 
+        to disable Intellisense
+      - the Release build links much faster
+      - for the 'Debug' and 'Release' build all precompiled headers are enabled
+        to compile without pch (to check if all necessary headers are included)
+          * use 'MinSizeRel' which only precompiles the STL and Boost headers
+          * use 'RelWithDebInfo' which does not use any precompiled headers
+
+
+Building with GCC/Linux:
+- create a build directory, e.g. .../trunk/../build
+- call in the build directory 'cmake ..\trunk\development\cmake'
+
+Building with GCC/Windows (Win2k only works with MSYS, XP?):
+- install zlib (www.zlib.net) into %ProgramFiles%/GnuWin32/include+lib
+- create a build directory, e.g. .../trunk/../build
+- call: export QMAKESPEC=win32-g++ (MSYS) or set QMAKESPEC=win32-g++ (CMD)
+- call in the build directory 'cmake ..\trunk\development\cmake'
+
+Building with Xcode/Mac:
+- create a build directory, e.g. .../trunk/../build
+- call in the build directory 'cmake .../trunk/development/cmake -G Xcode'
+- open .../trunk/../build/lyx-qt4.xcodeproj
+
+TIPS: - Xcode prefers UTF8 when opening source files, though LyX usually uses
+        Latin1. To fix that select all source files in Xcode and click "Get Info"
+        in the context menu. Change the encoding to Latin1.
+      - You can run and debug LyX from Xcode. For LyX to find its resources, there
+        are two possibilities:
+       a) Put a resource directory, e.g. a link to the lib directory of the 
+          source tree, at .../trunk/../build/bin/Resources
+       b) Select the lyx-qt4 executable in Xcode, click on "Get Info" in the 
+          context menu and add "-sysdir a_valid_LyX_resource_directory" 
+          pointing e.g. to a valid Contents/Resources of a LyX.app directory.
+      - LyX on Mac doesn't look for fonts in the resource directory if the
+        executable is not in an .app bundle. Instead you have to create a
+        symbolic link to the fonts directory in the place where the executable
+        is: ln -s .../trunk/lib/fonts .../trunk/../build/bin/Debug/
+        If you don't do that math character will not show up correctly.
+      - CMake properly finds the Qt4 library bundles from Trolltech's binary
+        Qt4 package for Mac. So no need to compile Qt on your own.
+
+
+To generate other build files call 'cmake'
+which shows a list of possibilities.
+
+
+The build process tries to find aspell on Windows
+in %ProgramFiles%/GnuWin32/ and in /usr/ or in /usr/local 
+under Linux. If it is not found the support is disabled.
index a617a46aac2d5fd9f4dafb9c8fef5ec17c5994bf..59842adfeb178316a88ea13922e79b502c066100 100644 (file)
@@ -16,8 +16,8 @@ SUBDIRS = config development intl po src sourcedoc lib
 endif
 
 EXTRA_DIST = ANNOUNCE INSTALL.autoconf RELEASE-NOTES UPGRADING \
-       INSTALL.Win32 INSTALL.MacOSX INSTALL.scons README.Win32 README.Cygwin \
-       lyx.man autogen.sh
+       INSTALL.Win32 INSTALL.MacOSX INSTALL.scons INSTALL.cmake \
+       README.Win32 README.Cygwin lyx.man autogen.sh
 
 man_MANS = lyx.1
 
index 0b5400999ea6749e457173bd4df9f44031787887..3ce671c9affd38c7685c8de64f0a662e4664b79f 100644 (file)
@@ -4,7 +4,7 @@ if INSTALL_MACOSX
 SUBDIRS = MacOSX
 endif
 
-EXTRA_DIST = boostworkaround.txt ChangeLog Code_rules FORMAT \
+EXTRA_DIST = boostworkaround.txt ChangeLog cmake Code_rules FORMAT \
        gettext.patch lazy_lyxtext.txt lyx3 lyx.rpm.README \
        lyxserver lyx.spec.in lyx.spec Seminar.txt \
        TodoPlan-1.3 tools Win32 scons
diff --git a/development/cmake/README.cmake b/development/cmake/README.cmake
deleted file mode 100644 (file)
index 284758b..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-Building LyX with CMake
-
-For all builds:
-- CMake 2.4 or CVS version from www.cmake.org
-- install Qt 4 and make sure qmake 4 is found
-  (add the folder with qmake to the environment variable PATH)
-- by default it builds the Qt4 frontend
-- with GNUWIN32_DIR you could point to your gnuwin32 packages
-  (eg. -DGNUWIN32_DIR=c:\gnuwin32) by default it searches in your 
-  program  folder
-
-Building Visual C++ 2005 project files:
-- install Visual C++ 2005
-- install Platform SDK 2005, "Core" and "Web Workshop"
-- add include and library paths of the SDK to the IDE search paths,
-  menu: Tools->Options->VC++ directories->Library files + Include files
-- install zlib (www.zlib.net) into %ProgramFiles%/GnuWin32/include+lib
-  or %ProgramFiles%/zlib/include+lib
-- create a build directory, e.g. .../trunk/../build
-- call in the build directory 'cmake ..\trunk\development\cmake'
-- start lyx.sln
-- Warnings:
-       The default warning level of the msvc cmake builds is now /W4.
-       The cmake option 
-               -DDISABLEWALL=1 
-       switches to /W3, 
-               -DWALL=1 
-       re enables /W4.
-       To disable a specific warning add it to MSVC_W_DISABLE of
-       cmake/CMakeLists.txt. To make the warning an error add it
-       to MSVC_W_ERROR of the same file.
-
-TIPS: - rename Microsoft Visual Studio 8\VC\vcpackages\feacp.dll 
-        to disable Intellisense
-      - the Release build links much faster
-      - for the 'Debug' and 'Release' build all precompiled headers are enabled
-        to compile without pch (to check if all necessary headers are included)
-          * use 'MinSizeRel' which only precompiles the STL and Boost headers
-          * use 'RelWithDebInfo' which does not use any precompiled headers
-
-
-Building with GCC/Linux:
-- create a build directory, e.g. .../trunk/../build
-- call in the build directory 'cmake ..\trunk\development\cmake'
-
-Building with GCC/Windows (Win2k only works with MSYS, XP?):
-- install zlib (www.zlib.net) into %ProgramFiles%/GnuWin32/include+lib
-- create a build directory, e.g. .../trunk/../build
-- call: export QMAKESPEC=win32-g++ (MSYS) or set QMAKESPEC=win32-g++ (CMD)
-- call in the build directory 'cmake ..\trunk\development\cmake'
-
-Building with Xcode/Mac:
-- create a build directory, e.g. .../trunk/../build
-- call in the build directory 'cmake .../trunk/development/cmake -G Xcode'
-- open .../trunk/../build/lyx-qt4.xcodeproj
-
-TIPS: - Xcode prefers UTF8 when opening source files, though LyX usually uses
-        Latin1. To fix that select all source files in Xcode and click "Get Info"
-        in the context menu. Change the encoding to Latin1.
-      - You can run and debug LyX from Xcode. For LyX to find its resources, there
-        are two possibilities:
-       a) Put a resource directory, e.g. a link to the lib directory of the 
-          source tree, at .../trunk/../build/bin/Resources
-       b) Select the lyx-qt4 executable in Xcode, click on "Get Info" in the 
-          context menu and add "-sysdir a_valid_LyX_resource_directory" 
-          pointing e.g. to a valid Contents/Resources of a LyX.app directory.
-      - LyX on Mac doesn't look for fonts in the resource directory if the
-        executable is not in an .app bundle. Instead you have to create a
-        symbolic link to the fonts directory in the place where the executable
-        is: ln -s .../trunk/lib/fonts .../trunk/../build/bin/Debug/
-        If you don't do that math character will not show up correctly.
-      - CMake properly finds the Qt4 library bundles from Trolltech's binary
-        Qt4 package for Mac. So no need to compile Qt on your own.
-
-
-To generate other build files call 'cmake'
-which shows a list of possibilities.
-
-
-The build process tries to find aspell on Windows
-in %ProgramFiles%/GnuWin32/ and in /usr/ or in /usr/local 
-under Linux. If it is not found the support is disabled.
index 128e9d220327ec0c0fc1dbf715ecc642cfc359d5..7eba59cbf04d245addf3bedc4c074e09ee7d525e 100644 (file)
@@ -10,6 +10,7 @@ TOP_extra_files = Split('''
     INSTALL.MacOSX
     INSTALL.Win32
     INSTALL.autoconf
+    INSTALL.cmake
     INSTALL.scons
     Makefile.am
     NEWS