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
76 lines
1.2 KiB
CMake
76 lines
1.2 KiB
CMake
build_example(
|
|
NAME hello-simulator
|
|
SOURCE_FILES hello-simulator.cc
|
|
LIBRARIES_TO_LINK ${libcore}
|
|
)
|
|
|
|
build_example(
|
|
NAME first
|
|
SOURCE_FILES first.cc
|
|
LIBRARIES_TO_LINK
|
|
${libcore}
|
|
${libpoint-to-point}
|
|
${libinternet}
|
|
${libapplications}
|
|
)
|
|
|
|
build_example(
|
|
NAME second
|
|
SOURCE_FILES second.cc
|
|
LIBRARIES_TO_LINK
|
|
${libcore}
|
|
${libpoint-to-point}
|
|
${libcsma}
|
|
${libinternet}
|
|
${libapplications}
|
|
)
|
|
|
|
build_example(
|
|
NAME third
|
|
SOURCE_FILES third.cc
|
|
LIBRARIES_TO_LINK
|
|
${libcore}
|
|
${libpoint-to-point}
|
|
${libcsma}
|
|
${libwifi}
|
|
${libinternet}
|
|
${libapplications}
|
|
)
|
|
|
|
build_example(
|
|
NAME fourth
|
|
SOURCE_FILES fourth.cc
|
|
LIBRARIES_TO_LINK ${libcore}
|
|
)
|
|
|
|
build_example(
|
|
NAME fifth
|
|
SOURCE_FILES fifth.cc
|
|
LIBRARIES_TO_LINK
|
|
${libcore}
|
|
${libpoint-to-point}
|
|
${libinternet}
|
|
${libapplications}
|
|
)
|
|
|
|
build_example(
|
|
NAME sixth
|
|
SOURCE_FILES sixth.cc
|
|
LIBRARIES_TO_LINK
|
|
${libcore}
|
|
${libpoint-to-point}
|
|
${libinternet}
|
|
${libapplications}
|
|
)
|
|
|
|
build_example(
|
|
NAME seventh
|
|
SOURCE_FILES seventh.cc
|
|
LIBRARIES_TO_LINK
|
|
${libcore}
|
|
${libstats}
|
|
${libpoint-to-point}
|
|
${libinternet}
|
|
${libapplications}
|
|
)
|