[CMAKE]
[reactos.git] / dll / win32 / dwmapi / CMakeLists.txt
index 8ec97bd..520fb55 100644 (file)
@@ -1,19 +1,16 @@
 
-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")
-
 add_definitions(-D__WINESRC__)
 
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
-spec2def(dwmapi ${CMAKE_CURRENT_SOURCE_DIR}/dwmapi.spec ${CMAKE_CURRENT_BINARY_DIR}/dwmapi.def)
+spec2def(dwmapi.dll dwmapi.spec)
+
+add_library(dwmapi SHARED dwmapi_main.c version.rc ${CMAKE_CURRENT_BINARY_DIR}/dwmapi.def)
 
-add_library(dwmapi SHARED dwmapi_main.c version.rc)
+set_module_type(dwmapi win32dll)
 
-set_target_properties(dwmapi PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+target_link_libraries(dwmapi wine)
 
-target_link_libraries(dwmapi
-    ${CMAKE_CURRENT_BINARY_DIR}/dwmapi.def
-    wine
-    mingw_common)
+add_importlibs(dwmapi kernel32 ntdll)
 
-add_dependencies(dwmapi dwmapi_def psdk)
+add_cab_target(dwmapi 1)