lyx_mirror/development/cmake/modules/LyXPaths.cmake
Peter Kümmel 7c00f14cc1 Initial cmake support.
trunk/development/cmake/README.cmake:

Building LyX with CMake

CMake 2.4.2 or CVS version from www.cmake.org


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


To generate other build files call "cmake" 
which shows a list of possibilities.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14071 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-11 11:57:25 +00:00

50 lines
1.0 KiB
CMake
Executable File

if(WIN32)
file(TO_CMAKE_PATH "$ENV{PROGRAMFILES}" _prog_path)
set(_zlib_path ${_prog_path}/zlib)
set(_iconv_path ${_prog_path}/iconv)
set(_gnuwin32_dir ${_prog_path}/gnuwin32)
set(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH}
${_gnuwin32_dir}/include
${_zlib_path}/include
${_iconv_path}/include
)
set(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH}
${_gnuwin32_dir}/lib
${_zlib_path}/lib
${_iconv_path}/lib
)
#chek_include_files path
set(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} ${_gnuwin32_dir}/include)
else(WIN32)
set(_prog_path ~/bin)
endif(WIN32)
GET_FILENAME_COMPONENT(lyx_dir_readme ${CMAKE_SOURCE_DIR}/../../README ABSOLUTE)
GET_FILENAME_COMPONENT(TOP_SRC_DIR ${lyx_dir_readme} PATH)
if(WIN32)
set(locale_dir Resources/locale)
else(WIN32)
set(locale_dir share/locale)
endif(WIN32)
set(PREFIX ${_prog_path}/LyX)
set(LOCAL_DIR ${PREFIX}/${locale_dir})
#message(" PREFIX : ${PREFIX}")
#message(" LOCAL_DIR : ${LOCAL_DIR}")
#message(" TOP_SRC_DIR : ${TOP_SRC_DIR}")