drogon/examples/CMakeLists.txt

19 lines
617 B
CMake
Raw Normal View History

link_libraries(${PROJECT_NAME})
set(benchmark_sources benchmark/BenchmarkCtrl.cc benchmark/JsonCtrl.cc
benchmark/main.cc)
2018-07-24 09:24:23 +00:00
2021-05-27 12:09:57 +00:00
add_executable(client client_example/main.cc)
add_executable(websocket_client websocket_client/WebSocketClient.cc)
add_executable(benchmark ${benchmark_sources})
set(example_targets
benchmark
2021-05-27 12:09:57 +00:00
client
websocket_client)
set_property(TARGET ${example_targets}
PROPERTY CXX_STANDARD ${DROGON_CXX_STANDARD})
set_property(TARGET ${example_targets} PROPERTY CXX_STANDARD_REQUIRED ON)
set_property(TARGET ${example_targets} PROPERTY CXX_EXTENSIONS OFF)