From 75a07dd38b4a491a9d16d24492bea5c6ba90a8ff Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Sun, 12 Feb 2006 14:38:04 +0000 Subject: -moved the cmake code to find kdewin32 out of FindKDE4.cmake and into its own FindKDEWIN32.cmake file -added a new FindGNUWIN32.cmake file, which tries to find the gnuwin32 base directory -changed all "FOO_LIBRARY" variable names to "FOO_LIBRARIES" to be more consistent with the other cmake modules -added a macro_getenv_win_path() which replaces all backslahes with slashes from environment variables -modified the kde4_add_kcfg_files() command, so that the generated header is also processed by moc -all tests compile and link Alex CCMAIL:kde-buildsystem@kde.org The changes to the windows stuff are untested, since I don't have a windows box. Please check that everything still works. Please have a look at FindGNUWIN32.cmake, there are probably ways to improve this. The resulting GNUWIN32_DIR variable is used in other cmake modules as default path to search for headers and libraries. svn path=/trunk/KDE/kdelibs/; revision=508648 --- modules/MacroGetenvWinPath.cmake | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 modules/MacroGetenvWinPath.cmake (limited to 'modules/MacroGetenvWinPath.cmake') diff --git a/modules/MacroGetenvWinPath.cmake b/modules/MacroGetenvWinPath.cmake new file mode 100644 index 00000000..9c8efaf3 --- /dev/null +++ b/modules/MacroGetenvWinPath.cmake @@ -0,0 +1,5 @@ + +MACRO(MACRO_GETENV_WIN_PATH var name) + SET(${var} $ENV{${name}}) + STRING( REGEX REPLACE "\\\\" "/" ${var} "${${var}}" ) +ENDMACRO(MACRO_GETENV_WIN_PATH var name) -- cgit v1.2.1