diff options
author | Brad King <brad.king@kitware.com> | 2008-02-13 19:47:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-02-13 19:47:03 (GMT) |
commit | ad95a57509380ba9050379a76dec305f4957eab7 (patch) | |
tree | 691eceebd537662e7e89339f473779b4ac9b653e /bootstrap | |
parent | 9439cbd4baf0474b5dd05331cb7de31b48f045d1 (diff) | |
download | CMake-ad95a57509380ba9050379a76dec305f4957eab7.zip CMake-ad95a57509380ba9050379a76dec305f4957eab7.tar.gz CMake-ad95a57509380ba9050379a76dec305f4957eab7.tar.bz2 |
ENH: Add option to bootstrap script to enable Qt dialog.
- Add --qt-gui and --no-qt-gui options
- Add --qt-qmake=<qmake> option to help locate Qt
- Build more commands during bootstrap to help FindQt4.cmake:
MATH, GET_DIRECTORY_PROPERTY, EXECUTE_PROCESS,
SEPARATE_ARGUMENTS
- Bootstrapping with the cmake-gui is now possible in MSys
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -49,6 +49,8 @@ cmake_doc_dir="/doc/cmake-${cmake_version}" cmake_man_dir="/man" cmake_init_file="" cmake_bootstrap_system_libs="" +cmake_bootstrap_qt_gui="" +cmake_bootstrap_qt_qmake="" # Determine whether this is a MinGW environment. if echo "${cmake_system}" | grep MINGW >/dev/null 2>&1; then @@ -172,6 +174,9 @@ CMAKE_CXX_SOURCES="\ cmOrderRuntimeDirectories \ cmComputeTargetDepends \ cmComputeComponentGraph \ + cmExprLexer \ + cmExprParser \ + cmExprParserHelper \ " if ${cmake_system_mingw}; then @@ -244,6 +249,9 @@ Configuration: (for use only by package maintainers) --no-system-libs use cmake-provided third-party libraries (default) + --qt-gui build the Qt-based GUI (requires Qt >= 4.2) + --no-qt-gui do not build the Qt-based GUI (default) + --qt-qmake=<qmake> use <qmake> as the qmake executable to find Qt Directory and file names: --prefix=PREFIX install files in tree rooted at PREFIX @@ -482,6 +490,15 @@ for a in "$@"; do if echo $a | grep "^--no-system-libs" > /dev/null 2> /dev/null; then cmake_bootstrap_system_libs="-DCMAKE_USE_SYSTEM_LIBRARIES=0" fi + if echo $a | grep "^--qt-gui" > /dev/null 2> /dev/null; then + cmake_bootstrap_qt_gui="1" + fi + if echo $a | grep "^--no-qt-gui" > /dev/null 2> /dev/null; then + cmake_bootstrap_qt_gui="0" + fi + if echo $a | grep "^--qt-qmake=" > /dev/null 2> /dev/null; then + cmake_bootstrap_qt_qmake=`echo $a | sed "s/^--qt-qmake=//"` + fi if echo $a | grep "^--help" > /dev/null 2> /dev/null; then cmake_usage fi @@ -1302,6 +1319,18 @@ SET (CMAKE_MAN_DIR "${cmake_man_dir}" CACHE PATH "Install location for man pages SET (CMAKE_DATA_DIR "${cmake_data_dir}" CACHE PATH "Install location for data (relative to prefix)." FORCE) EOF +# Add configuration settings given as command-line options. +if [ "x${cmake_bootstrap_qt_gui}" != "x" ]; then + cat >> "${cmake_bootstrap_dir}/InitialCacheFlags.cmake" <<EOF +SET (BUILD_QtDialog ${cmake_bootstrap_qt_gui} CACHE BOOL "Build Qt dialog for CMake" FORCE) +EOF +fi +if [ "x${cmake_bootstrap_qt_qmake}" != "x" ]; then + cat >> "${cmake_bootstrap_dir}/InitialCacheFlags.cmake" <<EOF +SET (QT_QMAKE_EXECUTABLE "${cmake_bootstrap_qt_qmake}" CACHE FILEPATH "Location of Qt qmake" FORCE) +EOF +fi + # Add user-specified settings. Handle relative-path case for # specification of cmake_init_file. ( |