[CMAKE]
[reactos.git] / drivers / bus / pcix / CMakeLists.txt
index 8dc67bc..6553b6d 100644 (file)
@@ -1,6 +1,4 @@
 
-
-
 list(APPEND SOURCE
     arb/ar_busno.c
     arb/ar_memio.c
@@ -42,9 +40,7 @@ add_library(pcix SHARED ${CMAKE_CURRENT_BINARY_DIR}/pcix_pci.h.gch ${SOURCE})
 
 set_target_properties(pcix PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--subsystem,native -Wl,--exclude-all-symbols" SUFFIX ".sys")
 
-target_link_libraries(pcix
-    -lntoskrnl
-    -lhal)
+add_importlibs(pcix ntoskrnl hal)
 
 add_pch(pcix ${CMAKE_CURRENT_SOURCE_DIR}/pci.h ${SOURCE})
-add_dependencies(pcix pcix_def psdk pciclass)
+add_dependencies(pcix pcix_def psdk pciclass buildno_header)