2014-12-02 22:00:39 +03:00
|
|
|
set(PROCESSORS 4)
|
2015-09-02 21:15:59 +03:00
|
|
|
set(BOOTSTRAP_ARGS "--docdir=doc/cmake")
|
2014-12-02 22:00:39 +03:00
|
|
|
set(HOST linux64)
|
|
|
|
set(MAKE_PROGRAM "make")
|
2016-06-30 21:00:30 +03:00
|
|
|
set(CC /opt/gcc-6.1.0/bin/gcc)
|
|
|
|
set(CXX /opt/gcc-6.1.0/bin/g++)
|
2014-12-02 22:00:39 +03:00
|
|
|
set(CFLAGS "")
|
|
|
|
set(CXXFLAGS "")
|
2016-06-30 21:00:30 +03:00
|
|
|
set(qt_prefix "/home/kitware/qt-5.7.0")
|
|
|
|
set(qt_xcb_libs
|
|
|
|
${qt_prefix}/plugins/platforms/libqxcb.a
|
|
|
|
${qt_prefix}/lib/libQt5XcbQpa.a
|
|
|
|
${qt_prefix}/lib/libQt5PlatformSupport.a
|
|
|
|
${qt_prefix}/lib/libxcb-static.a
|
|
|
|
-lX11-xcb
|
|
|
|
-lX11
|
|
|
|
-lxcb
|
|
|
|
-lfontconfig
|
|
|
|
-lfreetype
|
|
|
|
)
|
2014-12-02 22:00:39 +03:00
|
|
|
set(INITIAL_CACHE "
|
|
|
|
CMAKE_BUILD_TYPE:STRING=Release
|
2016-06-30 21:00:30 +03:00
|
|
|
CMAKE_C_STANDARD:STRING=11
|
2016-09-16 19:52:13 +03:00
|
|
|
CMAKE_CXX_STANDARD:STRING=14
|
2016-06-30 21:00:30 +03:00
|
|
|
CMAKE_C_FLAGS:STRING=-D_POSIX_C_SOURCE=199506L -D_POSIX_SOURCE=1 -D_SVID_SOURCE=1 -D_BSD_SOURCE=1
|
|
|
|
CMAKE_EXE_LINKER_FLAGS:STRING=-static-libstdc++ -static-libgcc
|
2014-12-02 22:00:39 +03:00
|
|
|
CURSES_LIBRARY:FILEPATH=/home/kitware/ncurses-5.9/lib/libncurses.a
|
|
|
|
CURSES_INCLUDE_PATH:PATH=/home/kitware/ncurses-5.9/include
|
|
|
|
FORM_LIBRARY:FILEPATH=/home/kitware/ncurses-5.9/lib/libform.a
|
|
|
|
CMAKE_USE_OPENSSL:BOOL=ON
|
2016-05-05 16:13:33 +03:00
|
|
|
OPENSSL_CRYPTO_LIBRARY:FILEPATH=/home/kitware/openssl-1.0.2h/lib/libcrypto.a
|
|
|
|
OPENSSL_INCLUDE_DIR:PATH=/home/kitware/openssl-1.0.2h/include
|
|
|
|
OPENSSL_SSL_LIBRARY:FILEPATH=/home/kitware/openssl-1.0.2h/lib/libssl.a
|
2014-12-02 22:00:39 +03:00
|
|
|
CPACK_SYSTEM_NAME:STRING=Linux-x86_64
|
|
|
|
BUILD_QtDialog:BOOL:=TRUE
|
2016-06-30 21:00:30 +03:00
|
|
|
CMake_GUI_DISTRIBUTE_WITH_Qt_LGPL:STRING=3
|
2015-08-05 20:28:35 +03:00
|
|
|
CMake_INSTALL_DEPENDENCIES:BOOL=ON
|
2016-06-30 21:00:30 +03:00
|
|
|
CMAKE_PREFIX_PATH:STRING=${qt_prefix}
|
|
|
|
CMake_QT_STATIC_QXcbIntegrationPlugin_LIBRARIES:STRING=${qt_xcb_libs}
|
2014-12-02 22:00:39 +03:00
|
|
|
")
|
2016-06-30 21:00:30 +03:00
|
|
|
|
|
|
|
# Exclude Qt5 tests because our Qt5 is static.
|
|
|
|
set(EXTRA_CTEST_ARGS "-E Qt5")
|
|
|
|
|
2014-12-02 22:00:39 +03:00
|
|
|
get_filename_component(path "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
|
|
include(${path}/release_cmake.cmake)
|