1 2# Always include srcdir and builddir in include path 3# This saves typing ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} in about every subdir 4# since cmake 2.4.0 5set(CMAKE_INCLUDE_CURRENT_DIR ON) 6 7# put the include dirs which are in the source or build tree 8# before all other include dirs, so the headers in the sources 9# are preferred over the already installed ones 10# since cmake 2.4.1 11set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON) 12 13# define the generic version of the libraries here 14# this makes it easy to advance it when the next KDE release comes 15# Use this version number for libraries which are at version n in KDE version n 16set(GENERIC_LIB_VERSION "4.11.0") 17set(GENERIC_LIB_SOVERSION "4") 18 19# Use this version number for libraries which are already at version n+1 in KDE version n 20set(KDE_NON_GENERIC_LIB_VERSION "5.11.0") 21set(KDE_NON_GENERIC_LIB_SOVERSION "5") 22 23# windows does not support LD_LIBRARY_PATH or similar 24# all searchable directories has to be defined by the PATH environment var 25# to reduce the number of required paths executables are placed into 26# the build bin dir 27if (WIN32) 28 set (EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin) 29# set (LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin) 30 if (MINGW) 31 set (CMAKE_RC_COMPILER_INIT windres) 32 enable_language (RC) 33 set (CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> -O coff -i <SOURCE> -o <OBJECT>") 34 endif(MINGW) 35endif(WIN32) 36