[CMAKE]
[reactos.git] / dll / win32 / msvcrt20 / CMakeLists.txt
index e556306..f8d0c53 100644 (file)
@@ -4,16 +4,15 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 add_definitions(-D__WINESRC__)
 add_definitions(-DCRTDLL)
 
-spec2def(msvcrt20 ${CMAKE_CURRENT_SOURCE_DIR}/msvcrt20.spec ${CMAKE_CURRENT_BINARY_DIR}/msvcrt20.def)
+spec2def(msvcrt20.dll msvcrt20.spec)
 
-add_library(msvcrt20 SHARED msvcrt20.c)
+add_library(msvcrt20 SHARED msvcrt20.c
+    ${CMAKE_CURRENT_BINARY_DIR}/msvcrt20.def)
 
 set_entrypoint(msvcrt20 0)
 
-target_link_libraries(msvcrt20
-    ${CMAKE_CURRENT_BINARY_DIR}/msvcrt20.def
-    wine)
+target_link_libraries(msvcrt20 wine)
 
 add_importlibs(msvcrt20 msvcrt kernel32 ntdll)
-add_dependencies(msvcrt20 msvcrt20_def psdk buildno_header)
+add_dependencies(msvcrt20 psdk buildno_header)
 add_cab_target(msvcrt20 1)