KDE4Defaults.cmake 1.67 KB
Newer Older
1 2

enable_testing()
3
SET(BUILD_TESTING ON CACHE INTERNAL "Build the testing tree (internal)")
4 5 6 7 8

# support for Dart: http://public.kitware.com/dashboard.php?name=kde
if (EXISTS ${CMAKE_SOURCE_DIR}/CTestConfig.cmake)
   include(CTest)
endif (EXISTS ${CMAKE_SOURCE_DIR}/CTestConfig.cmake)
9 10

# Always include srcdir and builddir in include path
David Faure's avatar
David Faure committed
11
# This saves typing ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} in about every subdir
12
# since cmake 2.4.0
13 14
set(CMAKE_INCLUDE_CURRENT_DIR ON)

15 16
# put the include dirs which are in the source or build tree
# before all other include dirs, so the headers in the sources
17
# are preferred over the already installed ones
18 19 20
# since cmake 2.4.1
set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON)

21
# define the generic version of the libraries here
22
# this makes it easy to advance it when the next KDE release comes
23
# Use this version number for libraries which are at version n in KDE version n
Albert Astals Cid's avatar
Albert Astals Cid committed
24
set(GENERIC_LIB_VERSION "4.14.34")
25 26
set(GENERIC_LIB_SOVERSION "4")

27
# Use this version number for libraries which are already at version n+1 in KDE version n
Albert Astals Cid's avatar
Albert Astals Cid committed
28
set(KDE_NON_GENERIC_LIB_VERSION "5.14.34")
29
set(KDE_NON_GENERIC_LIB_SOVERSION "5")
30

31 32 33
# windows does not support LD_LIBRARY_PATH or similar
# all searchable directories has to be defined by the PATH environment var
# to reduce the number of required pathes executables are placed into
34
# the build bin dir
35 36 37
if (WIN32)
 set (EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
# set (LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
38 39 40 41 42
  if (MINGW)
      set (CMAKE_RC_COMPILER_INIT windres)
      enable_language (RC)
      set (CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> -O coff -i <SOURCE> -o <OBJECT>")
  endif(MINGW)
43
endif(WIN32)