forked from chriskohlhoff/asio
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install cmake config package to <prefix>/lib Install files less verbose Add examples to cmake project Use debug postfix for install asio library
- Loading branch information
1 parent
0a50406
commit 7fcf4a4
Showing
9 changed files
with
74 additions
and
15 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
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
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
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
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
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
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
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,19 @@ | ||
cmake_minimum_required(VERSION 3.25...3.31) | ||
|
||
project(asio_examples LANGUAGES CXX) | ||
|
||
if(PROJECT_IS_TOP_LEVEL) | ||
find_package(asio 1.32.0.1 EXACT REQUIRED) | ||
enable_testing() | ||
endif() | ||
|
||
set(ALL_EXAMPLES callback_wrapper) | ||
|
||
message(STATUS "Examples to be built: ${ALL_EXAMPLES}") | ||
|
||
foreach(example ${ALL_EXAMPLES}) | ||
add_executable(${example}) | ||
target_sources(${example} PRIVATE cpp20/operations/${example}.cpp) | ||
target_link_libraries(${example} asio::asio_header) | ||
add_test(NAME ${example} COMMAND echo Test | ${example}) | ||
endforeach() |
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