mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-15 07:06:11 -04:00
this is a merge commit based on a work done here: https://team-review.git.corp.google.com/c/nearby-eng/nearby/+/761959 the difference with the former is: this one is tracking both heads of a merge Change-Id: I8b28b1d3a5280581f20e4edf9144641a12df8879
88 lines
1.7 KiB
CMake
88 lines
1.7 KiB
CMake
add_library(platform_impl_shared_posix_lock STATIC)
|
|
|
|
target_sources(platform_impl_shared_posix_lock
|
|
PRIVATE
|
|
"posix_lock.cc"
|
|
PUBLIC
|
|
"posix_lock.h"
|
|
)
|
|
|
|
target_include_directories(platform_impl_shared_posix_lock
|
|
PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
)
|
|
|
|
|
|
target_link_libraries(platform_impl_shared_posix_lock
|
|
PUBLIC
|
|
platform_api
|
|
platform_types
|
|
)
|
|
|
|
add_library(platform_impl_shared_posix_condition_variable STATIC)
|
|
|
|
target_sources(platform_impl_shared_posix_condition_variable
|
|
PRIVATE
|
|
"posix_condition_variable.cc"
|
|
PUBLIC
|
|
"posix_condition_variable.h"
|
|
)
|
|
|
|
target_include_directories(platform_impl_shared_posix_condition_variable
|
|
PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
)
|
|
|
|
target_link_libraries(platform_impl_shared_posix_condition_variable
|
|
PUBLIC
|
|
platform_api
|
|
platform_impl_shared_posix_lock
|
|
platform_types
|
|
absl::raw_logging_internal
|
|
)
|
|
|
|
add_library(platform_impl_shared_file STATIC)
|
|
|
|
target_sources(platform_impl_shared_file
|
|
PRIVATE
|
|
"file_impl.cc"
|
|
PUBLIC
|
|
"file_impl.h"
|
|
)
|
|
|
|
target_include_directories(platform_impl_shared_file
|
|
PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
)
|
|
|
|
target_link_libraries(platform_impl_shared_file
|
|
PUBLIC
|
|
platform_api
|
|
platform_types
|
|
)
|
|
|
|
add_library(platform_impl_shared_atomic_boolean STATIC)
|
|
|
|
target_sources(platform_impl_shared_atomic_boolean
|
|
PUBLIC
|
|
"atomic_boolean_impl.h"
|
|
)
|
|
|
|
target_include_directories(platform_impl_shared_atomic_boolean
|
|
PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
)
|
|
|
|
target_link_libraries(platform_impl_shared_atomic_boolean
|
|
PUBLIC
|
|
platform_api
|
|
platform_types
|
|
)
|
|
|
|
set_target_properties(platform_impl_shared_atomic_boolean
|
|
PROPERTIES
|
|
LINKER_LANGUAGE CXX
|
|
)
|
|
|
|
add_subdirectory(sample)
|