Skip to content

Commit dd7445c

Browse files
committed
Add device communicator
1 parent ae0a90d commit dd7445c

12 files changed

Lines changed: 460 additions & 0 deletions

File tree

DeviceCommunicator/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/.local/
2+
/cmake-build-debug/
3+
/cmake-build-release/
4+
/include/

DeviceCommunicator/.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DeviceCommunicator/.idea/DeviceCommunicator.iml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DeviceCommunicator/.idea/codeStyles/codeStyleConfig.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DeviceCommunicator/.idea/inspectionProfiles/profiles_settings.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DeviceCommunicator/.idea/misc.xml

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DeviceCommunicator/.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DeviceCommunicator/.idea/runConfigurations/DeviceCommunicator.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DeviceCommunicator/.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DeviceCommunicator/CMakeLists.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
cmake_minimum_required(VERSION 3.10)
2+
project(DeviceCommunicator)
3+
set(CMAKE_CXX_STANDARD 17)
4+
5+
link_directories(include)
6+
include_directories(include)
7+
8+
add_executable(DeviceCommunicator src/main.cpp)
9+
target_link_libraries(DeviceCommunicator fido2 cbor crypto-45)
10+
11+
add_custom_command(
12+
TARGET ${PROJECT_NAME} POST_BUILD
13+
COMMAND ${CMAKE_COMMAND} -E copy
14+
${CMAKE_CURRENT_SOURCE_DIR}/include/cbor.dll ${CMAKE_CURRENT_SOURCE_DIR}/include/crypto-45.dll ${CMAKE_CURRENT_SOURCE_DIR}/include/fido2.dll
15+
${CMAKE_CURRENT_BINARY_DIR}/
16+
)
17+
18+
add_custom_command(
19+
TARGET ${PROJECT_NAME} POST_BUILD
20+
COMMAND ${CMAKE_COMMAND} -E copy
21+
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.exe ${CMAKE_CURRENT_BINARY_DIR}/cbor.dll ${CMAKE_CURRENT_BINARY_DIR}/crypto-45.dll ${CMAKE_CURRENT_BINARY_DIR}/fido2.dll
22+
${CMAKE_CURRENT_SOURCE_DIR}/../KeePassPlugin/bin/Debug/
23+
)
24+
25+
add_custom_command(
26+
TARGET ${PROJECT_NAME} POST_BUILD
27+
COMMAND ${CMAKE_COMMAND} -E copy
28+
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.exe ${CMAKE_CURRENT_BINARY_DIR}/cbor.dll ${CMAKE_CURRENT_BINARY_DIR}/crypto-45.dll ${CMAKE_CURRENT_BINARY_DIR}/fido2.dll
29+
${CMAKE_CURRENT_SOURCE_DIR}/../KeePassPlugin/bin/Release/
30+
)

0 commit comments

Comments
 (0)