mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
correct svn properties, upadte aspell handling
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14121 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
8caaf338c3
commit
330db5cce1
5
development/cmake/CMakeLists.txt
Executable file → Normal file
5
development/cmake/CMakeLists.txt
Executable file → Normal file
@ -6,6 +6,11 @@ set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/modules")
|
||||
include(LyXPaths)
|
||||
include(LyXMacros)
|
||||
|
||||
if(release)
|
||||
set(CMAKE_BUILD_TYPE TRUE)
|
||||
set(release)
|
||||
endif(release)
|
||||
|
||||
find_package(Qt4 REQUIRED)
|
||||
find_package(ZLIB REQUIRED)
|
||||
|
||||
|
0
development/cmake/ConfigureChecks.cmake
Executable file → Normal file
0
development/cmake/ConfigureChecks.cmake
Executable file → Normal file
0
development/cmake/README.cmake
Executable file → Normal file
0
development/cmake/README.cmake
Executable file → Normal file
0
development/cmake/boost/CMakeLists.txt
Executable file → Normal file
0
development/cmake/boost/CMakeLists.txt
Executable file → Normal file
0
development/cmake/boost/libs/CMakeLists.txt
Executable file → Normal file
0
development/cmake/boost/libs/CMakeLists.txt
Executable file → Normal file
0
development/cmake/boost/libs/filesystem/CMakeLists.txt
Executable file → Normal file
0
development/cmake/boost/libs/filesystem/CMakeLists.txt
Executable file → Normal file
0
development/cmake/boost/libs/iostreams/CMakeLists.txt
Executable file → Normal file
0
development/cmake/boost/libs/iostreams/CMakeLists.txt
Executable file → Normal file
0
development/cmake/boost/libs/regex/CMakeLists.txt
Executable file → Normal file
0
development/cmake/boost/libs/regex/CMakeLists.txt
Executable file → Normal file
0
development/cmake/boost/libs/signals/CMakeLists.txt
Executable file → Normal file
0
development/cmake/boost/libs/signals/CMakeLists.txt
Executable file → Normal file
0
development/cmake/config.h.cmake
Executable file → Normal file
0
development/cmake/config.h.cmake
Executable file → Normal file
0
development/cmake/intl/CMakeLists.txt
Executable file → Normal file
0
development/cmake/intl/CMakeLists.txt
Executable file → Normal file
0
development/cmake/intl/libgnuintl.h
Executable file → Normal file
0
development/cmake/intl/libgnuintl.h
Executable file → Normal file
90
development/cmake/modules/FindASPELL.cmake
Executable file → Normal file
90
development/cmake/modules/FindASPELL.cmake
Executable file → Normal file
@ -1,44 +1,80 @@
|
||||
# - Try to find ASPELL
|
||||
# Once done this will define
|
||||
#
|
||||
# ASPELL_FOUND - system has ASPELL
|
||||
# ASPELL_INCLUDE_DIR - the ASPELL include directory
|
||||
# ASPELL_LIBRARIES - The libraries needed to use ASPELL
|
||||
# ASPELL_DEFINITIONS - Compiler switches required for using ASPELL
|
||||
# ASPELL_FOUND - system has ASPELL
|
||||
# ASPELL_INCLUDE_DIR - the ASPELL include directory
|
||||
# ASPELL_LIBRARY - The libraries needed to use ASPELL
|
||||
# ASPELL_DEFINITIONS - Compiler switches required for using ASPELL
|
||||
#
|
||||
|
||||
if (ASPELL_INCLUDE_DIR AND ASPELL_LIBRARIES)
|
||||
# Already in cache, be silent
|
||||
set(ASPELL_FIND_QUIETLY TRUE)
|
||||
endif (ASPELL_INCLUDE_DIR AND ASPELL_LIBRARIES)
|
||||
if(WIN32)
|
||||
file(TO_CMAKE_PATH "$ENV{PROGRAMFILES}" _program_FILES_DIR)
|
||||
endif(WIN32)
|
||||
|
||||
|
||||
if (ASPELL_INCLUDE_DIR AND ASPELL_LIBRARY)
|
||||
# Already in cache, be silent
|
||||
set(ASPELL_FIND_QUIETLY TRUE)
|
||||
endif (ASPELL_INCLUDE_DIR AND ASPELL_LIBRARY)
|
||||
|
||||
FIND_PATH(ASPELL_INCLUDE_DIR aspell.h
|
||||
/usr/include
|
||||
/usr/local/include
|
||||
/usr/local/include/aspell
|
||||
/usr/include
|
||||
/usr/local/include
|
||||
/usr/local/include/aspell
|
||||
${_program_FILES_DIR}/gnuwin32/include
|
||||
)
|
||||
|
||||
FIND_LIBRARY(ASPELL_LIBRARIES NAMES aspell aspell-15 libaspell
|
||||
PATHS
|
||||
/usr/lib
|
||||
/usr/local/lib
|
||||
FIND_LIBRARY(ASPELL_LIBRARY_RELEASE NAMES aspell aspell-15
|
||||
PATHS
|
||||
/usr/lib
|
||||
/usr/local/lib
|
||||
)
|
||||
|
||||
# msvc makes a difference between debug and release
|
||||
if(MSVC)
|
||||
find_library(ASPELL_LIBRARY_DEBUG NAMES aspelld
|
||||
PATHS
|
||||
${_program_FILES_DIR}/kdewin32/lib)
|
||||
|
||||
if (ASPELL_INCLUDE_DIR AND ASPELL_LIBRARIES)
|
||||
set(ASPELL_FOUND TRUE)
|
||||
endif (ASPELL_INCLUDE_DIR AND ASPELL_LIBRARIES)
|
||||
if(MSVC_IDE)
|
||||
if(NOT ASPELL_LIBRARY_DEBUG OR NOT ASPELL_LIBRARY_RELEASE)
|
||||
SET(ASPELL_LIBRARY)
|
||||
else(NOT ASPELL_LIBRARY_DEBUG OR NOT ASPELL_LIBRARY_RELEASE)
|
||||
SET(ASPELL_LIBRARY optimized ${ASPELL_LIBRARY_RELEASE} debug ${ASPELL_LIBRARY_DEBUG})
|
||||
endif(NOT ASPELL_LIBRARY_DEBUG OR NOT ASPELL_LIBRARY_RELEASE)
|
||||
else(MSVC_IDE)
|
||||
string(TOLOWER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_TOLOWER)
|
||||
if(CMAKE_BUILD_TYPE_TOLOWER MATCHES debug)
|
||||
set(ASPELL_LIBRARY ${ASPELL_LIBRARY_DEBUG})
|
||||
else(CMAKE_BUILD_TYPE_TOLOWER MATCHES debug)
|
||||
set(ASPELL_LIBRARY ${ASPELL_LIBRARY_RELEASE})
|
||||
endif(CMAKE_BUILD_TYPE_TOLOWER MATCHES debug)
|
||||
endif(MSVC_IDE)
|
||||
else(MSVC)
|
||||
set(ASPELL_LIBRARY ${ASPELL_LIBRARY_RELEASE})
|
||||
endif(MSVC)
|
||||
|
||||
if (ASPELL_INCLUDE_DIR AND ASPELL_LIBRARY)
|
||||
set(ASPELL_FOUND TRUE)
|
||||
endif (ASPELL_INCLUDE_DIR AND ASPELL_LIBRARY)
|
||||
|
||||
if (ASPELL_FOUND)
|
||||
if (NOT ASPELL_FIND_QUIETLY)
|
||||
message(STATUS "Found ASPELL: ${ASPELL_LIBRARIES}")
|
||||
endif (NOT ASPELL_FIND_QUIETLY)
|
||||
if (NOT ASPELL_FIND_QUIETLY)
|
||||
message(STATUS "Found ASPELL: ${ASPELL_LIBRARY}")
|
||||
endif (NOT ASPELL_FIND_QUIETLY)
|
||||
else (ASPELL_FOUND)
|
||||
if (ASPELL_FIND_REQUIRED)
|
||||
message("aspell header: ${ASPELL_INCLUDE_DIR}")
|
||||
message("aspell lib : ${ASPELL_LIBRARIES}")
|
||||
message(FATAL_ERROR "Could NOT find ASPELL")
|
||||
endif (ASPELL_FIND_REQUIRED)
|
||||
if (ASPELL_FIND_REQUIRED)
|
||||
message("aspell header : ${ASPELL_INCLUDE_DIR}")
|
||||
message("aspell lib release : ${ASPELL_LIBRARY_RELEASE}")
|
||||
message("aspell lib debug : ${ASPELL_LIBRARY_DEBUG}")
|
||||
if(MSVC_IDE)
|
||||
# the ide needs the debug and release version
|
||||
if(NOT ASPELL_LIBRARY_DEBUG OR NOT ASPELL_LIBRARY_RELEASE)
|
||||
message(FATAL_ERROR "\nCould NOT find the debug AND release version of the aspell library.\nYou need to have both to use MSVC projects.\nPlease build and install both kdelibs/win/ libraries first.\n")
|
||||
endif(NOT ASPELL_LIBRARY_DEBUG OR NOT ASPELL_LIBRARY_RELEASE)
|
||||
endif(MSVC_IDE)
|
||||
message(FATAL_ERROR "Could NOT find ASPELL")
|
||||
endif (ASPELL_FIND_REQUIRED)
|
||||
endif (ASPELL_FOUND)
|
||||
|
||||
MARK_AS_ADVANCED(ASPELL_INCLUDE_DIR ASPELL_LIBRARIES)
|
||||
MARK_AS_ADVANCED(ASPELL_INCLUDE_DIR ASPELL_LIBRARY)
|
||||
|
0
development/cmake/modules/FindGNUWIN32.cmake
Executable file → Normal file
0
development/cmake/modules/FindGNUWIN32.cmake
Executable file → Normal file
0
development/cmake/modules/FindICONV.cmake
Executable file → Normal file
0
development/cmake/modules/FindICONV.cmake
Executable file → Normal file
0
development/cmake/modules/FindQt4.cmake
Executable file → Normal file
0
development/cmake/modules/FindQt4.cmake
Executable file → Normal file
0
development/cmake/modules/FindZLIB.cmake
Executable file → Normal file
0
development/cmake/modules/FindZLIB.cmake
Executable file → Normal file
0
development/cmake/modules/LyXMacros.cmake
Executable file → Normal file
0
development/cmake/modules/LyXMacros.cmake
Executable file → Normal file
0
development/cmake/modules/LyXPaths.cmake
Executable file → Normal file
0
development/cmake/modules/LyXPaths.cmake
Executable file → Normal file
0
development/cmake/modules/LyXuic.cmake
Executable file → Normal file
0
development/cmake/modules/LyXuic.cmake
Executable file → Normal file
0
development/cmake/modules/MacroAddFileDependencies.cmake
Executable file → Normal file
0
development/cmake/modules/MacroAddFileDependencies.cmake
Executable file → Normal file
2
development/cmake/src/CMakeLists.txt
Executable file → Normal file
2
development/cmake/src/CMakeLists.txt
Executable file → Normal file
@ -265,5 +265,5 @@ target_link_libraries(lyx-qt4
|
||||
)
|
||||
|
||||
if(ASPELL_FOUND)
|
||||
target_link_libraries(lyx-qt4 ${ASPELL_LIBRARIES})
|
||||
target_link_libraries(lyx-qt4 ${ASPELL_LIBRARY})
|
||||
endif(ASPELL_FOUND)
|
||||
|
0
development/cmake/src/dummy.cpp
Executable file → Normal file
0
development/cmake/src/dummy.cpp
Executable file → Normal file
0
development/cmake/src/frontends/CMakeLists.txt
Executable file → Normal file
0
development/cmake/src/frontends/CMakeLists.txt
Executable file → Normal file
0
development/cmake/src/frontends/controllers/CMakeLists.txt
Executable file → Normal file
0
development/cmake/src/frontends/controllers/CMakeLists.txt
Executable file → Normal file
0
development/cmake/src/frontends/qt4/CMakeLists.txt
Executable file → Normal file
0
development/cmake/src/frontends/qt4/CMakeLists.txt
Executable file → Normal file
0
development/cmake/src/graphics/CMakeLists.txt
Executable file → Normal file
0
development/cmake/src/graphics/CMakeLists.txt
Executable file → Normal file
0
development/cmake/src/insets/CMakeLists.txt
Executable file → Normal file
0
development/cmake/src/insets/CMakeLists.txt
Executable file → Normal file
0
development/cmake/src/mathed/CMakeLists.txt
Executable file → Normal file
0
development/cmake/src/mathed/CMakeLists.txt
Executable file → Normal file
0
development/cmake/src/support/CMakeLists.txt
Executable file → Normal file
0
development/cmake/src/support/CMakeLists.txt
Executable file → Normal file
0
development/cmake/src/support/package.C.cmake
Executable file → Normal file
0
development/cmake/src/support/package.C.cmake
Executable file → Normal file
0
development/cmake/src/tex2lyx/CMakeLists.txt
Executable file → Normal file
0
development/cmake/src/tex2lyx/CMakeLists.txt
Executable file → Normal file
0
development/cmake/src/version.C.cmake
Executable file → Normal file
0
development/cmake/src/version.C.cmake
Executable file → Normal file
Loading…
Reference in New Issue
Block a user