mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
also build without gnuwin32 directory
This commit is contained in:
parent
584c3a6f7b
commit
7d2c054611
@ -139,6 +139,7 @@ LYX_OPTION(ENABLE_URLTESTS "Enable for URL tests" OFF ALL)
|
||||
LYX_OPTION(ENABLE_EXPORT_TESTS "Enable for export tests" OFF ALL)
|
||||
LYX_OPTION(ASAN "Use address sanitizer" OFF ALL)
|
||||
LYX_COMBO(USE_QT "Use Qt version as frontend" QT4 QT5)
|
||||
LYX_OPTION(3RDPARTY_BUILD "Build 3rdparty libs" OFF ALL)
|
||||
|
||||
# GCC specific
|
||||
LYX_OPTION(PROFILE "Build profile version" OFF GCC)
|
||||
|
@ -25,11 +25,11 @@
|
||||
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
|
||||
if(WIN32)
|
||||
|
||||
if(NOT WIN32)
|
||||
set(_prog_path ~/bin)
|
||||
else()
|
||||
|
||||
if(WINDEPS)
|
||||
|
||||
FIND_PROGRAM(LYX_QMAKE NAMES qmake)
|
||||
if(NOT LYX_QMAKE)
|
||||
message("------ qmake not found. Add YOUR_PATH\\lyx-windows-deps-msvc-qt4\\qt-4\\bin")
|
||||
@ -52,36 +52,35 @@ if(WINDEPS)
|
||||
set(QT_MOC_EXECUTABLE "${WINDEPSDIR}/qt-4/bin/moc.exe" CACHE TYPE STRING FORCE)
|
||||
set(QT_UIC_EXECUTABLE "${WINDEPSDIR}/qt-4/bin/uic.exe" CACHE TYPE STRING FORCE)
|
||||
set(QT_RCC_EXECUTABLE "${WINDEPSDIR}/qt-4/bin/rcc.exe" CACHE TYPE STRING FORCE)
|
||||
|
||||
endif()
|
||||
|
||||
find_package(GNUWIN32 REQUIRED)
|
||||
|
||||
file(TO_CMAKE_PATH "$ENV{PROGRAMFILES}" _prog_path)
|
||||
|
||||
set(_zlib_path ${_prog_path}/zlib)
|
||||
set(_iconv_path ${_prog_path}/iconv)
|
||||
|
||||
set(_gnuwin32_dir ${GNUWIN32_DIR})
|
||||
|
||||
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)
|
||||
|
||||
|
||||
if(LYX_3RDPARTY_BUILD)
|
||||
find_package(GNUWIN32)
|
||||
file(TO_CMAKE_PATH "$ENV{PROGRAMFILES}" _prog_path)
|
||||
else()
|
||||
find_package(GNUWIN32 REQUIRED)
|
||||
|
||||
file(TO_CMAKE_PATH "$ENV{PROGRAMFILES}" _prog_path)
|
||||
|
||||
set(_zlib_path ${_prog_path}/zlib)
|
||||
set(_iconv_path ${_prog_path}/iconv)
|
||||
|
||||
set(_gnuwin32_dir ${GNUWIN32_DIR})
|
||||
|
||||
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)
|
||||
endif()
|
||||
|
||||
set(_prog_path ~/bin)
|
||||
|
||||
endif()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user