From 8da037b9c177dc8055725beac87841f10d4ae80f Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Wed, 8 Feb 2006 20:34:09 +0000 Subject: -remove macro_append_directory_properties() and add macro_additional_clean_files() -remove macro_append_source_files_properties() and add macro_add_file_dependencies() -build kICE as a static library and link to it, instead of including the sources multiple times -remove the -kdemain=main from dcop/, hope this didn't break things on windows some patches from Brad King: -rename the target dcop (the executable) to dcop_executable, otherwise MS Visual Studio complains about multiple targets with the same name , the name of the created executable stays "dcop" -add the dependency of all dcop stubs and skels to dcopidl2cpp, to make sure it is compiled before this rule is executed Alex svn path=/trunk/KDE/kdelibs/; revision=507257 --- modules/FindKDE4.cmake | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'modules/FindKDE4.cmake') diff --git a/modules/FindKDE4.cmake b/modules/FindKDE4.cmake index 1c897998..e8dda0a9 100644 --- a/modules/FindKDE4.cmake +++ b/modules/FindKDE4.cmake @@ -93,8 +93,10 @@ IF(EXISTS ${CMAKE_SOURCE_DIR}/kdecore/kglobal.h) SET(KDE4_LIB_DIR ${LIBRARY_OUTPUT_PATH}) SET(KDE4_KALYPTUS_DIR ${CMAKE_SOURCE_DIR}/dcop/dcopidlng/ ) - SET(KDE4_DCOPIDL2CPP_EXECUTABLE ${EXECUTABLE_OUTPUT_PATH}/dcopidl2cpp ) - SET(KDE4_KCFGC_EXECUTABLE ${EXECUTABLE_OUTPUT_PATH}/kconfig_compiler ) + + # CMAKE_CFG_INTDIR is the output subdirectory created e.g. by XCode and MSVC + SET(KDE4_DCOPIDL2CPP_EXECUTABLE ${EXECUTABLE_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/dcopidl2cpp ) + SET(KDE4_KCFGC_EXECUTABLE ${EXECUTABLE_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/kconfig_compiler ) ELSE(EXISTS ${CMAKE_SOURCE_DIR}/kdecore/kglobal.h) @@ -150,10 +152,13 @@ ELSE(EXISTS ${CMAKE_SOURCE_DIR}/kdecore/kglobal.h) ENDIF(EXISTS ${CMAKE_SOURCE_DIR}/kdecore/kglobal.h) -# this will move into Windows-cl.cmake -IF(WIN32 AND CMAKE_C_COMPILER MATCHES "cl\\.exe") - SET(MSVC TRUE) -ENDIF(WIN32 AND CMAKE_C_COMPILER MATCHES "cl\\.exe") +# this is already in cmake cvs and can be removed once we require it +IF (WIN32) + GET_FILENAME_COMPONENT(_tmp_COMPILER_NAME ${CMAKE_CXX_COMPILER} NAME_WE) + IF ( _tmp_COMPILER_NAME MATCHES cl ) + SET(MSVC TRUE) + ENDIF ( _tmp_COMPILER_NAME MATCHES cl ) +ENDIF (WIN32) ##################### and now the platform specific stuff ############################ @@ -167,6 +172,8 @@ ENDIF(UNIX AND NOT APPLE) IF (WIN32) + + IF(CYGWIN) MESSAGE(FATAL_ERROR "Support for Cygwin not yet implemented, please edit FindKDE4.cmake to enable it") ENDIF(CYGWIN) -- cgit v1.2.1