blob: 2bcfc15b8875dde541af6ba8466c4d81a550a5b6 (
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
32
33
34
35
36
37
38
39
40
41
42
|
project(ipecamera)
set(IPECAMERA_VERSION "0.0.1")
set(IPECAMERA_ABI_VERSION "0")
cmake_minimum_required(VERSION 2.6)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
find_package(PkgConfig REQUIRED)
find_package(Threads REQUIRED)
pkg_check_modules(UFODECODE ufodecode>=0.3 REQUIRED)
pkg_check_modules(PCILIB pcitool>=0.2 REQUIRED)
exec_program("pkg-config --variable=plugindir pcitool" OUTPUT_VARIABLE PCILIB_PLUGIN_DIR)
add_subdirectory(apps)
include_directories(
${CMAKE_SOURCE_DIR}
${UFODECODE_INCLUDE_DIRS}
${PCILIB_INCLUDE_DIRS}
)
link_directories(
${UFODECODE_LIBRARY_DIRS}
${PCILIB_LIBRARY_DIRS}
)
set(HEADERS ${HEADERS} model.h cmosis.h base.h reader.h events.h data.h private.h ipecamera.h)
add_library(ipecamera SHARED model.c cmosis.c base.c reader.c events.c data.c)
target_link_libraries(ipecamera ${PCILIB_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${UFODECODE_LIBRARIES} )
install(FILES ipecamera.h
DESTINATION include
)
install(TARGETS ipecamera
DESTINATION ${PCILIB_PLUGIN_DIR}
)
|