File: CMakeLists.txt

package info (click to toggle)
mrtdreader 0.1.6-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 248 kB
  • sloc: ansic: 1,300; sh: 15; makefile: 4
file content (22 lines) | stat: -rw-r--r-- 784 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
add_library(mrtd SHARED bac.c bachelper.c fileread.c hardware.c crypto-gcrypt.c)
target_link_libraries(mrtd nfc)
target_link_libraries(mrtd usb)
target_link_libraries(mrtd gcrypt)

add_executable(mrtdreader mrtdreader.c)
target_link_libraries(mrtdreader mrtd)

set_target_properties(mrtd PROPERTIES VERSION 0.0.1 SOVERSION 0)

install(TARGETS mrtdreader DESTINATION bin)
if(${CMAKE_INSTALL_PREFIX} STREQUAL "/usr")
 install(TARGETS mrtd DESTINATION lib/${CMAKE_LIBRARY_ARCHITECTURE})
else()
 install(TARGETS mrtd DESTINATION lib)
endif()

install(FILES mrtd.h DESTINATION include/mrtd)
install(FILES bac.h DESTINATION include/mrtd)
install(FILES bachelper.h DESTINATION include/mrtd)
install(FILES crypto.h DESTINATION include/mrtd)
install(FILES fileread.h DESTINATION include/mrtd)