build: Fix CMake and ns3 script bugs, add a test suite and fix formatting
This commit is contained in:
@@ -4,8 +4,12 @@ set(source_files model/csma-star-helper.cc)
|
||||
|
||||
set(header_files model/csma-star-helper.h)
|
||||
|
||||
set(libraries_to_link ${libnetwork} ${libinternet} ${libcsma} ${libpoint-to-point})
|
||||
set(libraries_to_link ${libnetwork} ${libinternet} ${libcsma}
|
||||
${libpoint-to-point}
|
||||
)
|
||||
|
||||
set(test_sources)
|
||||
|
||||
build_lib("${name}" "${source_files}" "${header_files}" "${libraries_to_link}" "${test_sources}")
|
||||
build_lib("${name}" "${source_files}" "${header_files}" "${libraries_to_link}"
|
||||
"${test_sources}"
|
||||
)
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
set(name csma-star)
|
||||
set(source_files ${name}.cc)
|
||||
set(header_files)
|
||||
set(libraries_to_link ${libcsma} ${libcsma-layout} ${libinternet} ${libapplications})
|
||||
build_lib_example("${name}" "${source_files}" "${header_files}" "${libraries_to_link}")
|
||||
set(libraries_to_link ${libcsma} ${libcsma-layout} ${libinternet}
|
||||
${libapplications}
|
||||
)
|
||||
build_lib_example(
|
||||
"${name}" "${source_files}" "${header_files}" "${libraries_to_link}"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user