generated from miroscic/plugin_cpp
-
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.
feat: Add plugin targets to CMakeLists.txt
- Loading branch information
Showing
2 changed files
with
43 additions
and
12 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,35 @@ | ||
# ____ _ _ _ _ | ||
# | _ \| |_ _ __ _(_)_ __ | |_ __ _ _ __ __ _ ___| |_ ___ | ||
# | |_) | | | | |/ _` | | '_ \ | __/ _` | '__/ _` |/ _ \ __/ __| | ||
# | __/| | |_| | (_| | | | | | | || (_| | | | (_| | __/ |_\__ \ | ||
# |_| |_|\__,_|\__, |_|_| |_| \__\__,_|_| \__, |\___|\__|___/ | ||
# |___/ |___/ | ||
|
||
# Add plugin targets here | ||
# Use the syntax: | ||
# add_plugin(<plugin_name> [SRCS <source_files>] [LIBS <libraries>]) | ||
# If the plugin has only one source file, that is the plugin_name.cpp file, | ||
# you can omit the SRCS argument: | ||
# add_plugin(plugin_name) | ||
# Use the SRCS argument to specify additional source files. | ||
# Use the LIBS argument to specify additional libraries that the plugin | ||
# depends on. | ||
|
||
# PLUGINS ###################################################################### | ||
# These plugins are built unconditionally. | ||
|
||
add_plugin(to_console) | ||
add_plugin(random) | ||
add_plugin(running_avg) | ||
|
||
|
||
# CONDITIONAL PLUGINS ########################################################## | ||
# These plugins are only built if the required dependencies are available. | ||
|
||
if(NOT MADS_NO_DEPS_ONLY) | ||
if(NOT WIN32) | ||
# Serial port plugin is not supported on Windows | ||
add_plugin(serial_reader SRCS ${SRC_DIR}/serialport.cpp) | ||
endif() | ||
add_plugin(mqtt LIBS mosquittopp) | ||
endif() |