[CMAKE]
[reactos.git] / dll / win32 / modemui / CMakeLists.txt
index 85bab87..fffedb4 100644 (file)
@@ -1,16 +1,12 @@
 
+set_unicode()
 
+spec2def(modemui.dll modemui.spec)
 
-add_definitions(-DUNICODE -D_UNICODE)
+add_library(modemui SHARED modemui.c modemui.rc ${CMAKE_CURRENT_BINARY_DIR}/modemui.def)
 
-spec2def(modemui ${CMAKE_CURRENT_SOURCE_DIR}/modemui.spec ${CMAKE_CURRENT_BINARY_DIR}/modemui.def)
+set_module_type(modemui win32dll)
 
-add_library(modemui SHARED modemui.c modemui.rc)
+add_importlibs(modemui kernel32)
 
-set_target_properties(modemui PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
-
-target_link_libraries(modemui
-    ${CMAKE_CURRENT_BINARY_DIR}/modemui.def
-    -lkernel32)
-
-add_dependencies(modemui modemui_def psdk)
+add_cab_target(modemui 1)