mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-14 09:58:50 +08:00
83 lines
1.7 KiB
CMake
83 lines
1.7 KiB
CMake
find_package(Threads REQUIRED)
|
|
|
|
set(FLOW_SRCS
|
|
ActorCollection.actor.cpp
|
|
ActorCollection.h
|
|
Arena.h
|
|
AsioReactor.h
|
|
CompressedInt.actor.cpp
|
|
CompressedInt.h
|
|
Deque.cpp
|
|
Deque.h
|
|
DeterministicRandom.h
|
|
Error.cpp
|
|
Error.h
|
|
EventTypes.actor.h
|
|
FastAlloc.cpp
|
|
FastAlloc.h
|
|
FastRef.h
|
|
FaultInjection.cpp
|
|
FaultInjection.h
|
|
Hash3.c
|
|
Hash3.h
|
|
IDispatched.h
|
|
IRandom.h
|
|
IThreadPool.cpp
|
|
IThreadPool.h
|
|
IndexedSet.actor.h
|
|
IndexedSet.cpp
|
|
IndexedSet.h
|
|
Knobs.cpp
|
|
Knobs.h
|
|
MetricSample.h
|
|
Net2.actor.cpp
|
|
Net2Packet.cpp
|
|
Net2Packet.h
|
|
Platform.cpp
|
|
Platform.h
|
|
Profiler.actor.cpp
|
|
Profiler.h
|
|
SignalSafeUnwind.cpp
|
|
SignalSafeUnwind.h
|
|
SimpleOpt.h
|
|
Stats.actor.cpp
|
|
Stats.h
|
|
SystemMonitor.cpp
|
|
SystemMonitor.h
|
|
TDMetric.actor.h
|
|
TDMetric.cpp
|
|
ThreadHelper.actor.h
|
|
ThreadHelper.cpp
|
|
ThreadPrimitives.cpp
|
|
ThreadPrimitives.h
|
|
ThreadSafeQueue.h
|
|
Trace.cpp
|
|
Trace.h
|
|
UnitTest.cpp
|
|
UnitTest.h
|
|
actorcompiler.h
|
|
boost.cpp
|
|
error_definitions.h
|
|
flow.cpp
|
|
flow.h
|
|
genericactors.actor.cpp
|
|
genericactors.actor.h
|
|
network.cpp
|
|
network.h
|
|
serialize.h
|
|
stacktrace.amalgamation.cpp
|
|
stacktrace.h)
|
|
|
|
actor_set(FLOW_BUILD "${FLOW_SRCS};${FLOW_SRCS_ALLOW_ACTOR_WITHOUT_WAIT}")
|
|
add_library(flow STATIC ${FLOW_BUILD})
|
|
actor_compile(flow "${FLOW_SRCS}")
|
|
actor_compile(flow "${FLOW_SRCS_ALLOW_ACTOR_WITHOUT_WAIT}" DISABLE_ACTOR_WITHOUT_WAIT)
|
|
#target_include_directories(flow PRIVATE libeio)
|
|
target_include_directories(flow SYSTEM PUBLIC ${Boost_INCLUDE_DIRS} ${CMAKE_THREAD_LIBS_INIT})
|
|
#set(FLOW_LIBS eio ${CMAKE_DL_LIBS})
|
|
if (NOT APPLE)
|
|
set (FLOW_LIBS ${FLOW_LIBS} rt)
|
|
endif()
|
|
target_link_libraries(flow PRIVATE ${FLOW_LIBS})
|
|
target_link_libraries(flow PUBLIC boost_system fmt)
|