[CMAKE]
[reactos.git] / dll / win32 / imm32 / CMakeLists.txt
index 7ef770f..4946a50 100644 (file)
@@ -6,16 +6,14 @@ add_definitions(-D_WIN32_WINNT=0x600)
 
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
-spec2def(imm32 ${CMAKE_CURRENT_SOURCE_DIR}/imm32.spec ${CMAKE_CURRENT_BINARY_DIR}/imm32.def)
+spec2def(imm32.dll imm32.spec)
 
-add_library(imm32 SHARED imm.c version.rc)
+add_library(imm32 SHARED imm.c version.rc ${CMAKE_CURRENT_BINARY_DIR}/imm32.def)
 
 set_module_type(imm32 win32dll)
 
-target_link_libraries(imm32
-    ${CMAKE_CURRENT_BINARY_DIR}/imm32.def
-    wine)
+target_link_libraries(imm32 wine)
 
 add_importlibs(imm32 advapi32 user32 kernel32 ntdll)
-add_dependencies(imm32 imm32_def)
+
 add_cab_target(imm32 1)