include_directories( src/freefare src/libnfc src/utils inc ) set(SOURCE_FILES inc/libnfc_cpptools/Result.h src/libnfc/LibNfcContextInternal.cpp src/libnfc/LibNfcContextInternal.h src/libnfc/NfcDeviceInternal.cpp src/libnfc/NfcDeviceInternal.h src/freefare/FreeFareDeviceInternal.cpp src/freefare/FreeFareDeviceInternal.h src/freefare/Tags/FreeFareTagInternal.cpp src/freefare/Tags/FreeFareTagInternal.h src/utils/StringUtils.cpp inc/libnfc_cpptools/StringUtils.h src/freefare/Tags/Classic/FreeFareClassicAccessBits.cpp inc/libnfc_cpptools/FreeFareClassicAccessBits.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/Tags/FreeFareTag.cpp inc/libnfc_cpptools/FreeFareTag.h src/freefare/Tags/Classic/FreeFareClassicSector.cpp inc/libnfc_cpptools/FreeFareClassicSector.h src/utils/ArrayUtils.cpp inc/libnfc_cpptools/ArrayUtils.h src/freefare/Tags/Classic/FreeFareTagClassicInternal.cpp src/freefare/Tags/Classic/FreeFareTagClassicInternal.h src/freefare/Tags/Classic/FreeFareTagClassic.cpp inc/libnfc_cpptools/FreeFareTagClassic.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)