/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool
126 by Suren A. Chilingaryan
multithread preprocessing of ipecamera frames and code reorganization
1
include_directories(
2
    ${CMAKE_SOURCE_DIR}
302 by Suren A. Chilingaryan
Fixes out-of-source builds and minor build issues
3
    ${CMAKE_BINARY_DIR}
240 by Suren A. Chilingaryan
More structural changes to get ready for stand-alone event engines
4
    ${CMAKE_SOURCE_DIR}/pcilib
302 by Suren A. Chilingaryan
Fixes out-of-source builds and minor build issues
5
    ${CMAKE_BINARY_DIR}/pcilib
240 by Suren A. Chilingaryan
More structural changes to get ready for stand-alone event engines
6
    ${FASTWRITER_INCLUDE_DIRS}
303 by Suren A. Chilingaryan
Initial integration of XML support
7
    ${LIBXML2_INCLUDE_DIRS}
240 by Suren A. Chilingaryan
More structural changes to get ready for stand-alone event engines
8
)
9
10
link_directories(
11
    ${FASTWRITER_LIBRARY_DIRS}
12
    ${CMAKE_SOURCE_DIR}/pcilib
13
)
14
15
if (NOT DISABLE_PCITOOL)
348 by Suren A. Chilingaryan
Add build information
16
    set(HEADERS ${HEADERS} sysinfo.h formaters.h buildinfo.h)
17
    add_executable(pci cli.c sysinfo.c formaters.c buildinfo.c)
374 by Suren A. Chilingaryan
Handle build.h in releases
18
    add_dependencies(pci pcilib)
240 by Suren A. Chilingaryan
More structural changes to get ready for stand-alone event engines
19
    target_link_libraries(pci pcilib ${FASTWRITER_LIBRARIES})
20
    set_target_properties(pci PROPERTIES
297 by Suren A. Chilingaryan
Fix support of older systems: Remove C11 derective and add rt library to the link list
21
	LINK_FLAGS "${CMAKE_THREAD_LIBS_INIT} ${EXTRA_SYSTEM_LIBS}"
240 by Suren A. Chilingaryan
More structural changes to get ready for stand-alone event engines
22
    )
23
24
#set_target_properties(pci PROPERTIES
25
#    LINK_FLAGS "-Wl,pcitool/libpcitool.a"
26
#)
27
28
    install(TARGETS pci
388 by Suren A. Chilingaryan
Use GNUInstallDirs
29
	DESTINATION ${CMAKE_INSTALL_BINDIR}
240 by Suren A. Chilingaryan
More structural changes to get ready for stand-alone event engines
30
    )
31
endif (NOT DISABLE_PCITOOL)