bzr branch
http://suren.me/webbzr/alps/pcitool
126
by Suren A. Chilingaryan
multithread preprocessing of ipecamera frames and code reorganization |
1 |
project(pcitool) |
2 |
||
241
by Suren A. Chilingaryan
Further adjustments to get ready for independent event plugins |
3 |
set(PCILIB_VERSION "0.2.0") |
4 |
set(PCILIB_ABI_VERSION "2") |
|
126
by Suren A. Chilingaryan
multithread preprocessing of ipecamera frames and code reorganization |
5 |
|
203
by root
Provide kmem addresses in sysfs |
6 |
cmake_minimum_required(VERSION 2.6) |
126
by Suren A. Chilingaryan
multithread preprocessing of ipecamera frames and code reorganization |
7 |
|
152
by Suren A. Chilingaryan
build scripts: allow to build the library without pcitool |
8 |
set(DISABLE_PCITOOL FALSE CACHE BOOL "Build only the library") |
9 |
||
253
by Suren A. Chilingaryan
Include version information in all API descriptions |
10 |
#list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
|
152
by Suren A. Chilingaryan
build scripts: allow to build the library without pcitool |
11 |
|
126
by Suren A. Chilingaryan
multithread preprocessing of ipecamera frames and code reorganization |
12 |
find_package(PkgConfig REQUIRED) |
156
by Suren A. Chilingaryan
Portable pthreads detection |
13 |
find_package(Threads REQUIRED) |
126
by Suren A. Chilingaryan
multithread preprocessing of ipecamera frames and code reorganization |
14 |
|
15 |
#Check in sibling directory
|
|
152
by Suren A. Chilingaryan
build scripts: allow to build the library without pcitool |
16 |
if (NOT DISABLE_PCITOOL) |
17 |
pkg_check_modules(FASTWRITER fastwriter REQUIRED) |
|
18 |
endif (NOT DISABLE_PCITOOL) |
|
126
by Suren A. Chilingaryan
multithread preprocessing of ipecamera frames and code reorganization |
19 |
|
236
by Suren A. Chilingaryan
Big redign of model structures |
20 |
add_definitions("-fPIC --std=c99 -Wall -O2 -gdwarf-2 -g3") |
21 |
#add_definitions("-fPIC --std=c99 -Wall -O2")
|
|
126
by Suren A. Chilingaryan
multithread preprocessing of ipecamera frames and code reorganization |
22 |
|
253
by Suren A. Chilingaryan
Include version information in all API descriptions |
23 |
include(cmake/version.cmake) |
24 |
VERSION_TO_VARS(${PCILIB_VERSION} PCILIB_VERSION_MAJOR PCILIB_VERSION_MINOR PCILIB_VERSION_MICRO) |
|
25 |
||
26 |
||
126
by Suren A. Chilingaryan
multithread preprocessing of ipecamera frames and code reorganization |
27 |
add_subdirectory(dma) |
236
by Suren A. Chilingaryan
Big redign of model structures |
28 |
add_subdirectory(protocols) |
240
by Suren A. Chilingaryan
More structural changes to get ready for stand-alone event engines |
29 |
add_subdirectory(pcilib) |
126
by Suren A. Chilingaryan
multithread preprocessing of ipecamera frames and code reorganization |
30 |
add_subdirectory(pcitool) |
201
by Suren A. Chilingaryan
Xilinx benchmark |
31 |
add_subdirectory(apps) |
126
by Suren A. Chilingaryan
multithread preprocessing of ipecamera frames and code reorganization |
32 |
|
33 |
set_target_properties(pcilib PROPERTIES |
|
34 |
VERSION ${PCILIB_VERSION} |
|
35 |
SOVERSION ${PCILIB_ABI_VERSION} |
|
36 |
)
|
|
37 |
||
241
by Suren A. Chilingaryan
Further adjustments to get ready for independent event plugins |
38 |
set(TARNAME "pcitool") |
39 |
set(PACKAGE_VERSION ${PCILIB_VERSION}) |
|
40 |
set(PACKAGE_NAME "${TARNAME}") |
|
41 |
set(PACKAGE_TARNAME "${TARNAME}") |
|
42 |
set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}") |
|
43 |
set(PACKAGE_BUGREPORT "http://ufo.kit.edu/ufo/newticket") |
|
44 |
||
45 |
if(NOT DEFINED BIN_INSTALL_DIR) |
|
46 |
set(BIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/bin") |
|
47 |
endif(NOT DEFINED BIN_INSTALL_DIR) |
|
48 |
||
49 |
if(NOT DEFINED LIB_INSTALL_DIR) |
|
50 |
set(LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib") |
|
51 |
endif(NOT DEFINED LIB_INSTALL_DIR) |
|
52 |
||
53 |
if(NOT DEFINED INCLUDE_INSTALL_DIR) |
|
54 |
set(INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include") |
|
55 |
endif(NOT DEFINED INCLUDE_INSTALL_DIR) |
|
56 |
||
57 |
if(NOT DEFINED DATA_INSTALL_DIR) |
|
58 |
set(DATA_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/share") |
|
59 |
endif(NOT DEFINED DATA_INSTALL_DIR) |
|
60 |
||
61 |
if(NOT DEFINED LOCALE_INSTALL_DIR) |
|
62 |
set(LOCALE_INSTALL_DIR "${DATA_INSTALL_DIR}/locale") |
|
63 |
endif(NOT DEFINED LOCALE_INSTALL_DIR) |
|
64 |
||
252
by Suren A. Chilingaryan
Provide data debugging API |
65 |
set(PCILIB_PLUGIN_DIR "${LIB_INSTALL_DIR}/pcilib" CACHE PATH "Directory to install plugins") |
66 |
set(PCILIB_DATA_DIR "${DATA_INSTALL_DIR}/pcilib" CACHE PATH "Directory to install data files") |
|
67 |
set(PCILIB_MODEL_DIR "${PCILIB_DATA_DIR}/models" CACHE PATH "Directory to install XML models") |
|
68 |
set(PCILIB_DEBUG_DIR "." CACHE PATH "Directory to write debug information") |
|
241
by Suren A. Chilingaryan
Further adjustments to get ready for independent event plugins |
69 |
|
70 |
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/pcitool.pc.in ${CMAKE_CURRENT_BINARY_DIR}/pcitool.pc) |
|
71 |
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/pcilib/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/pcilib/config.h) |
|
253
by Suren A. Chilingaryan
Include version information in all API descriptions |
72 |
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/pcilib/version.h.in ${CMAKE_CURRENT_BINARY_DIR}/pcilib/version.h) |
241
by Suren A. Chilingaryan
Further adjustments to get ready for independent event plugins |
73 |
|
74 |
install(FILES |
|
75 |
${CMAKE_CURRENT_BINARY_DIR}/pcitool.pc |
|
76 |
DESTINATION ${LIB_INSTALL_DIR}/pkgconfig |
|
77 |
)
|
|
253
by Suren A. Chilingaryan
Include version information in all API descriptions |
78 |
|
79 |
message("-- Configured pcitool ${PCILIB_VERSION_MAJOR}.${PCILIB_VERSION_MINOR}.${PCILIB_VERSION_MICRO} with public ABI ${PCILIB_ABI_VERSION}") |