mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00
generic: make it possible to build from the source directory
after lots of build system changes (including this commit) it is finally possible Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
da2cb4b848
commit
3fc6433561
4 changed files with 3 additions and 9 deletions
|
@ -365,12 +365,6 @@ configure_file(config-prefix.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-prefix.h
|
|||
configure_file(config-pty.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-pty.h)
|
||||
configure_file(kdemacros.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/kdemacros.h)
|
||||
|
||||
################# Disallow in-source build #################
|
||||
|
||||
if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
|
||||
message(SEND_ERROR "kdelibs requires an out of source build")
|
||||
endif()
|
||||
|
||||
#########################################################################
|
||||
|
||||
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
|
||||
|
@ -485,12 +479,12 @@ add_subdirectory( solid )
|
|||
################# write kdelibs package config files which will be installed #################
|
||||
|
||||
configure_file(
|
||||
KDELibs4Config.cmake
|
||||
KDELibs4Config.cmake.in
|
||||
${CMAKE_CURRENT_BINARY_DIR}/KDELibs4Config.cmake
|
||||
@ONLY
|
||||
)
|
||||
configure_file(
|
||||
KDELibs4ConfigVersion.cmake
|
||||
KDELibs4ConfigVersion.cmake.in
|
||||
${CMAKE_CURRENT_BINARY_DIR}/KDELibs4ConfigVersion.cmake
|
||||
@ONLY
|
||||
)
|
||||
|
|
|
@ -317,7 +317,7 @@ macro(KDE4_OPTIONAL_FIND_PACKAGE _PACKAGE)
|
|||
endmacro(KDE4_OPTIONAL_FIND_PACKAGE)
|
||||
|
||||
# KDE4_TRANSLATE(<LANGUAGE> FILE1.po ... FILEN.po)
|
||||
# This macro is will create and install translation files
|
||||
# This macro will create and install translation files
|
||||
macro(KDE4_TRANSLATE _LANGUAGE)
|
||||
foreach(_pofile ${ARGN})
|
||||
get_filename_component(_abspofile "${_pofile}" ABSOLUTE)
|
||||
|
|
Loading…
Add table
Reference in a new issue