-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
33 lines (27 loc) · 894 Bytes
/
CMakeLists.txt
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
cmake_minimum_required (VERSION 3.7)
project ("hexio" C)
include (FindPkgConfig)
pkg_search_module (PCSCLITE libpcsclite libpcsclite-dev)
if (PCSCLITE_FOUND)
# message ("Found pcsclite, ${PCSCLITE_FOUND}")
message ("Found pcsclite includes at ${PCSCLITE_INCLUDE_DIRS}")
# message ("Found pcsclite libraries at ${PCSCLITE_LIBRARIES}")
# message ("Found pcsclite library dirs at ${PCSCLITE_LIBRARY_DIRS}")
include_directories (${PCSCLITE_INCLUDE_DIRS})
set (PCSC_OPT_TARGET pcscio)
else()
set (PCSC_OPT_TARGET)
endif ()
add_executable (hexin hexin.c)
add_executable (hexout hexout.c)
add_executable (devio devio.c)
if (PCSCLITE_FOUND)
add_executable (pcscio pcscio.c)
target_link_libraries (pcscio ${PCSCLITE_LIBRARIES})
endif ()
install (TARGETS hexin hexout devio ${PCSC_OPT_TARGET}
RUNTIME DESTINATION /usr/local/bin
)
install (PROGRAMS derdump
DESTINATION /usr/local/bin
)