forked from nanomsg/nanomsg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes nanomsg#975 Add CMakeLists for demos
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# | ||
# Demonstration CMakeLists.txt for nanomsg demos. | ||
# | ||
# This file shows how one might use nanomsg from a another project | ||
# that is also CMake-driven. | ||
# | ||
# Thanks for the idea goes to @maddouri. | ||
# | ||
cmake_minimum_required (VERSION 2.8.7) | ||
|
||
project(nanomsg-demo) | ||
|
||
# Call this from your own project's makefile. | ||
find_package(nanomsg CONFIG REQUIRED) | ||
|
||
add_executable(async_demo async_demo.c) | ||
target_link_libraries(async_demo nanomsg) | ||
|
||
add_executable(device_demo device_demo.c) | ||
target_link_libraries(device_demo nanomsg) | ||
|
||
add_executable(pthread_demo pthread_demo.c) | ||
target_link_libraries(pthread_demo nanomsg) | ||
|
||
add_executable(pubsub_demo pubsub_demo.c) | ||
target_link_libraries(pubsub_demo nanomsg) | ||
|
||
add_executable(rpc_demo rpc_demo.c) | ||
target_link_libraries(rpc_demo nanomsg) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters