blob: 472153831a460f8ccd41a99eb7be5dc46f4e63a6 (
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
|
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_definitions("-fPIC --std=c99 -O2 -gdwarf-2 -g3")
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})
|