-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loop file names in examples' CMakeLists.txt (#175)
- Loading branch information
1 parent
46dab24
commit ae219bb
Showing
1 changed file
with
19 additions
and
53 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 |
---|---|---|
@@ -1,55 +1,21 @@ | ||
build_lib_example( | ||
NAME simple-network-example | ||
SOURCE_FILES simple-network-example.cc | ||
LIBRARIES_TO_LINK ${libcore} | ||
${liblorawan} | ||
set(base_examples | ||
simple-network-example | ||
network-server-example | ||
complete-network-example | ||
adr-example | ||
lorawan-energy-model-example | ||
aloha-throughput | ||
parallel-reception-example | ||
frame-counter-update | ||
) | ||
|
||
build_lib_example( | ||
NAME network-server-example | ||
SOURCE_FILES network-server-example.cc | ||
LIBRARIES_TO_LINK ${libcore} | ||
${liblorawan} | ||
) | ||
|
||
build_lib_example( | ||
NAME complete-network-example | ||
SOURCE_FILES complete-network-example.cc | ||
LIBRARIES_TO_LINK ${libcore} | ||
${liblorawan} | ||
) | ||
|
||
build_lib_example( | ||
NAME adr-example | ||
SOURCE_FILES adr-example.cc | ||
LIBRARIES_TO_LINK ${libcore} | ||
${liblorawan} | ||
) | ||
|
||
build_lib_example( | ||
NAME lorawan-energy-model-example | ||
SOURCE_FILES lorawan-energy-model-example.cc | ||
LIBRARIES_TO_LINK ${libcore} | ||
${liblorawan} | ||
) | ||
|
||
build_lib_example( | ||
NAME aloha-throughput | ||
SOURCE_FILES aloha-throughput.cc | ||
LIBRARIES_TO_LINK ${libcore} | ||
${liblorawan} | ||
) | ||
|
||
build_lib_example( | ||
NAME parallel-reception-example | ||
SOURCE_FILES parallel-reception-example.cc | ||
LIBRARIES_TO_LINK ${libcore} | ||
${liblorawan} | ||
) | ||
|
||
build_lib_example( | ||
NAME frame-counter-update | ||
SOURCE_FILES frame-counter-update.cc | ||
LIBRARIES_TO_LINK ${libcore} | ||
${liblorawan} | ||
) | ||
foreach( | ||
example | ||
${base_examples} | ||
) | ||
build_lib_example( | ||
NAME ${example} | ||
SOURCE_FILES ${example}.cc | ||
LIBRARIES_TO_LINK ${liblorawan} | ||
) | ||
endforeach() |