mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-30 13:20:58 +00:00
7c00f14cc1
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
57 lines
1.8 KiB
CMake
Executable File
57 lines
1.8 KiB
CMake
Executable File
|
|
if (ICONV_INCLUDE_DIR)
|
|
# Already in cache, be silent
|
|
set(ICONV_FIND_QUIETLY TRUE)
|
|
endif (ICONV_INCLUDE_DIR)
|
|
|
|
FIND_PATH(ICONV_INCLUDE_DIR iconv.h
|
|
/usr/include
|
|
/usr/local/include
|
|
)
|
|
|
|
set(POTENTIAL_ICONV_LIBS iconv libiconv)
|
|
FIND_LIBRARY(ICONV_LIBRARY NAMES ${POTENTIAL_ICONV_LIBS}
|
|
PATHS
|
|
/usr/lib
|
|
/usr/local/lib
|
|
)
|
|
|
|
if(WIN32)
|
|
FIND_FILE(ICONV_DLL iconv.dll NO_DEFAULT_PATH ENV PATH)
|
|
FIND_FILE(ICONV_DLL_HELP iconv.dll)
|
|
IF(ICONV_FIND_REQUIRED)
|
|
IF(NOT ICONV_DLL AND NOT ICONV_DLL_HELP)
|
|
MESSAGE(FATAL_ERROR "Could not find iconv.dll, please add correct your PATH environment variable")
|
|
ENDIF(NOT ICONV_DLL AND NOT ICONV_DLL_HELP)
|
|
IF(NOT ICONV_DLL AND ICONV_DLL_HELP)
|
|
GET_FILENAME_COMPONENT(ICONV_DLL_HELP ${ICONV_DLL_HELP} PATH)
|
|
MESSAGE("Could not find iconv.dll in standard search path, please add ")
|
|
MESSAGE("${ICONV_DLL_HELP} to your PATH environment variable.")
|
|
MESSAGE(FATAL_ERROR)
|
|
ENDIF(NOT ICONV_DLL AND ICONV_DLL_HELP)
|
|
ENDIF(ICONV_FIND_REQUIRED)
|
|
ELSE(WIN32)
|
|
set(ICONV_DLL TRUE)
|
|
endif(WIN32)
|
|
|
|
|
|
IF (ICONV_INCLUDE_DIR AND ICONV_LIBRARY AND ICONV_DLL)
|
|
SET(ICONV_FOUND TRUE)
|
|
ENDIF (ICONV_INCLUDE_DIR AND ICONV_LIBRARY AND ICONV_DLL)
|
|
|
|
IF (ICONV_FOUND)
|
|
IF (NOT ICONV_FIND_QUIETLY)
|
|
MESSAGE(STATUS "Found iconv: ${ICONV_LIBRARY}")
|
|
ENDIF (NOT ICONV_FIND_QUIETLY)
|
|
ELSE (ICONV_FOUND)
|
|
IF (ICONV_FIND_REQUIRED)
|
|
MESSAGE(STATUS "Looked for iconv library named ${POTENTIAL_ICONV_LIBS}.")
|
|
MESSAGE(STATUS "Found no acceptable iconv library. This is fatal.")
|
|
message("iconv header: ${ICONV_INCLUDE_DIR}")
|
|
message("iconv lib : ${ICONV_LIBRARY}")
|
|
MESSAGE(FATAL_ERROR "Could NOT find iconv library")
|
|
ENDIF (ICONV_FIND_REQUIRED)
|
|
ENDIF (ICONV_FOUND)
|
|
|
|
MARK_AS_ADVANCED(ICONV_LIBRARY ICONV_INCLUDE_DIR)
|