-
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.
- Loading branch information
Showing
3 changed files
with
30 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
project(server_example) | ||
|
||
file(GLOB_RECURSE HEADER_FILES "*.h") | ||
file(GLOB_RECURSE SOURCE_FILES "*.cpp") | ||
|
||
add_executable( | ||
example | ||
${HEADER_FILES} | ||
${SOURCE_FILES} | ||
) | ||
|
||
target_link_libraries(example PRIVATE shared) | ||
target_link_libraries(example PRIVATE server) | ||
target_link_libraries(example PRIVATE asio) |
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,14 @@ | ||
// Purpose: Source file for server example. | ||
|
||
#include <iostream> | ||
|
||
#include <asio.hpp> | ||
#include <server.h> | ||
|
||
int main() | ||
{ | ||
asio::io_context context{}; | ||
pine::server server{ context }; | ||
|
||
server.listen(); | ||
} |