[CMAKE]
[reactos.git] / dll / win32 / imaadp32.acm / CMakeLists.txt
index c6ccb9e..bab0157 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")
-
 add_definitions(-D_DLL -D__USE_CRTIMP)
-
 add_definitions(-D__WINESRC__)
 
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
@@ -16,14 +13,13 @@ add_custom_target(imaadp32.acm_def ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/imaad
 
 add_library(imaadp32.acm SHARED imaadp32.c)
 
-set_target_properties(imaadp32.acm PROPERTIES LINK_FLAGS "-Wl,-entry,0" SUFFIX "")
+set_entrypoint(imaadp32.acm 0)
+set_target_properties(imaadp32.acm PROPERTIES SUFFIX "")
 
 target_link_libraries(imaadp32.acm
     ${CMAKE_CURRENT_BINARY_DIR}/imaadp32.acm.def
-    wine
-    -lwinmm
-    -luser32
-    mingw_common
-    -lmsvcrt)
+    wine)
 
-add_dependencies(imaadp32.acm imaadp32.acm_def psdk)
+add_importlibs(imaadp32.acm winmm user32 msvcrt kernel32 ntdll)
+add_dependencies(imaadp32.acm imaadp32.acm_def psdk buildno_header)
+add_cab_target(imaadp32.acm 1)