reactos/drivers/bus/pcix/CMakeLists.txt
Jérôme Gardou 4ee1da42f1 [CMAKE]
- rewrite spec2def macro because
1. cmake gracefully handles def files as source files
2. cmake gracefully handles autogenerated files as source
3. it did not take into account the fact that all shared libraries haven't the .dll extension

svn path=/branches/cmake-bringup/; revision=49358
2010-10-30 16:08:19 +00:00

46 lines
1,014 B
CMake

list(APPEND SOURCE
arb/ar_busno.c
arb/ar_memio.c
arb/arb_comn.c
arb/tr_irq.c
intrface/agpintrf.c
intrface/busintrf.c
intrface/cardbus.c
intrface/devhere.c
intrface/ideintrf.c
intrface/intrface.c
intrface/lddintrf.c
intrface/locintrf.c
intrface/pmeintf.c
intrface/routintf.c
pci/busno.c
pci/config.c
pci/devhere.c
pci/id.c
pci/ppbridge.c
pci/romimage.c
pci/state.c
debug.c
device.c
dispatch.c
enum.c
fdo.c
guid.c
hookhal.c
init.c
pcivrify.c
pdo.c
power.c
usage.c
utils.c
pci.rc)
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")
add_importlibs(pcix ntoskrnl hal)
add_pch(pcix ${CMAKE_CURRENT_SOURCE_DIR}/pci.h ${SOURCE})
add_dependencies(pcix psdk pciclass buildno_header)