-
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
1 parent
24691a2
commit 8b2a78a
Showing
3 changed files
with
23 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Copyright (c) 2024 by Cliff Green | ||
# | ||
# Distributed under the Boost Software License, Version 1.0. | ||
# (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) | ||
|
||
cmake_minimum_required ( VERSION 3.14 FATAL_ERROR ) | ||
|
||
# create project | ||
project ( periodic_timer_example LANGUAGES CXX ) | ||
|
||
# add executable | ||
add_executable ( periodic_timer_example periodic_timer_example.cpp ) | ||
target_compile_features ( periodic_timer_example PRIVATE cxx_std_20 ) | ||
|
||
set ( CMAKE_THREAD_PREFER_PTHREAD TRUE ) | ||
set ( THREADS_PREFER_PTHREAD_FLAG TRUE ) | ||
find_package ( Threads REQUIRED ) | ||
|
||
# link dependencies | ||
target_link_libraries ( periodic_timer_example PRIVATE | ||
Threads::Threads asio periodic_timer ) | ||
|
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