[CMAKE]
[reactos.git] / dll / win32 / usp10 / CMakeLists.txt
index bda828f..8ccf002 100644 (file)
@@ -1,8 +1,5 @@
 
-set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES> -L${REACTOS_BINARY_DIR}/lib/3rdparty/mingw")
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
 add_definitions(-D__WINESRC__)
 
 spec2def(usp10 ${CMAKE_CURRENT_SOURCE_DIR}/usp10.spec ${CMAKE_CURRENT_BINARY_DIR}/usp10.def)
@@ -14,12 +11,12 @@ add_library(usp10 SHARED
     shape.c
     shaping.c)
 
-set_target_properties(usp10 PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(usp10 win32dll)
 
 target_link_libraries(usp10
     ${CMAKE_CURRENT_BINARY_DIR}/usp10.def
-    wine
-    ${REACTOS_SOURCE_DIR}/dll/win32/gdi32/libgdi32.a
-    mingw_common)
+    wine)
 
-add_dependencies(usp10 usp10_def psdk)
+add_importlibs(usp10 gdi32 kernel32 ntdll)
+add_dependencies(usp10 usp10_def)
+add_cab_target(usp10 1)