summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authoradjam <adjam@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-05-03 23:51:22 +0000
committeradjam <adjam@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-05-03 23:51:22 +0000
commitc0190e41f7f2e5fe30fa8556fa35f43950afbfdb (patch)
tree086794c886f413b3e4dbcfad9d3697a55f8dd64b /CMakeLists.txt
parentInitial rekcommit.. (diff)
downloadrekonq-c0190e41f7f2e5fe30fa8556fa35f43950afbfdb.tar.xz
Importing recode (rekonq code).
I'm sorry I coudn't perform this with gitsvn or tailor.. but I cannot lose all the evening just for this. And I need to sleep now.. git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/playground/network/rekonq@963146 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt98
1 files changed, 98 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 00000000..4cbc3de2
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,98 @@
+# Andrea Diamantini - adjam7 at gmail dot com
+# rekonq project
+
+PROJECT( rekonq )
+
+# ===============================================================================================
+# Informations to update before to release this package.
+
+# rekonq info
+SET(REKONQ_MAJOR_VERSION "0")
+SET(REKONQ_MINOR_VERSION "1")
+SET(REKONQ_PATCH_VERSION "0alpha")
+
+SET(REKONQ_VERSION_STR
+ "${REKONQ_MAJOR_VERSION}.${REKONQ_MINOR_VERSION}.${REKONQ_PATCH_VERSION}"
+ )
+
+SET(REKONQ_SITE "http://rekonq.sourceforge.net")
+
+# =================================================================================================
+# minimum cmake required
+
+CMAKE_MINIMUM_REQUIRED(VERSION 2.6.2)
+
+# =================================================================================================
+
+
+SET(QT_MIN_VERSION 4.5.0)
+FIND_PACKAGE(Qt4 REQUIRED)
+SET(KDE_MIN_VERSION 4.2.0)
+FIND_PACKAGE(KDE4 REQUIRED)
+
+INCLUDE(MacroOptionalFindPackage)
+INCLUDE(FindPackageHandleStandardArgs)
+INCLUDE(KDE4Defaults)
+INCLUDE(MacroLibrary)
+
+# ==================================================================================================
+# Log messages
+
+MESSAGE(STATUS "")
+MESSAGE(STATUS "----------------------------------------------------------------------------------")
+MESSAGE(STATUS " rekonq ${REKONQ_VERSION_STR} dependencies results <${REKONQ_SITE}>")
+
+# Require shared libraries results.
+
+SET(QT_VERS_STR
+ "${QT_VERSION_MAJOR}.${QT_VERSION_MINOR}.${QT_VERSION_PATCH}"
+ )
+
+IF(QT_FOUND)
+ MESSAGE(STATUS " Qt library found............... YES")
+ MESSAGE(STATUS " Qt version ${QT_VERS_STR} found! ")
+ELSE(QT_FOUND)
+ MESSAGE(STATUS " Qt library found............... NO")
+ MESSAGE(STATUS "")
+ MESSAGE(SEND_ERROR " rekonq needs at least Qt ${QT_MIN_VERSION}. Please install it and try compiling again.")
+ MESSAGE(STATUS " Qt website is at http://www.qtsoftware.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( po )
+# ADD_SUBDIRECTORY( doc )
+
+ENDIF(REKONQ_CAN_BE_COMPILED)
+
+# =====================================================================================================