2016-09-27 22:01:08 +03:00
|
|
|
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
# file Copyright.txt or https://cmake.org/licensing for details.
|
|
|
|
|
2013-10-15 19:17:36 +04:00
|
|
|
#.rst:
|
|
|
|
# FindKDE3
|
|
|
|
# --------
|
|
|
|
#
|
|
|
|
# Find the KDE3 include and library dirs, KDE preprocessors and define a some macros
|
|
|
|
#
|
|
|
|
#
|
2006-03-09 22:10:59 +03:00
|
|
|
#
|
|
|
|
# This module defines the following variables:
|
2013-10-15 19:17:36 +04:00
|
|
|
#
|
2014-10-22 23:52:31 +04:00
|
|
|
# ``KDE3_DEFINITIONS``
|
|
|
|
# compiler definitions required for compiling KDE software
|
|
|
|
# ``KDE3_INCLUDE_DIR``
|
|
|
|
# the KDE include directory
|
|
|
|
# ``KDE3_INCLUDE_DIRS``
|
|
|
|
# the KDE and the Qt include directory, for use with include_directories()
|
|
|
|
# ``KDE3_LIB_DIR``
|
|
|
|
# the directory where the KDE libraries are installed, for use with link_directories()
|
|
|
|
# ``QT_AND_KDECORE_LIBS``
|
|
|
|
# this contains both the Qt and the kdecore library
|
|
|
|
# ``KDE3_DCOPIDL_EXECUTABLE``
|
|
|
|
# the dcopidl executable
|
|
|
|
# ``KDE3_DCOPIDL2CPP_EXECUTABLE``
|
|
|
|
# the dcopidl2cpp executable
|
|
|
|
# ``KDE3_KCFGC_EXECUTABLE``
|
|
|
|
# the kconfig_compiler executable
|
|
|
|
# ``KDE3_FOUND``
|
|
|
|
# set to TRUE if all of the above has been found
|
2006-03-09 22:10:59 +03:00
|
|
|
#
|
|
|
|
# The following user adjustable options are provided:
|
|
|
|
#
|
2014-10-22 23:52:31 +04:00
|
|
|
# ``KDE3_BUILD_TESTS``
|
|
|
|
# enable this to build KDE testcases
|
2013-10-15 19:17:36 +04:00
|
|
|
#
|
|
|
|
# It also adds the following macros (from KDE3Macros.cmake) SRCS_VAR is
|
|
|
|
# always the variable which contains the list of source files for your
|
|
|
|
# application or library.
|
|
|
|
#
|
|
|
|
# KDE3_AUTOMOC(file1 ... fileN)
|
|
|
|
#
|
|
|
|
# ::
|
|
|
|
#
|
|
|
|
# Call this if you want to have automatic moc file handling.
|
|
|
|
# This means if you include "foo.moc" in the source file foo.cpp
|
|
|
|
# a moc file for the header foo.h will be created automatically.
|
|
|
|
# You can set the property SKIP_AUTOMAKE using set_source_files_properties()
|
|
|
|
# to exclude some files in the list from being processed.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# KDE3_ADD_MOC_FILES(SRCS_VAR file1 ... fileN )
|
|
|
|
#
|
|
|
|
# ::
|
|
|
|
#
|
|
|
|
# If you don't use the KDE3_AUTOMOC() macro, for the files
|
|
|
|
# listed here moc files will be created (named "foo.moc.cpp")
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# KDE3_ADD_DCOP_SKELS(SRCS_VAR header1.h ... headerN.h )
|
|
|
|
#
|
|
|
|
# ::
|
|
|
|
#
|
|
|
|
# Use this to generate DCOP skeletions from the listed headers.
|
2006-03-09 22:10:59 +03:00
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
2013-10-15 19:17:36 +04:00
|
|
|
# KDE3_ADD_DCOP_STUBS(SRCS_VAR header1.h ... headerN.h )
|
2006-03-09 22:10:59 +03:00
|
|
|
#
|
2013-10-15 19:17:36 +04:00
|
|
|
# ::
|
2006-03-09 22:10:59 +03:00
|
|
|
#
|
2013-10-15 19:17:36 +04:00
|
|
|
# Use this to generate DCOP stubs from the listed headers.
|
2006-03-09 22:10:59 +03:00
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
2013-10-15 19:17:36 +04:00
|
|
|
# KDE3_ADD_UI_FILES(SRCS_VAR file1.ui ... fileN.ui )
|
|
|
|
#
|
|
|
|
# ::
|
|
|
|
#
|
|
|
|
# Use this to add the Qt designer ui files to your application/library.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# KDE3_ADD_KCFG_FILES(SRCS_VAR file1.kcfgc ... fileN.kcfgc )
|
|
|
|
#
|
|
|
|
# ::
|
|
|
|
#
|
|
|
|
# Use this to add KDE kconfig compiler files to your application/library.
|
|
|
|
#
|
|
|
|
#
|
2006-03-09 22:10:59 +03:00
|
|
|
#
|
|
|
|
# KDE3_INSTALL_LIBTOOL_FILE(target)
|
|
|
|
#
|
2013-10-15 19:17:36 +04:00
|
|
|
# ::
|
|
|
|
#
|
|
|
|
# This will create and install a simple libtool file for the given target.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# KDE3_ADD_EXECUTABLE(name file1 ... fileN )
|
|
|
|
#
|
|
|
|
# ::
|
|
|
|
#
|
2014-10-22 23:52:31 +04:00
|
|
|
# Currently identical to add_executable(), may provide some advanced
|
|
|
|
# features in the future.
|
2013-10-15 19:17:36 +04:00
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# KDE3_ADD_KPART(name [WITH_PREFIX] file1 ... fileN )
|
|
|
|
#
|
|
|
|
# ::
|
|
|
|
#
|
|
|
|
# Create a KDE plugin (KPart, kioslave, etc.) from the given source files.
|
2014-10-22 23:52:31 +04:00
|
|
|
# If WITH_PREFIX is given, the resulting plugin will have the prefix "lib",
|
|
|
|
# otherwise it won't.
|
2013-10-15 19:17:36 +04:00
|
|
|
# It creates and installs an appropriate libtool la-file.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# KDE3_ADD_KDEINIT_EXECUTABLE(name file1 ... fileN )
|
|
|
|
#
|
|
|
|
# ::
|
|
|
|
#
|
|
|
|
# Create a KDE application in the form of a module loadable via kdeinit.
|
2014-10-22 23:52:31 +04:00
|
|
|
# A library named kdeinit_<name> will be created and a small executable
|
|
|
|
# which links to it.
|
2013-10-15 19:17:36 +04:00
|
|
|
#
|
2006-03-09 22:10:59 +03:00
|
|
|
#
|
|
|
|
#
|
2013-10-15 19:17:36 +04:00
|
|
|
# The option KDE3_ENABLE_FINAL to enable all-in-one compilation is no
|
|
|
|
# longer supported.
|
2007-02-21 00:02:51 +03:00
|
|
|
#
|
|
|
|
#
|
2006-03-09 22:10:59 +03:00
|
|
|
#
|
|
|
|
# Author: Alexander Neundorf <neundorf@kde.org>
|
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
if(NOT UNIX AND KDE3_FIND_REQUIRED)
|
|
|
|
message(FATAL_ERROR "Compiling KDE3 applications and libraries under Windows is not supported")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2006-03-09 22:10:59 +03:00
|
|
|
|
2008-08-17 03:11:53 +04:00
|
|
|
# If Qt4 has already been found, fail.
|
2012-08-13 21:47:32 +04:00
|
|
|
if(QT4_FOUND)
|
|
|
|
if(KDE3_FIND_REQUIRED)
|
|
|
|
message( FATAL_ERROR "KDE3/Qt3 and Qt4 cannot be used together in one project.")
|
2012-08-13 21:50:14 +04:00
|
|
|
else()
|
2012-08-13 21:47:32 +04:00
|
|
|
if(NOT KDE3_FIND_QUIETLY)
|
|
|
|
message( STATUS "KDE3/Qt3 and Qt4 cannot be used together in one project.")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2012-08-13 21:47:32 +04:00
|
|
|
return()
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
|
|
|
endif()
|
2008-08-17 03:11:53 +04:00
|
|
|
|
2006-03-09 22:10:59 +03:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
set(QT_MT_REQUIRED TRUE)
|
|
|
|
#set(QT_MIN_VERSION "3.0.0")
|
2006-03-09 22:10:59 +03:00
|
|
|
|
|
|
|
#this line includes FindQt.cmake, which searches the Qt library and headers
|
2012-08-13 21:47:32 +04:00
|
|
|
if(KDE3_FIND_REQUIRED)
|
|
|
|
set(_REQ_STRING_KDE3 "REQUIRED")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2012-08-13 21:42:58 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
find_package(Qt3 ${_REQ_STRING_KDE3})
|
|
|
|
find_package(X11 ${_REQ_STRING_KDE3})
|
2006-03-09 22:10:59 +03:00
|
|
|
|
|
|
|
|
|
|
|
#now try to find some kde stuff
|
2012-08-13 21:47:32 +04:00
|
|
|
find_program(KDECONFIG_EXECUTABLE NAMES kde-config
|
2008-06-10 00:04:06 +04:00
|
|
|
HINTS
|
2006-08-27 17:34:42 +04:00
|
|
|
$ENV{KDEDIR}/bin
|
2008-06-10 00:04:06 +04:00
|
|
|
PATHS
|
2006-08-27 17:34:42 +04:00
|
|
|
/opt/kde3/bin
|
|
|
|
/opt/kde/bin
|
|
|
|
)
|
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
set(KDE3PREFIX)
|
|
|
|
if(KDECONFIG_EXECUTABLE)
|
|
|
|
execute_process(COMMAND ${KDECONFIG_EXECUTABLE} --version
|
2006-08-27 17:34:42 +04:00
|
|
|
OUTPUT_VARIABLE kde_config_version )
|
2006-03-09 22:10:59 +03:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
string(REGEX MATCH "KDE: .\\." kde_version "${kde_config_version}")
|
|
|
|
if ("${kde_version}" MATCHES "KDE: 3\\.")
|
|
|
|
execute_process(COMMAND ${KDECONFIG_EXECUTABLE} --prefix
|
2006-08-27 17:34:42 +04:00
|
|
|
OUTPUT_VARIABLE kdedir )
|
2014-04-06 23:51:33 +04:00
|
|
|
string(REPLACE "\n" "" KDE3PREFIX "${kdedir}")
|
2006-08-27 17:34:42 +04:00
|
|
|
|
2012-08-13 21:50:14 +04:00
|
|
|
endif ()
|
|
|
|
endif()
|
2006-08-27 17:34:42 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
2012-07-30 10:08:33 +04:00
|
|
|
# at first the KDE include directory
|
2006-03-09 22:10:59 +03:00
|
|
|
# kpassdlg.h comes from kdeui and doesn't exist in KDE4 anymore
|
2012-08-13 21:47:32 +04:00
|
|
|
find_path(KDE3_INCLUDE_DIR kpassdlg.h
|
2008-06-10 00:04:06 +04:00
|
|
|
HINTS
|
2006-03-09 22:10:59 +03:00
|
|
|
$ENV{KDEDIR}/include
|
2006-08-27 17:34:42 +04:00
|
|
|
${KDE3PREFIX}/include
|
2008-06-10 00:04:06 +04:00
|
|
|
PATHS
|
2006-03-09 22:10:59 +03:00
|
|
|
/opt/kde3/include
|
2006-08-27 17:34:42 +04:00
|
|
|
/opt/kde/include
|
2006-03-09 22:10:59 +03:00
|
|
|
/usr/include/kde
|
|
|
|
/usr/local/include/kde
|
2006-08-27 17:34:42 +04:00
|
|
|
)
|
|
|
|
|
2006-03-09 22:10:59 +03:00
|
|
|
#now the KDE library directory
|
2012-08-13 21:47:32 +04:00
|
|
|
find_library(KDE3_KDECORE_LIBRARY NAMES kdecore
|
2008-06-10 00:04:06 +04:00
|
|
|
HINTS
|
2006-03-09 22:10:59 +03:00
|
|
|
$ENV{KDEDIR}/lib
|
2006-08-27 17:34:42 +04:00
|
|
|
${KDE3PREFIX}/lib
|
2008-06-10 00:04:06 +04:00
|
|
|
PATHS
|
2006-03-09 22:10:59 +03:00
|
|
|
/opt/kde3/lib
|
2006-08-27 17:34:42 +04:00
|
|
|
/opt/kde/lib
|
2006-03-09 22:10:59 +03:00
|
|
|
)
|
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
set(QT_AND_KDECORE_LIBS ${QT_LIBRARIES} ${KDE3_KDECORE_LIBRARY})
|
2007-07-17 16:41:20 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
get_filename_component(KDE3_LIB_DIR ${KDE3_KDECORE_LIBRARY} PATH )
|
2006-03-09 22:10:59 +03:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
if(NOT KDE3_LIBTOOL_DIR)
|
|
|
|
if(KDE3_KDECORE_LIBRARY MATCHES lib64)
|
|
|
|
set(KDE3_LIBTOOL_DIR /lib64/kde3)
|
2012-08-13 21:50:14 +04:00
|
|
|
else()
|
2012-08-13 21:47:32 +04:00
|
|
|
set(KDE3_LIBTOOL_DIR /lib/kde3)
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
|
|
|
endif()
|
2007-07-17 16:41:20 +04:00
|
|
|
|
2006-03-09 22:10:59 +03:00
|
|
|
#now search for the dcop utilities
|
2012-08-13 21:47:32 +04:00
|
|
|
find_program(KDE3_DCOPIDL_EXECUTABLE NAMES dcopidl
|
2008-06-10 00:04:06 +04:00
|
|
|
HINTS
|
2006-03-09 22:10:59 +03:00
|
|
|
$ENV{KDEDIR}/bin
|
2006-08-27 17:34:42 +04:00
|
|
|
${KDE3PREFIX}/bin
|
2008-06-10 00:04:06 +04:00
|
|
|
PATHS
|
2006-03-09 22:10:59 +03:00
|
|
|
/opt/kde3/bin
|
2006-08-27 17:34:42 +04:00
|
|
|
/opt/kde/bin
|
2006-03-09 22:10:59 +03:00
|
|
|
)
|
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
find_program(KDE3_DCOPIDL2CPP_EXECUTABLE NAMES dcopidl2cpp
|
2008-06-10 00:04:06 +04:00
|
|
|
HINTS
|
2006-03-09 22:10:59 +03:00
|
|
|
$ENV{KDEDIR}/bin
|
2006-08-27 17:34:42 +04:00
|
|
|
${KDE3PREFIX}/bin
|
2008-06-10 00:04:06 +04:00
|
|
|
PATHS
|
2006-08-27 17:34:42 +04:00
|
|
|
/opt/kde3/bin
|
2006-03-09 22:10:59 +03:00
|
|
|
/opt/kde/bin
|
2006-08-27 17:34:42 +04:00
|
|
|
)
|
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
find_program(KDE3_KCFGC_EXECUTABLE NAMES kconfig_compiler
|
2008-06-10 00:04:06 +04:00
|
|
|
HINTS
|
2006-03-09 22:10:59 +03:00
|
|
|
$ENV{KDEDIR}/bin
|
2006-08-27 17:34:42 +04:00
|
|
|
${KDE3PREFIX}/bin
|
2008-06-10 00:04:06 +04:00
|
|
|
PATHS
|
2006-08-27 17:34:42 +04:00
|
|
|
/opt/kde3/bin
|
2006-03-09 22:10:59 +03:00
|
|
|
/opt/kde/bin
|
2006-08-27 17:34:42 +04:00
|
|
|
)
|
2006-03-09 22:10:59 +03:00
|
|
|
|
|
|
|
|
|
|
|
#SET KDE3_FOUND
|
2012-08-13 21:47:32 +04:00
|
|
|
if (KDE3_INCLUDE_DIR AND KDE3_LIB_DIR AND KDE3_DCOPIDL_EXECUTABLE AND KDE3_DCOPIDL2CPP_EXECUTABLE AND KDE3_KCFGC_EXECUTABLE)
|
|
|
|
set(KDE3_FOUND TRUE)
|
2012-08-13 21:50:14 +04:00
|
|
|
else ()
|
2012-08-13 21:47:32 +04:00
|
|
|
set(KDE3_FOUND FALSE)
|
2012-08-13 21:50:14 +04:00
|
|
|
endif ()
|
2006-03-09 22:10:59 +03:00
|
|
|
|
2008-06-19 03:02:20 +04:00
|
|
|
# add some KDE specific stuff
|
2012-08-13 21:47:32 +04:00
|
|
|
set(KDE3_DEFINITIONS -DQT_CLEAN_NAMESPACE -D_GNU_SOURCE)
|
2008-06-19 03:02:20 +04:00
|
|
|
|
|
|
|
# set compiler flags only if KDE3 has actually been found
|
2012-08-13 21:47:32 +04:00
|
|
|
if(KDE3_FOUND)
|
|
|
|
set(_KDE3_USE_FLAGS FALSE)
|
|
|
|
if(CMAKE_COMPILER_IS_GNUCXX)
|
|
|
|
set(_KDE3_USE_FLAGS TRUE) # use flags for gnu compiler
|
|
|
|
execute_process(COMMAND ${CMAKE_CXX_COMPILER} --version
|
2008-06-19 03:02:20 +04:00
|
|
|
OUTPUT_VARIABLE out)
|
|
|
|
# gnu gcc 2.96 does not work with flags
|
|
|
|
# I guess 2.95 also doesn't then
|
2012-08-13 21:47:32 +04:00
|
|
|
if("${out}" MATCHES "2.9[56]")
|
|
|
|
set(_KDE3_USE_FLAGS FALSE)
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
|
|
|
endif()
|
2008-06-19 03:02:20 +04:00
|
|
|
|
|
|
|
#only on linux, but NOT e.g. on FreeBSD:
|
2012-08-13 21:47:32 +04:00
|
|
|
if(CMAKE_SYSTEM_NAME MATCHES "Linux" AND _KDE3_USE_FLAGS)
|
|
|
|
set (KDE3_DEFINITIONS ${KDE3_DEFINITIONS} -D_XOPEN_SOURCE=500 -D_BSD_SOURCE)
|
|
|
|
set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-long-long -ansi -Wundef -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common")
|
|
|
|
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -fno-exceptions -fno-check-new -fno-common")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2008-06-19 03:02:20 +04:00
|
|
|
|
|
|
|
# works on FreeBSD, NOT tested on NetBSD and OpenBSD
|
2012-08-13 21:47:32 +04:00
|
|
|
if (CMAKE_SYSTEM_NAME MATCHES BSD AND _KDE3_USE_FLAGS)
|
|
|
|
set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-long-long -ansi -Wundef -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common")
|
|
|
|
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif ()
|
2008-06-19 03:02:20 +04:00
|
|
|
|
|
|
|
# if no special buildtype is selected, add -O2 as default optimization
|
2012-08-13 21:47:32 +04:00
|
|
|
if (NOT CMAKE_BUILD_TYPE AND _KDE3_USE_FLAGS)
|
|
|
|
set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2")
|
|
|
|
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif ()
|
2008-06-19 03:02:20 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
#set(CMAKE_SHARED_LINKER_FLAGS "-avoid-version -module -Wl,--no-undefined -Wl,--allow-shlib-undefined")
|
|
|
|
#set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--fatal-warnings -avoid-version -Wl,--no-undefined -lc")
|
|
|
|
#set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--fatal-warnings -avoid-version -Wl,--no-undefined -lc")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2008-06-19 03:02:20 +04:00
|
|
|
|
|
|
|
|
|
|
|
# KDE3Macros.cmake contains all the KDE specific macros
|
2012-11-04 00:35:44 +04:00
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/KDE3Macros.cmake)
|
2008-06-19 03:02:20 +04:00
|
|
|
|
2006-03-09 22:10:59 +03:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
macro (KDE3_PRINT_RESULTS)
|
|
|
|
if(KDE3_INCLUDE_DIR)
|
|
|
|
message(STATUS "Found KDE3 include dir: ${KDE3_INCLUDE_DIR}")
|
2012-08-13 21:50:14 +04:00
|
|
|
else()
|
2012-08-13 21:47:32 +04:00
|
|
|
message(STATUS "Didn't find KDE3 headers")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2006-03-09 22:10:59 +03:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
if(KDE3_LIB_DIR)
|
|
|
|
message(STATUS "Found KDE3 library dir: ${KDE3_LIB_DIR}")
|
2012-08-13 21:50:14 +04:00
|
|
|
else()
|
2012-08-13 21:47:32 +04:00
|
|
|
message(STATUS "Didn't find KDE3 core library")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2006-03-09 22:10:59 +03:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
if(KDE3_DCOPIDL_EXECUTABLE)
|
|
|
|
message(STATUS "Found KDE3 dcopidl preprocessor: ${KDE3_DCOPIDL_EXECUTABLE}")
|
2012-08-13 21:50:14 +04:00
|
|
|
else()
|
2012-08-13 21:47:32 +04:00
|
|
|
message(STATUS "Didn't find the KDE3 dcopidl preprocessor")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2006-03-09 22:10:59 +03:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
if(KDE3_DCOPIDL2CPP_EXECUTABLE)
|
|
|
|
message(STATUS "Found KDE3 dcopidl2cpp preprocessor: ${KDE3_DCOPIDL2CPP_EXECUTABLE}")
|
2012-08-13 21:50:14 +04:00
|
|
|
else()
|
2012-08-13 21:47:32 +04:00
|
|
|
message(STATUS "Didn't find the KDE3 dcopidl2cpp preprocessor")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2006-03-09 22:10:59 +03:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
if(KDE3_KCFGC_EXECUTABLE)
|
|
|
|
message(STATUS "Found KDE3 kconfig_compiler preprocessor: ${KDE3_KCFGC_EXECUTABLE}")
|
2012-08-13 21:50:14 +04:00
|
|
|
else()
|
2012-08-13 21:47:32 +04:00
|
|
|
message(STATUS "Didn't find the KDE3 kconfig_compiler preprocessor")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2006-03-09 22:10:59 +03:00
|
|
|
|
2012-08-13 21:50:14 +04:00
|
|
|
endmacro ()
|
2006-03-09 22:10:59 +03:00
|
|
|
|
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
if (KDE3_FIND_REQUIRED AND NOT KDE3_FOUND)
|
2006-03-09 22:10:59 +03:00
|
|
|
#bail out if something wasn't found
|
|
|
|
KDE3_PRINT_RESULTS()
|
2012-08-13 21:47:32 +04:00
|
|
|
message(FATAL_ERROR "Could NOT find everything required for compiling KDE 3 programs")
|
2006-03-09 22:10:59 +03:00
|
|
|
|
2012-08-13 21:50:14 +04:00
|
|
|
endif ()
|
2006-03-09 22:10:59 +03:00
|
|
|
|
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
if (NOT KDE3_FIND_QUIETLY)
|
2006-03-09 22:10:59 +03:00
|
|
|
KDE3_PRINT_RESULTS()
|
2012-08-13 21:50:14 +04:00
|
|
|
endif ()
|
2006-03-09 22:10:59 +03:00
|
|
|
|
|
|
|
#add the found Qt and KDE include directories to the current include path
|
2012-08-13 21:47:32 +04:00
|
|
|
set(KDE3_INCLUDE_DIRS ${QT_INCLUDE_DIR} ${KDE3_INCLUDE_DIR})
|
2006-03-09 22:10:59 +03:00
|
|
|
|