blob: df3dcd919c0c09204f6125c591287c5f32ca7c7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
include_directories(
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/pcilib
)
set(HEADERS pcilib.h pci.h export.h model.h bank.h register.h kmem.h irq.h dma.h event.h tools.h error.h config.h)
add_library(pcilib SHARED pci.c export.c model.c bank.c register.c kmem.c irq.c dma.c event.c tools.c error.c)
target_link_libraries(pcilib dma protocols ${CMAKE_THREAD_LIBS_INIT} ${UFODECODE_LIBRARIES} )
add_dependencies(pcilib dma protocols)
install(TARGETS pcilib
LIBRARY DESTINATION lib${LIB_SUFFIX}
)
install(FILES pcilib.h
DESTINATION include
)
install(FILES bank.h register.h dma.h event.h model.h error.h tools.h export.h
DESTINATION include/pcilib
)
|