在 Cmakelists 中增加了 Threads 包的查找
This commit is contained in:
parent
7509b4a44b
commit
5dddaf3199
@ -163,10 +163,14 @@ configure_file(${CMAKE_SOURCE_DIR}/config/system_config.json ${CMAKE_BINARY_DIR}
|
||||
configure_file(${CMAKE_SOURCE_DIR}/config/intersections.json ${CMAKE_BINARY_DIR}/config/intersections.json COPYONLY)
|
||||
configure_file(${CMAKE_SOURCE_DIR}/config/airport_bounds.json ${CMAKE_BINARY_DIR}/config/airport_bounds.json COPYONLY)
|
||||
configure_file(${CMAKE_SOURCE_DIR}/config/unmanned_vehicles.json ${CMAKE_BINARY_DIR}/config/unmanned_vehicles.json COPYONLY)
|
||||
|
||||
# 查找 Threads 包
|
||||
find_package(Threads REQUIRED)
|
||||
|
||||
if(NOT APPLE)
|
||||
target_link_libraries(collision_avoidance
|
||||
PRIVATE
|
||||
${PROJECT_NAME}_lib
|
||||
pthread
|
||||
Threads::Threads
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
Loading…
Reference in New Issue
Block a user