Attempt to fix CMake compilation.
This commit is contained in:
parent
ab727defb7
commit
4f7ad56d1b
3 changed files with 16 additions and 12 deletions
14
src/examples/CMakeLists.txt
Normal file
14
src/examples/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
SET(EXAMPLES-SOURCES nfc-list nfc-mftool nfc-mfultool nfcip-initiator nfcip-target nfc-anticol nfc-emulate nfc-relay)
|
||||
|
||||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../)
|
||||
|
||||
# Examples
|
||||
FOREACH(source ${EXAMPLES-SOURCES})
|
||||
ADD_EXECUTABLE(${source} ${source}.c)
|
||||
TARGET_LINK_LIBRARIES(${source} nfc)
|
||||
INSTALL(TARGETS ${source} RUNTIME DESTINATION bin COMPONENT examples)
|
||||
ENDFOREACH(source)
|
||||
|
||||
# Manuals for the examples
|
||||
FILE(GLOB manuals "${CMAKE_CURRENT_SOURCE_DIR}/*.1")
|
||||
INSTALL(FILES ${manuals} DESTINATION ${SHARE_INSTALL_PREFIX}/man/man1 COMPONENT manuals)
|
||||
Loading…
Add table
Add a link
Reference in a new issue