bzr branch
http://darksoft.org/webbzr/alps/ipecamera
245
by Suren A. Chilingaryan
First stand-alone ipecamera implementation |
1 |
project(ipecamera) |
2 |
||
3 |
set(IPECAMERA_VERSION "0.0.1") |
|
4 |
set(IPECAMERA_ABI_VERSION "0") |
|
5 |
||
6 |
cmake_minimum_required(VERSION 2.6) |
|
7 |
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") |
|
8 |
||
9 |
find_package(PkgConfig REQUIRED) |
|
10 |
find_package(Threads REQUIRED) |
|
11 |
pkg_check_modules(UFODECODE ufodecode>=0.3 REQUIRED) |
|
12 |
||
13 |
pkg_check_modules(PCILIB pcitool>=0.2 REQUIRED) |
|
14 |
exec_program("pkg-config --variable=plugindir pcitool" OUTPUT_VARIABLE PCILIB_PLUGIN_DIR) |
|
15 |
||
253
by Suren A. Chilingaryan
Provide version information as required by new pcilib interface |
16 |
include(cmake/version.cmake) |
17 |
VERSION_TO_VARS(${IPECAMERA_VERSION} IPECAMERA_VERSION_MAJOR IPECAMERA_VERSION_MINOR IPECAMERA_VERSION_MICRO) |
|
18 |
||
19 |
||
250
by Suren A. Chilingaryan
Added a small grabbing example |
20 |
add_subdirectory(apps) |
21 |
||
126
by Suren A. Chilingaryan
multithread preprocessing of ipecamera frames and code reorganization |
22 |
include_directories( |
23 |
${CMAKE_SOURCE_DIR} |
|
174.1.3
by Suren A. Chilingaryan
Fixes building in non-standard dirs |
24 |
${UFODECODE_INCLUDE_DIRS} |
245
by Suren A. Chilingaryan
First stand-alone ipecamera implementation |
25 |
${PCILIB_INCLUDE_DIRS} |
26 |
)
|
|
27 |
||
28 |
link_directories( |
|
29 |
${UFODECODE_LIBRARY_DIRS} |
|
30 |
${PCILIB_LIBRARY_DIRS} |
|
31 |
)
|
|
32 |
||
261
by Suren A. Chilingaryan
Support for new CMOSIS 20MPix camera |
33 |
set(HEADERS ${HEADERS} model.h cmosis.h base.h reader.h events.h data.h env.h private.h ipecamera.h version.h) |
245
by Suren A. Chilingaryan
First stand-alone ipecamera implementation |
34 |
|
261
by Suren A. Chilingaryan
Support for new CMOSIS 20MPix camera |
35 |
add_library(ipecamera SHARED model.c cmosis.c base.c reader.c events.c data.c env.c) |
245
by Suren A. Chilingaryan
First stand-alone ipecamera implementation |
36 |
|
246
by Suren A. Chilingaryan
Link against ufodecode |
37 |
target_link_libraries(ipecamera ${PCILIB_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${UFODECODE_LIBRARIES} ) |
126
by Suren A. Chilingaryan
multithread preprocessing of ipecamera frames and code reorganization |
38 |
|
140
by Suren A. Chilingaryan
Add install targets to cmake |
39 |
install(FILES ipecamera.h |
40 |
DESTINATION include |
|
41 |
)
|
|
245
by Suren A. Chilingaryan
First stand-alone ipecamera implementation |
42 |
|
43 |
install(TARGETS ipecamera |
|
44 |
DESTINATION ${PCILIB_PLUGIN_DIR} |
|
45 |
)
|
|
46 |
||
253
by Suren A. Chilingaryan
Provide version information as required by new pcilib interface |
47 |
set(TARNAME "ipecamera") |
48 |
set(PACKAGE_VERSION ${IPECAMERA_VERSION}) |
|
49 |
set(PACKAGE_NAME "${TARNAME}") |
|
50 |
set(PACKAGE_TARNAME "${TARNAME}") |
|
51 |
set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}") |
|
52 |
set(PACKAGE_BUGREPORT "http://ufo.kit.edu/ufo/newticket") |
|
53 |
||
54 |
if(NOT DEFINED BIN_INSTALL_DIR) |
|
55 |
set(BIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/bin") |
|
56 |
endif(NOT DEFINED BIN_INSTALL_DIR) |
|
57 |
||
58 |
if(NOT DEFINED LIB_INSTALL_DIR) |
|
59 |
set(LIB_INSTALL_DIR "${LIB_INSTALL_DIR}") |
|
60 |
endif(NOT DEFINED LIB_INSTALL_DIR) |
|
61 |
||
62 |
if(NOT DEFINED INCLUDE_INSTALL_DIR) |
|
63 |
set(INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include") |
|
64 |
endif(NOT DEFINED INCLUDE_INSTALL_DIR) |
|
65 |
||
66 |
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/ipecamera.pc.in ${CMAKE_CURRENT_BINARY_DIR}/ipecamera.pc) |
|
67 |
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/version.h.in ${CMAKE_CURRENT_BINARY_DIR}/version.h) |
|
68 |
||
69 |
install(FILES |
|
70 |
${CMAKE_CURRENT_BINARY_DIR}/ipecamera.pc |
|
71 |
DESTINATION ${LIB_INSTALL_DIR}/pkgconfig |
|
72 |
)
|