Includes:
- refactor build_lib and build_lib_example macros
- unify src and contrib macros
- replace macro with function not to leak definitions
- parse list of arguments
- different cmake-format file for modules to list one item per line
24 lines
457 B
CMake
24 lines
457 B
CMake
build_example(
|
|
NAME energy-model-example
|
|
SOURCE_FILES energy-model-example.cc
|
|
LIBRARIES_TO_LINK
|
|
${libcore}
|
|
${libmobility}
|
|
${libwifi}
|
|
${libenergy}
|
|
${libinternet}
|
|
${libconfig-store}
|
|
)
|
|
|
|
build_example(
|
|
NAME energy-model-with-harvesting-example
|
|
SOURCE_FILES energy-model-with-harvesting-example.cc
|
|
LIBRARIES_TO_LINK
|
|
${libcore}
|
|
${libmobility}
|
|
${libwifi}
|
|
${libenergy}
|
|
${libinternet}
|
|
${libconfig-store}
|
|
)
|