diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2008-12-17 01:31:30 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2008-12-17 01:31:30 +0100 |
commit | cc1049c1dcc500ef6f8e650e9add97614f3a37b2 (patch) | |
tree | fbaea66a769f2bf1756ad258eb12f2c757b6f982 | |
parent | Some other steps on the road to the KDE browser.. (diff) | |
download | rekonq-cc1049c1dcc500ef6f8e650e9add97614f3a37b2.tar.xz |
Enhanced CMakeLists.txt
-rw-r--r-- | CMakeLists.txt | 90 | ||||
-rw-r--r-- | TODO | 3 |
2 files changed, 80 insertions, 13 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f4de5473..532f39b4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,23 +3,87 @@ PROJECT( rekonq ) +# =============================================================================================== +# Informations to update before to release this package. + +# rekonq version +SET(REKONQ_MAJOR_VERSION "0") +SET(REKONQ_MINOR_VERSION "0") +SET(REKONQ_PATCH_VERSION "1") + +SET(REKONQ_VERSION_STRING + "${REKONQ_MAJOR_VERSION}.${REKONQ_MINOR_VERSION}.${REKONQ_PATCH_VERSION}" + ) + +# ================================================================================================= +# minimum cmake required + CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0) +# ================================================================================================= + + SET( QT_MIN_VERSION 4.4.0) -FIND_PACKAGE( KDE4 REQUIRED ) +FIND_PACKAGE(KDE4 REQUIRED) +INCLUDE(MacroOptionalFindPackage) +INCLUDE(FindPackageHandleStandardArgs) INCLUDE(KDE4Defaults) INCLUDE(MacroLibrary) -INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_BINARY_DIR} - ${KDE4_INCLUDES} - ${QT4_INCLUDES} - ${QT_QTNETWORK_INCLUDE_DIR} - ${QT_QTWEBKIT_INCLUDE_DIR} -) - -ADD_SUBDIRECTORY( src ) -ADD_SUBDIRECTORY( icons ) -ADD_SUBDIRECTORY( data ) -ADD_SUBDIRECTORY( htmls ) +# ================================================================================================== +# Log messages + +MESSAGE(STATUS "") +MESSAGE(STATUS "----------------------------------------------------------------------------------") +MESSAGE(STATUS " rekonq ${REKONQ_VERSION_STRING} dependencies results <http://rekonq.adjam.org>") +MESSAGE(STATUS "") + +# Require shared libraries results. + +IF(QT_FOUND) + MESSAGE(STATUS " qt library found............... YES") +ELSE(QT_FOUND) + MESSAGE(STATUS " qt library found............... NO") + MESSAGE(STATUS "") + MESSAGE(SEND_ERROR " rekonq needs at least Qt 4.4.0. Please install it and try compiling again.") + MESSAGE(STATUS " Qt website is at http://www.trolltech.com") + MESSAGE(STATUS "") +ENDIF(QT_FOUND) + +MESSAGE(STATUS "----------------------------------------------------------------------------------") +MESSAGE(STATUS "") + +# Optional plugins results. + +IF(QT_FOUND) + MESSAGE(STATUS " rekonq will be compiled....... YES") + SET(REKONQ_CAN_BE_COMPILED true) +ELSE(QT_FOUND) + MESSAGE(FATAL_ERROR " rekonq will not be compiled!") + SET(REKONQ_CAN_BE_COMPILED false) +ENDIF(QT_FOUND) + +MESSAGE(STATUS "----------------------------------------------------------------------------------") +MESSAGE(STATUS "") + +# ================================================================================================== + +IF(REKONQ_CAN_BE_COMPILED) + + INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${KDE4_INCLUDES} + ${QT4_INCLUDES} + ${QT_QTNETWORK_INCLUDE_DIR} + ${QT_QTWEBKIT_INCLUDE_DIR} + ) + + ADD_SUBDIRECTORY( src ) + ADD_SUBDIRECTORY( icons ) + ADD_SUBDIRECTORY( data ) + ADD_SUBDIRECTORY( htmls ) + +ENDIF(REKONQ_CAN_BE_COMPILED) + +# =====================================================================================================
\ No newline at end of file @@ -30,3 +30,6 @@ NEXT.. - NEW save/load setting functions in KMainWIndow - improve CMakeLists.txt 4.4 required, 4.5 better.. - browse code to search TODO and FIXME +- qDebug --> kWarning() / kDebug()! +- dbus support + |