Move all temporary import libs to a single directory.
[reactos.git] / drivers / bus / pcix / 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 list(APPEND SOURCE
5 arb/ar_busno.c
6 arb/ar_memio.c
7 arb/arb_comn.c
8 arb/tr_irq.c
9 intrface/agpintrf.c
10 intrface/busintrf.c
11 intrface/cardbus.c
12 intrface/devhere.c
13 intrface/ideintrf.c
14 intrface/intrface.c
15 intrface/lddintrf.c
16 intrface/locintrf.c
17 intrface/pmeintf.c
18 intrface/routintf.c
19 pci/busno.c
20 pci/config.c
21 pci/devhere.c
22 pci/id.c
23 pci/ppbridge.c
24 pci/romimage.c
25 pci/state.c
26 debug.c
27 device.c
28 dispatch.c
29 enum.c
30 fdo.c
31 guid.c
32 hookhal.c
33 init.c
34 pcivrify.c
35 pdo.c
36 power.c
37 usage.c
38 utils.c
39 pci.rc)
40
41 add_library(pcix SHARED ${CMAKE_CURRENT_BINARY_DIR}/pcix_pci.h.gch ${SOURCE})
42
43 set_target_properties(pcix PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--subsystem,native" SUFFIX ".sys")
44
45 target_link_libraries(pcix
46 -lntoskrnl
47 -lhal)
48
49 add_pch(pcix ${CMAKE_CURRENT_SOURCE_DIR}/pci.h ${SOURCE})
50 add_dependencies(pcix pcix_def psdk pciclass)