Skip to content

Commit

Permalink
libserialport64
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalkbrenner committed Feb 6, 2025
1 parent d2953dc commit f9664a9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,11 @@ if(BUILD_STATIC)
third-party/build-libs/${PLATFORM}/${ARCH}
third-party/runtime-libs/${PLATFORM}/${ARCH}
)
target_link_libraries(ppuc_test_s PUBLIC ppuc_static libserialport yaml-cpp)
if(ARCH STREQUAL "x64")
target_link_libraries(ppuc_test_s PUBLIC ppuc_static libserialport64 yaml-cpp)
else()
target_link_libraries(ppuc_test_s PUBLIC ppuc_static libserialport yaml-cpp)
endif()

add_custom_command(TARGET ppuc_test_s POST_BUILD
COMMAND "${CMAKE_COMMAND}" -E copy "${CMAKE_SOURCE_DIR}/third-party/build-libs/${PLATFORM}/${ARCH}/*.lib" "$<TARGET_FILE_DIR:ppuc_test_s>"
Expand Down

0 comments on commit f9664a9

Please sign in to comment.