Progress bar, CMake fixes

This commit is contained in:
Jaro
2021-08-27 13:55:00 +02:00
parent ca0fdd3428
commit 6f007afe2a
3 changed files with 12 additions and 213 deletions

View File

@@ -6,12 +6,11 @@ project(TEST)
set(CMAKE_CXX_STANDARD 11)
set(TEST_SRCS main.cpp TimeoutSerial.cpp Ymodem.cpp YmodemFileReceive.cpp)
add_definitions(-DBOOST_LOG_DYN_LINK)
add_executable(timeout ${TEST_SRCS})
set(CMAKE_BUILD_TYPE Debug)
add_executable(usbserial-dw ${TEST_SRCS})
## Link libraries
set(BOOST_LIBS date_time system log program_options)
find_package(Boost COMPONENTS ${BOOST_LIBS} REQUIRED)
target_link_libraries(timeout ${Boost_LIBRARIES})
target_link_libraries(usbserial-dw ${Boost_LIBRARIES})
find_package(Threads REQUIRED)
target_link_libraries(timeout ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries(usbserial-dw ${CMAKE_THREAD_LIBS_INIT})