123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- include_directories(
- src/freefare
- src/libnfc
- src/utils
- inc
- )
-
- set(SOURCE_FILES
- inc/libnfc_cpptools/Result.h
- src/libnfc/LibNfcInternal.cpp
- src/libnfc/LibNfcInternal.h
- src/libnfc/NfcDeviceInternal.cpp
- src/libnfc/NfcDeviceInternal.h
- src/freefare/FreeFareDeviceInternal.cpp
- src/freefare/FreeFareDeviceInternal.h
- src/freefare/FreeFareTagInternal.cpp
- src/freefare/FreeFareTagInternal.h
- src/utils/StringUtils.cpp
- inc/libnfc_cpptools/StringUtils.h
- src/freefare/FreeFareAccessBits.cpp
- inc/libnfc_cpptools/FreeFareAccessBits.h
- src/libnfc/LibNfcContext.cpp
- inc/libnfc_cpptools/LibNfcContext.h
- src/libnfc/NfcDevice.cpp
- inc/libnfc_cpptools/NfcDevice.h
- src/freefare/FreeFareDevice.cpp
- inc/libnfc_cpptools/FreeFareDevice.h
- src/freefare/FreeFareTag.cpp
- inc/libnfc_cpptools/FreeFareTag.h
- src/freefare/FreeFareSector.cpp
- inc/libnfc_cpptools/FreeFareSector.h
- src/utils/ArrayUtils.cpp
- inc/libnfc_cpptools/ArrayUtils.h
- )
-
- add_library(${PROJECT_NAME} SHARED ${SOURCE_FILES})
- target_link_libraries(${PROJECT_NAME}
- nfc
- freefare
- )
-
- install(TARGETS ${PROJECT_NAME}
- LIBRARY DESTINATION lib)
-
- set(LIBNFC_CPPTOOLS_INCLUDE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/inc PARENT_SCOPE)
|