kdewin32/include installation

Peter Kümmel syntheticpp at gmx.net
Thu Feb 2 22:48:37 CET 2006


Does the installation of the win headers require the same
directory structure as in kdelibs/win/include just without
the mingw/msvc directories?

If yes here a patch:

also included the line for the generation of kdemacros.h



Index: win/CMakeLists.txt
===================================================================
--- win/CMakeLists.txt	(Revision 504992)
+++ win/CMakeLists.txt	(Arbeitskopie)
@@ -14,6 +14,8 @@
 # ugly, let's see if it works
 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)

+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/../kdemacros.h.cmake ${CMAKE_CURRENT_SOURCE_DIR}/../kdemacros.h )
+
 # find the headers
 file(GLOB headers include/*.h)

@@ -28,7 +30,13 @@
    # is this also required for mingw ?
    add_definitions(-D_WINSOCKAPI_ -DWIN32_LEAN_AND_MEAN -D_CRT_SECURE_NO_DEPRECATE)
    # find the headers for msvc
-   file(GLOB_RECURSE _tmp_headers include/msvc/*.h)
+   file(GLOB headers_msvc     include/msvc/*.h)
+   file(GLOB headers_arpa     include/msvc/arpa/*.h)
+   file(GLOB headers_asm      include/msvc/asm/*.h)
+   file(GLOB headers_maschine include/msvc/machine/*.h)
+   file(GLOB headers_netinet  include/msvc/netinet/*.h)
+   file(GLOB headers_sys      include/msvc/sys/*.h)
+
 endif(MINGW)
 set(headers ${headers} ${_tmp_headers})

@@ -47,4 +55,10 @@

 install_targets(/lib kdewin32 )

-install_files(/include FILES ${headers} )
+install_files(/include         FILES ${headers} )
+install_files(/include         FILES ${headers_msvc} )
+install_files(/include/arpa    FILES ${headers_arpa} )
+install_files(/include/asm     FILES ${headers_asm} )
+install_files(/include/machine FILES ${headers_maschine} )
+install_files(/include/netinet FILES ${headers_netinet} )
+install_files(/include/sys     FILES ${headers_sys} )


More information about the Kde-buildsystem mailing list