Ran qt3to4
[basket4.git] / CMakeLists.txt
blob3eeebcc2125436cb375ea68713af903a349c37aa
1 PROJECT(basket)
3 # Find the requisite packages
4 FIND_PACKAGE(KDE3 REQUIRED)
5 INCLUDE_DIRECTORIES(${KDE3_INCLUDE_DIRS})
6 ADD_DEFINITIONS(${QT_DEFINITIONS} ${KDE3_DEFINITIONS})
7 LINK_DIRECTORIES(${QT_LIB_DIR} ${KDE3_LIB_DIR})
9 FIND_LIBRARY(GPGME gpgme)
10 IF(NOT GPGME-NOTFOUND)
11   SET(HAVE_LIBGPGME 1)
12   SET(GPGME_LIB gpgme)
13   ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64)
14 ELSE(NOT GPGME-NOTFOUND)
15   MESSAGE("GPG not found, configuring without")
16 ENDIF(NOT GPGME-NOTFOUND)
18 #TODO: use KDE's settings for this
19 FIND_PROGRAM(MEINPROC meinproc)
20 set(KDE4_MEINPROC_EXECUTABLE ${MEINPROC})
22 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h )
23 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
25 ADD_SUBDIRECTORY(doc)
26 ADD_SUBDIRECTORY(src)