From a419a955ea12bdca52eb94851f8b569cbbb59611 Mon Sep 17 00:00:00 2001 From: Steven Noonan Date: Tue, 15 Jan 2019 13:21:50 -0800 Subject: [PATCH] CMake: add example_chat target to build Signed-off-by: Steven Noonan --- CMakeLists.txt | 1 + examples/CMakeLists.txt | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 examples/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 0a11cf4..afd81fe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,5 +11,6 @@ print_default_msvc_flags() option(Protobuf_USE_STATIC_LIBS "Build with a static Protobuf library" OFF) option(USE_LIBSODIUM "Use libsodium for ed25519/curve25519" ON) +add_subdirectory(examples) add_subdirectory(src) add_subdirectory(tests) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt new file mode 100644 index 0000000..0d98074 --- /dev/null +++ b/examples/CMakeLists.txt @@ -0,0 +1,4 @@ +add_executable( + example_chat + example_chat.cpp) +target_link_libraries(example_chat GameNetworkingSockets)