1
0
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:
William Woodall 2011-03-22 11:00:31 -05:00
parent 2f066f4e1c
commit d5b867a419

View File

@ -17,6 +17,9 @@ include_directories(${PROJECT_SOURCE_DIR}/include)
# Find Boost # Find Boost
find_package(Boost COMPONENTS system filesystem thread REQUIRED) find_package(Boost COMPONENTS system filesystem thread REQUIRED)
link_directories(${Boost_LIBRARY_DIRS})
include_directories(${Boost_INCLUDE_DIRS})
# Compile the Serial Library # Compile the Serial Library
add_library(serial src/serial.cpp include/serial.h) add_library(serial src/serial.cpp include/serial.h)
target_link_libraries(serial ${Boost_SYSTEM_LIBRARY} ${Boost_FILESYSTEM_LIBRARY} ${Boost_THREAD_LIBRARY}) target_link_libraries(serial ${Boost_SYSTEM_LIBRARY} ${Boost_FILESYSTEM_LIBRARY} ${Boost_THREAD_LIBRARY})