diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-12-12 05:45:35 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-12-12 05:45:35 +0100 |
commit | 2e4e8a00b27182a155cb10f0a00e44977bfcd5cf (patch) | |
tree | 86afd1b7ceb834dbb3cedf8d55c3ac0734947333 /CMakeLists.txt | |
parent | 7a4cfb9e546c496792d3fe0c61c822c66ad0128f (diff) | |
download | ipecamera-2e4e8a00b27182a155cb10f0a00e44977bfcd5cf.tar.gz ipecamera-2e4e8a00b27182a155cb10f0a00e44977bfcd5cf.tar.bz2 ipecamera-2e4e8a00b27182a155cb10f0a00e44977bfcd5cf.tar.xz ipecamera-2e4e8a00b27182a155cb10f0a00e44977bfcd5cf.zip |
multithread preprocessing of ipecamera frames and code reorganization
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..7664481 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,38 @@ +project(pcitool) + +set(PCILIB_VERSION "0.0.1") +set(PCILIB_ABI_VERSION "0") + +cmake_minimum_required(VERSION 2.8) + +find_package(PkgConfig REQUIRED) + +#Check in sibling directory +pkg_check_modules(UFODECODE ufodecode REQUIRED) + +set(HEADERS pcilib.h pci.h register.h kmem.h irq.h dma.h event.h default.h tools.h error.h) +add_definitions("-fPIC --std=c99 -Wall -O2 -pthread") + +add_subdirectory(dma) +add_subdirectory(ipecamera) +add_subdirectory(pcitool) + +add_library(pcilib SHARED pci.c register.c kmem.c irq.c dma.c event.c default.c tools.c error.c) +target_link_libraries(pcilib ufodecode dma ipecamera) +add_dependencies(pcilib dma ipecamera) + +set_target_properties(pcilib PROPERTIES + VERSION ${PCILIB_VERSION} + SOVERSION ${PCILIB_ABI_VERSION} + LINK_FLAGS "-pthread" +# LINK_FLAGS "-pthread -Wl,--whole-archive,dma/libdma.a,ipecamera/libipecamera.a,--no-whole-archive" +) + +add_executable(pci cli.c) +add_dependencies(pci pcitool) +target_link_libraries(pci pcilib pcitool) + +#set_target_properties(pci PROPERTIES +# LINK_FLAGS "-Wl,pcitool/libpcitool.a" +#) + |