[CMAKE]
[reactos.git] / drivers / bus / pci / CMakeLists.txt
1
2 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>")
3
4 add_library(pci SHARED
5 fdo.c
6 pci.c
7 pdo.c
8 pci.rc)
9
10 set_target_properties(pci PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--subsystem,native" SUFFIX ".sys")
11
12 target_link_libraries(pci
13 ${REACTOS_SOURCE_DIR}/ntoskrnl/libntoskrnl.a
14 ${REACTOS_SOURCE_DIR}/hal/halx86/libhal.a)
15
16 add_dependencies(pci psdk bugcodes buildno_header)