[CMAKE]
[reactos.git] / dll / win32 / modemui / CMakeLists.txt
index 07c2e5b..d4d7aac 100644 (file)
@@ -1,14 +1,17 @@
 
 set_unicode()
 
 set_unicode()
+set_rc_compiler()
 
 
-spec2def(modemui ${CMAKE_CURRENT_SOURCE_DIR}/modemui.spec ${CMAKE_CURRENT_BINARY_DIR}/modemui.def)
+spec2def(modemui.dll modemui.spec)
 
 
-add_library(modemui SHARED modemui.c modemui.rc)
+list(APPEND SOURCE
+    modemui.c
+    modemui.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/modemui_stubs.c
+    ${CMAKE_CURRENT_BINARY_DIR}/modemui.def)
 
 
-set_module_type(modemui win32dll)
-
-target_link_libraries(modemui ${CMAKE_CURRENT_BINARY_DIR}/modemui.def)
+add_library(modemui SHARED ${SOURCE})
 
 
-add_importlibs(modemui kernel32)
-add_dependencies(modemui modemui_def)
-add_livecd_target(modemui reactos/system32)
+set_module_type(modemui win32dll)
+add_importlibs(modemui msvcrt kernel32 ntdll)
+add_cd_file(TARGET modemui DESTINATION reactos/system32 FOR all)