blob: 6bd7ba1e5c3cea471a1a685af2d151fda268101a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
include_directories(
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/pcilib
${CMAKE_BINARY_DIR}/pcilib
${FASTWRITER_INCLUDE_DIRS}
${LIBXML2_INCLUDE_DIRS}
)
link_directories(
${FASTWRITER_LIBRARY_DIRS}
${CMAKE_SOURCE_DIR}/pcilib
)
if (NOT DISABLE_PCITOOL)
set(HEADERS ${HEADERS} sysinfo.h formaters.h buildinfo.h)
add_executable(pci cli.c sysinfo.c formaters.c buildinfo.c)
add_dependencies(pci pcilib)
target_link_libraries(pci pcilib ${FASTWRITER_LIBRARIES})
set_target_properties(pci PROPERTIES
LINK_FLAGS "${CMAKE_THREAD_LIBS_INIT} ${EXTRA_SYSTEM_LIBS}"
)
#set_target_properties(pci PROPERTIES
# LINK_FLAGS "-Wl,pcitool/libpcitool.a"
#)
install(TARGETS pci
DESTINATION ${CMAKE_INSTALL_BINDIR}
)
endif (NOT DISABLE_PCITOOL)
|