summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
blob: eb1b766996dd4862d428e8b582fdbc375579b18c (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
project(ipedma_test)

cmake_minimum_required(VERSION 2.6)

find_package(PkgConfig REQUIRED)
pkg_check_modules(PCILIB pcitool>=0.2 REQUIRED)


include_directories(
    ${PCILIB_INCLUDE_DIRS}
)

link_directories(
    ${PCILIB_LIBRARY_DIRS}
)

add_executable(ipedma_test ipedma_test.c)
target_link_libraries(ipedma_test ${PCILIB_LIBRARIES})
set_target_properties(ipedma_test PROPERTIES COMPILE_FLAGS -Wno-array-bounds)

add_executable(check_counter check_counter.c)


if(NOT DEFINED BIN_INSTALL_DIR)
    set(BIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/bin")
endif(NOT DEFINED BIN_INSTALL_DIR)

install(TARGETS ipedma_test check_counter DESTINATION ${BIN_INSTALL_DIR})