Files
spark/src/server/sparkd/CMakeLists.txt
T
2017-09-07 16:38:30 -04:00

95 lines
2.2 KiB
CMake

cmake_minimum_required(VERSION 3.5)
project(sparkd)
# proto sources
set (Protos
)
include(${CMAKE_SOURCE_DIR}/tools/Protobuf.cmake)
protobuf_generate_cpp( Proto_Srcs PROTO_HDRS ${Protos} )
# cpp sources
set (Sparkd_Sources
main.cpp
# fabric
fabric/Actor.cpp
fabric/Executor.cpp
fabric/Domain.cpp
fabric/IActor.cpp
fabric/IDomain.cpp
fabric/TopicDirectory.cpp
fabric/tests/fabric_test.cpp
fabric/tests/baseline_perf_fabric_test.cpp
# jetfix
jetfix/codec/FIXArray.cpp
jetfix/common/OutFIX.cpp
jetfix/connection/AsyncReader.cpp
jetfix/connection/IConnection.cpp
jetfix/connection/SocketConnection.cpp
jetfix/gateway/CoreGateway.cpp
jetfix/gateway/JetFIXGateway.cpp
jetfix/gateway/Session.cpp
jetfix/store/FIXFileStore.cpp
jetfix/store/session_name.cpp
jetfix/tests/async_reader_tests.cpp
jetfix/tests/decoding_tests.cpp
jetfix/tests/fix_encoding_stream_tests.cpp
jetfix/tests/fix_fragment_tests.cpp
jetfix/tests/jetfix_performance_tests.cpp
jetfix/tests/store_tests.cpp
# persistence
persistence/PersistenceServiceServer.cpp
persistence/tests/PersistenceServiceTests.cpp
persistence/IStore.cpp
persistence/SqliteStore.cpp
# testing utilities
testing/catch_test_runner.cpp
# setup
setup/BootstrapActor.cpp
setup/ServiceHostActor.cpp
# user
user/UserServiceServer.cpp
# orderman
order_man/OrderMan.cpp
order_man/IOrderObserver.cpp
order_man/WorkingOrder.cpp
order_man/IFIXGateway.cpp
# algoman
algo_man/AlgoManServiceServer.cpp
# md, mdp3 onixs platform
# md/platforms/mdp3_onixs/MDP3Listener.cpp
# md/platforms/mdp3_onixs/MDP3Main.cpp
# md/platforms/mdp3_onixs/MDP3Utils.cpp
# md/platforms/mdp3_onixs/tests/mdp3_tests.cpp
md/run_md.cpp
)
# sparkd
add_executable(sparkd ${Sparkd_Sources} ${Proto_Srcs})
#include paths
target_include_directories( sparkd PUBLIC ${CMAKE_SOURCE_DIR}/src ${CMAKE_BINARY_DIR}/src)
# linking
target_link_libraries( sparkd
spark_lib
tbb
double-conversion
pugixml
# -lOnixS.CmeMdp3HandlerCpp
-static-libgcc
-static-libstdc++
-pthread)
# copy test data
file(COPY jetfix/tests/sample_fix.dat DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/test_data)