Add Boost::atomic target, required by Boost::thread in some configurations (e.g. OpenSUSE)

This commit is contained in:
Carles Fernandez
2019-02-04 08:11:28 +01:00
parent eb281bcd68
commit 999604cd75
2 changed files with 14 additions and 6 deletions
+4 -5
View File
@@ -40,17 +40,12 @@ target_link_libraries(front_end_cal_lib
Glog::glog
Gnuradio::blocks
Gnuradio::runtime
Boost::boost
Boost::serialization
Boost::thread
)
add_executable(front-end-cal ${CMAKE_CURRENT_SOURCE_DIR}/main.cc)
add_custom_command(TARGET front-end-cal POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:front-end-cal>
${CMAKE_SOURCE_DIR}/install/$<TARGET_FILE_NAME:front-end-cal>)
target_link_libraries(front-end-cal
PUBLIC
${MAC_LIBRARIES}
@@ -70,6 +65,10 @@ target_compile_definitions(front-end-cal
PUBLIC -DGNSSSDR_INSTALL_DIR="${CMAKE_INSTALL_PREFIX}"
)
add_custom_command(TARGET front-end-cal POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:front-end-cal>
${CMAKE_SOURCE_DIR}/install/$<TARGET_FILE_NAME:front-end-cal>)
install(TARGETS front-end-cal
RUNTIME DESTINATION bin
COMPONENT "front-end-cal"