looking for windows developer to test cmake buildsystem
Peter Kümmel
syntheticpp at gmx.net
Tue Jan 31 21:47:31 CET 2006
> With a quick grep I can only find #include <winsock2.h>
>
> Can you please post your config.h ?
> Probably kdelibs/win/ should be built and installed before the rest of
> kdelibs/.
>
> Do you actually have a KDE svn account ?
>
> Bye
> Alex
The hint from Christian solved the problem.
Sorry, I have no svn account.
Here a attempt to modify the cmake file:
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt (Revision 504198)
+++ CMakeLists.txt (Arbeitskopie)
@@ -1,5 +1,5 @@
-include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} )
+include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} $(QT_INCLUDE_DIR) $(QT_INCLUDE_DIR)/QtCore )
add_definitions(-DMAKE_KDEWIN32_LIB -DUNICODE)
@@ -16,10 +16,18 @@
if(MSVC)
# do whatever required for msvc
+add_definitions( -DWIN32_LEAN_AND_MEAN )
+
endif(MSVC)
kde4_add_library(kdewin32 SHARED ${win_LIB_SRCS} )
-target_link_libraries(kdewin32 ${QT_QTCORE_LIBRARY} ${QT_QT3SUPPORT_LIBRARY} )
+
+if(MSVC)
+ target_link_libraries(kdewin32 ${QT_QTCORE_LIBRARY} ${QT_QT3SUPPORT_LIBRARY} Ws2_32.lib )
+else
+ target_link_libraries(kdewin32 ${QT_QTCORE_LIBRARY} ${QT_QT3SUPPORT_LIBRARY} )
+endif(MSVC)
+
set_target_properties(kdecore PROPERTIES VERSION 4.2.0 SOVERSION 4 )
install_targets(/lib kdewin32 )
More information about the Kde-buildsystem
mailing list