[CMAKE]
authorJérôme Gardou <jerome.gardou@reactos.org>
Sat, 30 Oct 2010 17:05:21 +0000 (17:05 +0000)
committerJérôme Gardou <jerome.gardou@reactos.org>
Sat, 30 Oct 2010 17:05:21 +0000 (17:05 +0000)
  - leftover from r49358

svn path=/branches/cmake-bringup/; revision=49362

18 files changed:
dll/win32/gdi32/CMakeLists.txt
dll/win32/hhctrl.ocx/CMakeLists.txt
dll/win32/imaadp32.acm/CMakeLists.txt
dll/win32/kernel32/CMakeLists.txt
dll/win32/msacm32/msacm32.drv/CMakeLists.txt
dll/win32/msadp32.acm/CMakeLists.txt
dll/win32/msg711.acm/CMakeLists.txt
dll/win32/msgsm32.acm/CMakeLists.txt
dll/win32/mshtml.tlb/CMakeLists.txt
dll/win32/msisys.ocx/CMakeLists.txt
dll/win32/stdole2.tlb/CMakeLists.txt
dll/win32/stdole32.tlb/CMakeLists.txt
dll/win32/user32/CMakeLists.txt
dll/win32/wdmaud.drv/CMakeLists.txt
dll/win32/winemp3.acm/CMakeLists.txt
dll/win32/ws2_32_new/CMakeLists.txt
drivers/network/tdi/CMakeLists.txt
drivers/storage/classpnp/CMakeLists.txt

index 7f4db6b..7d1245c 100644 (file)
@@ -36,7 +36,8 @@ list(APPEND SOURCE
     objects/text.c
     objects/utils.c
     objects/path.c
-    gdi32.rc)
+    gdi32.rc
+    gdi32.def)
 
 add_library(gdi32 SHARED
     ${CMAKE_CURRENT_BINARY_DIR}/gdi32_precomp.h.gch
@@ -45,7 +46,6 @@ add_library(gdi32 SHARED
 set_module_type(gdi32 win32dll)
 
 target_link_libraries(gdi32
-    ${CMAKE_CURRENT_SOURCE_DIR}/gdi32.def
     win32ksys
     dxguid
     pseh)
index d6882c9..cc8077c 100644 (file)
@@ -2,7 +2,7 @@
 add_definitions(-D__WINESRC__)
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
-spec2def(hhctrl ${CMAKE_CURRENT_SOURCE_DIR}/hhctrl.ocx.spec ${CMAKE_CURRENT_BINARY_DIR}/hhctrl.def)
+spec2def(hhctrl.ocx hhctrl.ocx.spec)
 
 add_library(hhctrl SHARED
     chm.c
@@ -14,12 +14,12 @@ add_library(hhctrl SHARED
     search.c
     stream.c
     webbrowser.c
-    hhctrl.rc)
+    hhctrl.rc    
+    ${CMAKE_CURRENT_BINARY_DIR}/hhctrl.def)
 
 set_module_type(hhctrl win32ocx)
 
 target_link_libraries(hhctrl
-    ${CMAKE_CURRENT_BINARY_DIR}/hhctrl.def
     uuid
     wine)
 
index 25dda5b..e7bf314 100644 (file)
@@ -4,22 +4,16 @@ add_definitions(-D__WINESRC__)
 
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
-add_custom_command(
-    OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/imaadp32.acm.def
-    COMMAND native-winebuild -o ${CMAKE_CURRENT_BINARY_DIR}/imaadp32.acm.def --def -E ${CMAKE_CURRENT_SOURCE_DIR}/imaadp32.acm.spec --filename imaadp32.acm
-    DEPENDS native-winebuild)
-set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/imaadp32.acm.def PROPERTIES GENERATED TRUE)
-add_custom_target(imaadp32.acm_def ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/imaadp32.acm.def)
+spec2def(imaadp32.acm imaadp32.acm.spec)
 
-add_library(imaadp32.acm SHARED imaadp32.c)
+add_library(imaadp32 SHARED imaadp32.c
+    ${CMAKE_CURRENT_BINARY_DIR}/imaadp32.def)
 
-set_entrypoint(imaadp32.acm 0)
-set_target_properties(imaadp32.acm PROPERTIES SUFFIX "")
+set_entrypoint(imaadp32 0)
+set_target_properties(imaadp32 PROPERTIES SUFFIX "acm")
 
-target_link_libraries(imaadp32.acm
-    ${CMAKE_CURRENT_BINARY_DIR}/imaadp32.acm.def
-    wine)
+target_link_libraries(imaadp32 wine)
 
-add_importlibs(imaadp32.acm winmm user32 msvcrt kernel32 ntdll)
-add_dependencies(imaadp32.acm psdk buildno_header)
-add_cab_target(imaadp32.acm 1)
+add_importlibs(imaadp32 winmm user32 msvcrt kernel32 ntdll)
+add_dependencies(imaadp32 psdk buildno_header)
+add_cab_target(imaadp32 1)
index 113e51d..4fd471f 100644 (file)
@@ -93,7 +93,8 @@ list(APPEND SOURCE
     thread/thread.c
     thread/tls.c
     kernel32.rc
-    kernel32_stubs.c)
+    kernel32_stubs.c
+    ${CMAKE_CURRENT_SOURCE_DIR}/kernel32.def)
 
 if(ARCH MATCHES i386)
 list(APPEND SOURCE
@@ -111,8 +112,7 @@ add_library(kernel32 SHARED
 
 set_module_type(kernel32 win32dll)
 
-target_link_libraries(kernel32 ${CMAKE_CURRENT_SOURCE_DIR}/kernel32.def
-    pseh)
+target_link_libraries(kernel32 pseh)
 
 add_importlibs(kernel32 ntdll)
 add_pch(kernel32 ${CMAKE_CURRENT_SOURCE_DIR}/k32.h ${SOURCE})
index b28021b..c942881 100644 (file)
@@ -3,21 +3,15 @@ set_unicode()
 
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
-add_custom_command(
-    OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/msacm32.drv.def
-    COMMAND native-winebuild -o ${CMAKE_CURRENT_BINARY_DIR}/msacm32.drv.def --def -E ${CMAKE_CURRENT_SOURCE_DIR}/msacm32.drv.spec --filename msacm32.drv
-    DEPENDS native-winebuild)
-set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/msacm32.drv.def PROPERTIES GENERATED TRUE)
-add_custom_target(msacm32.drv_def ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/msacm32.drv.def)
+spec2def(msacm32.drv msacm32.drv.spec)
 
-add_library(msacm32.drv SHARED wavemap.c wavemap.rc)
+add_library(msacm32.drv SHARED wavemap.c wavemap.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/msacm32.def)
 
 set_entrypoint(msacm32.drv 0)
 set_target_properties(msacm32.drv PROPERTIES SUFFIX "")
 
-target_link_libraries(msacm32.drv
-    ${CMAKE_CURRENT_BINARY_DIR}/msacm32.drv.def
-    wine)
+target_link_libraries(msacm32.drv wine)
 
 add_importlibs(msacm32.drv msacm32 user32 winmm advapi32 kernel32 ntdll)
 add_dependencies(msacm32.drv psdk buildno_header)
index 6d05321..c9a9deb 100644 (file)
@@ -4,21 +4,15 @@ add_definitions(-D__WINESRC__)
 
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
-add_custom_command(
-    OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/msadp32.acm.def
-    COMMAND native-winebuild -o ${CMAKE_CURRENT_BINARY_DIR}/msadp32.acm.def --def -E ${CMAKE_CURRENT_SOURCE_DIR}/msadp32.acm.spec --filename msadp32.acm
-    DEPENDS native-winebuild)
-set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/msadp32.acm.def PROPERTIES GENERATED TRUE)
-add_custom_target(msadp32.acm_def ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/msadp32.acm.def)
+spec2def(msadp32.acm msadp32.acm.spec)
 
-add_library(msadp32.acm SHARED msadp32.c)
+add_library(msadp32.acm SHARED msadp32.c
+    ${CMAKE_CURRENT_BINARY_DIR}/msadp32.def)
 
 set_entrypoint(msadp32.acm 0)
 set_target_properties(msadp32.acm PROPERTIES SUFFIX "")
 
-target_link_libraries(msadp32.acm
-    ${CMAKE_CURRENT_BINARY_DIR}/msadp32.acm.def
-    wine)
+target_link_libraries(msadp32.acm wine)
 
 add_importlibs(msadp32.acm winmm user32 msvcrt kernel32 ntdll)
 add_dependencies(msadp32.acm psdk buildno_header)
index 04a7dc2..5d7aed5 100644 (file)
@@ -4,21 +4,15 @@ add_definitions(-D__WINESRC__)
 
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
-add_custom_command(
-    OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/msg711.acm.def
-    COMMAND native-winebuild -o ${CMAKE_CURRENT_BINARY_DIR}/msg711.acm.def --def -E ${CMAKE_CURRENT_SOURCE_DIR}/msg711.acm.spec --filename msg711.acm
-    DEPENDS native-winebuild)
-set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/msg711.acm.def PROPERTIES GENERATED TRUE)
-add_custom_target(msg711.acm_def ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/msg711.acm.def)
+spec2def(msg711.acm msg711.acm.spec)
 
-add_library(msg711.acm SHARED msg711.c)
+add_library(msg711.acm SHARED msg711.c
+    ${CMAKE_CURRENT_BINARY_DIR}/msg711.def)
 
 set_entrypoint(msg711.acm 0)
 set_target_properties(msg711.acm PROPERTIES SUFFIX "")
 
-target_link_libraries(msg711.acm
-    ${CMAKE_CURRENT_BINARY_DIR}/msg711.acm.def
-    wine)
+target_link_libraries(msg711.acm wine)
 
 add_importlibs(msg711.acm winmm user32 msvcrt kernel32 ntdll)
 add_dependencies(msg711.acm psdk buildno_header)
index 69f766b..ea03562 100644 (file)
@@ -4,21 +4,15 @@ add_definitions(-D__WINESRC__)
 
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
-add_custom_command(
-    OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/msgsm32.acm.def
-    COMMAND native-winebuild -o ${CMAKE_CURRENT_BINARY_DIR}/msgsm32.acm.def --def -E ${CMAKE_CURRENT_SOURCE_DIR}/msgsm32.acm.spec --filename msgsm32.acm
-    DEPENDS native-winebuild)
-set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/msgsm32.acm.def PROPERTIES GENERATED TRUE)
-add_custom_target(msgsm32.acm_def ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/msgsm32.acm.def)
+spec2def(msgsm32.acm msgsm32.acm.spec)
 
-add_library(msgsm32.acm SHARED msgsm32.c)
+add_library(msgsm32.acm SHARED msgsm32.c
+    ${CMAKE_CURRENT_BINARY_DIR}/msgsm32.def)
 
 set_entrypoint(msgsm32.acm 0)
 set_target_properties(msgsm32.acm PROPERTIES SUFFIX "")
 
-target_link_libraries(msgsm32.acm
-    ${CMAKE_CURRENT_BINARY_DIR}/msgsm32.acm.def
-    wine)
+target_link_libraries(msgsm32.acm wine)
 
 add_importlibs(msgsm32.acm winmm user32 msvcrt kernel32 ntdll)
 add_dependencies(msgsm32.acm psdk buildno_header)
index c899231..187cd78 100644 (file)
@@ -6,19 +6,12 @@ add_definitions(-D__WINESRC__)
 
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
-add_custom_command(
-    OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/mshtml.tlb.def
-    COMMAND native-winebuild -o ${CMAKE_CURRENT_BINARY_DIR}/mshtml.tlb.def --def -E ${CMAKE_CURRENT_SOURCE_DIR}/mshtml.tlb.spec --filename mshtml.tlb
-    DEPENDS native-winebuild)
-set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/mshtml.tlb.def PROPERTIES GENERATED TRUE)
-add_custom_target(mshtml.tlb_def ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/mshtml.tlb.def)
+spec2def(mshtml.tlb mshtml.tlb.spec)
 
-add_library(mshtml.tlb SHARED rsrc.rc)
+add_library(mshtml.tlb SHARED rsrc.rc
+    ${CMAKE_CURRENT_SOURCE_DIR}/mshtml.def)
 
 set_entrypoint(mshtml.tlb 0)
 set_target_properties(mshtml.tlb PROPERTIES SUFFIX "")
 
-
-
-add_dependencies(mshtml.tlb mshtml_tlb mshtml.tlb_def)
 add_cab_target(mshtml.tlb 1)
index 9d53dee..1272043 100644 (file)
@@ -2,14 +2,14 @@
 add_definitions(-D__WINESRC__)
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
-spec2def(msisys ${CMAKE_CURRENT_SOURCE_DIR}/msisys.ocx.spec ${CMAKE_CURRENT_BINARY_DIR}/msisys.def)
+spec2def(msisys.ocx msisys.ocx.spec)
 
-add_library(msisys SHARED msisys.c)
+add_library(msisys SHARED msisys.c
+    ${CMAKE_CURRENT_BINARY_DIR}/msisys.def)
 
 set_module_type(msisys win32ocx)
 
 target_link_libraries(msisys
-    ${CMAKE_CURRENT_BINARY_DIR}/msisys.def
     uuid
     wine)
 
index d25f43a..569ddda 100644 (file)
@@ -5,19 +5,15 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
 ADD_TYPELIB(std_ole_v2 std_ole_v2.idl)
 
-add_custom_command(
-    OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/stdole2.tlb.def
-    COMMAND native-winebuild -o ${CMAKE_CURRENT_BINARY_DIR}/stdole2.tlb.def --def -E ${CMAKE_CURRENT_SOURCE_DIR}/stdole2.tlb.spec --filename stdole2.tlb
-    DEPENDS native-winebuild)
-set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/stdole2.tlb.def PROPERTIES GENERATED TRUE)
-add_custom_target(stdole2.tlb_def ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/stdole2.tlb.def)
+spec2def(stdole2.tlb stdole2.tlb.spec)
 
-add_library(stdole2.tlb SHARED rsrc.rc)
+add_library(stdole2.tlb SHARED rsrc.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/stdole2.def)
 
 set_entrypoint(stdole2.tlb 0)
 set_target_properties(stdole2.tlb PROPERTIES SUFFIX "")
 
 
 
-add_dependencies(stdole2.tlb std_ole_v2 stdole2.tlb_def)
+add_dependencies(stdole2.tlb std_ole_v2)
 add_cab_target(stdole2.tlb 1)
index 142a2a7..b8c2fe5 100644 (file)
@@ -5,19 +5,13 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
 ADD_TYPELIB(std_ole_v1 std_ole_v1.idl)
 
-add_custom_command(
-    OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/stdole32.tlb.def
-    COMMAND native-winebuild -o ${CMAKE_CURRENT_BINARY_DIR}/stdole32.tlb.def --def -E ${CMAKE_CURRENT_SOURCE_DIR}/stdole32.tlb.spec --filename stdole32.tlb
-    DEPENDS native-winebuild)
-set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/stdole32.tlb.def PROPERTIES GENERATED TRUE)
-add_custom_target(stdole32.tlb_def ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/stdole32.tlb.def)
+spec2def(stdole32.tlb stdole32.tlb.spec)
 
-add_library(stdole32.tlb SHARED rsrc.rc)
+add_library(stdole32.tlb SHARED rsrc.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/stdole32.def)
 
 set_entrypoint(stdole32.tlb 0)
 set_target_properties(stdole32.tlb PROPERTIES SUFFIX "")
 
-
-
-add_dependencies(stdole32.tlb std_ole_v1 stdole32.tlb_def)
+add_dependencies(stdole32.tlb std_ole_v1)
 add_cab_target(stdole32.tlb 1)
index 8badd79..c965005 100644 (file)
@@ -63,7 +63,8 @@ list(APPEND SOURCE
     windows/window.c
     windows/winpos.c
     user32_stubs.c
-    user32.rc)
+    user32.rc
+    ${CMAKE_CURRENT_SOURCE_DIR}/user32.def)
 
 add_library(user32 SHARED
     ${CMAKE_CURRENT_BINARY_DIR}/user32_user32.h.gch
@@ -72,7 +73,6 @@ add_library(user32 SHARED
 set_module_type(user32 win32dll)
 
 target_link_libraries(user32
-    ${CMAKE_CURRENT_SOURCE_DIR}/user32.def
     wine
     win32ksys
     pseh)
index c7bf286..f5f86d2 100644 (file)
@@ -9,25 +9,20 @@ include_directories(
     ${REACTOS_SOURCE_DIR}/lib/drivers/sound/mmixer
     ${REACTOS_SOURCE_DIR}/lib/3rdparty/libsamplerate)
 
-add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/wdmaud.drv.def
-                   COMMAND native-winebuild -o ${CMAKE_CURRENT_BINARY_DIR}/wdmaud.drv.def --def -E ${CMAKE_CURRENT_SOURCE_DIR}/wdmaud.spec --filename wdmaud.drv
-                   DEPENDS native-winebuild)
-
-set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/wdmaud.drv.def PROPERTIES GENERATED TRUE)
-add_custom_target(wdmaud.drv_def ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/wdmaud.drv.def)
+spec2def(wdmaud.drv wdmaud.spec)
 
 add_library(wdmaud.drv SHARED
     wdmaud.c
     mixer.c
     mmixer.c
     legacy.c
-    wdmaud.rc)
+    wdmaud.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/wdmaud.def)
 
 set_module_type(wdmaud.drv win32dll)
 set_target_properties(wdmaud.drv PROPERTIES SUFFIX "")
 
 target_link_libraries(wdmaud.drv
-    ${CMAKE_CURRENT_BINARY_DIR}/wdmaud.drv.def
     mmebuddy
     libsamplerate
     mmixer)
index ce610ca..631d1e8 100644 (file)
@@ -5,20 +5,15 @@ add_definitions(-D__WINESRC__ -DWIN32)
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/libmpg123)
 
-add_custom_command(
-    OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/winemp3.acm.def
-    COMMAND native-winebuild -o ${CMAKE_CURRENT_BINARY_DIR}/winemp3.acm.def --def -E ${CMAKE_CURRENT_SOURCE_DIR}/winemp3.acm.spec --filename winemp3.acm
-    DEPENDS native-winebuild)
-set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/winemp3.acm.def PROPERTIES GENERATED TRUE)
-add_custom_target(winemp3.acm_def ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/winemp3.acm.def)
+spec2def(winemp3.acm winemp3.acm.spec)
 
-add_library(winemp3.acm SHARED mpegl3.c)
+add_library(winemp3.acm SHARED mpegl3.c
+    ${CMAKE_CURRENT_BINARY_DIR}/winemp3.def)
 
 set_entrypoint(winemp3.acm 0)
 set_target_properties(winemp3.acm PROPERTIES SUFFIX "")
 
 target_link_libraries(winemp3.acm
-    ${CMAKE_CURRENT_BINARY_DIR}/winemp3.acm.def
     mingw_common
     wine
     libmpg123)
index d60716c..8be77c8 100644 (file)
@@ -4,7 +4,7 @@ add_definitions(-DLE)
 include_directories(inc)
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/winsock)
 
-spec2def(ws2_32_new ${CMAKE_CURRENT_SOURCE_DIR}/ws2_32.spec ${CMAKE_CURRENT_BINARY_DIR}/ws2_32_new.def)
+spec2def(ws2_32_new.dll ws2_32.spec)
 
 add_library(ws2_32_new SHARED
     src/addrconv.c
@@ -43,13 +43,12 @@ add_library(ws2_32_new SHARED
     src/sputil.c
     src/startup.c
     src/wsautil.c
-    ws2_32.rc)
+    ws2_32.rc
+     ${CMAKE_CURRENT_BINARY_DIR}/ws2_32.def)
 
 set_module_type(ws2_32_new win32dll)
 
-target_link_libraries(ws2_32_new
-     ${CMAKE_CURRENT_BINARY_DIR}/ws2_32_new.def
-     wine)
+target_link_libraries(ws2_32_new wine)
 
 add_importlibs(ws2_32_new user32 advapi32 dnsapi ws2help kernel32 ntdll)
 
index b081f86..6c4a9cb 100644 (file)
@@ -5,7 +5,7 @@ include_directories(${REACTOS_SOURCE_DIR}/lib/drivers/oskittcp/include)
 add_definitions(-DNDIS40)
 add_definitions(-D_NTDRIVER_)
 
-spec2def(tdi ${CMAKE_CURRENT_SOURCE_DIR}/misc/tdi.spec ${CMAKE_CURRENT_BINARY_DIR}/tdi.def)
+spec2def(tdi.sys misc/tdi.spec)
 
 list(APPEND SOURCE
     cte/string.c
@@ -15,14 +15,14 @@ list(APPEND SOURCE
     tdi/dereg.c
     tdi/handler.c
     tdi/obsolete.c
-    tdi/stubs.c)
+    tdi/stubs.c
+    ${CMAKE_CURRENT_BINARY_DIR}/tdi.def)
 
 add_library(tdi SHARED ${SOURCE})
 
 set_module_type(tdi kernelmodedriver)
 
 target_link_libraries(tdi
-    ${CMAKE_CURRENT_BINARY_DIR}/tdi.def
     -lntoskrnl
     -lhal)
 
index 9daf745..88c2276 100644 (file)
@@ -26,13 +26,13 @@ list(APPEND SOURCE
     utils.c
     xferpkt.c
     class.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/class.def
 )
 
-spec2def(classpnp ${CMAKE_CURRENT_SOURCE_DIR}/class.spec ${CMAKE_CURRENT_BINARY_DIR}/class.def)
+spec2def(classpnp.sys class.spec)
 
 add_library(classpnp SHARED ${SOURCE})
-target_link_libraries(classpnp ${CMAKE_CURRENT_BINARY_DIR}/class.def pseh libcntpr)
-
+target_link_libraries(classpnp pseh libcntpr)
 
 set_module_type(classpnp kernelmodedriver)