mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 19:54:57 +08:00
Added some boost related stuff to cmake to help with windows building.
This commit is contained in:
parent
2f066f4e1c
commit
d5b867a419
@ -17,6 +17,9 @@ include_directories(${PROJECT_SOURCE_DIR}/include)
|
||||
# Find Boost
|
||||
find_package(Boost COMPONENTS system filesystem thread REQUIRED)
|
||||
|
||||
link_directories(${Boost_LIBRARY_DIRS})
|
||||
include_directories(${Boost_INCLUDE_DIRS})
|
||||
|
||||
# Compile the Serial Library
|
||||
add_library(serial src/serial.cpp include/serial.h)
|
||||
target_link_libraries(serial ${Boost_SYSTEM_LIBRARY} ${Boost_FILESYSTEM_LIBRARY} ${Boost_THREAD_LIBRARY})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user