2021-12-10 02:13:43 +00:00
|
|
|
if(${ENABLE_TESTS} AND (test IN_LIST libs_to_build))
|
2021-11-10 22:28:44 -03:00
|
|
|
add_executable(test-runner $<TARGET_OBJECTS:${libtest}> test-runner.cc)
|
|
|
|
|
|
|
|
|
|
if(${NS3_MONOLIB})
|
|
|
|
|
target_link_libraries(
|
2021-12-05 21:53:49 +00:00
|
|
|
test-runner ${LIB_AS_NEEDED_PRE} ${ns3-libs-tests} ${LIB_AS_NEEDED_POST}
|
|
|
|
|
${lib-ns3-monolib} ${ns3-contrib-libs}
|
2021-11-10 22:28:44 -03:00
|
|
|
)
|
|
|
|
|
else()
|
|
|
|
|
target_link_libraries(
|
2021-12-05 21:53:49 +00:00
|
|
|
test-runner ${LIB_AS_NEEDED_PRE} ${ns3-libs-tests} ${LIB_AS_NEEDED_POST}
|
|
|
|
|
${ns3-libs} ${ns3-contrib-libs}
|
2021-11-10 22:28:44 -03:00
|
|
|
)
|
|
|
|
|
endif()
|
2021-12-05 21:53:49 +00:00
|
|
|
set_runtime_outputdirectory(
|
|
|
|
|
test-runner ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/utils/ ""
|
|
|
|
|
)
|
|
|
|
|
add_dependencies(all-test-targets test-runner)
|
|
|
|
|
endif()
|
2021-11-10 22:28:44 -03:00
|
|
|
|
2021-12-05 21:53:49 +00:00
|
|
|
add_executable(bench-simulator bench-simulator.cc)
|
|
|
|
|
target_link_libraries(bench-simulator ${libcore})
|
|
|
|
|
set_runtime_outputdirectory(
|
|
|
|
|
bench-simulator ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/utils/ ""
|
|
|
|
|
)
|
2021-11-10 22:28:44 -03:00
|
|
|
|
2021-12-17 15:16:04 -03:00
|
|
|
if(network IN_LIST libs_to_build)
|
2021-12-16 02:29:59 +00:00
|
|
|
add_executable(bench-packets bench-packets.cc)
|
|
|
|
|
target_link_libraries(bench-packets ${libnetwork})
|
|
|
|
|
set_runtime_outputdirectory(
|
|
|
|
|
bench-packets ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/utils/ ""
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
add_executable(print-introspected-doxygen print-introspected-doxygen.cc)
|
2022-01-08 23:09:57 -03:00
|
|
|
target_link_libraries(
|
|
|
|
|
print-introspected-doxygen
|
|
|
|
|
PRIVATE ${LIB_AS_NEEDED_PRE} ${ns3-libs} ${ns3-contrib-libs}
|
|
|
|
|
${LIB_AS_NEEDED_POST}
|
|
|
|
|
)
|
2021-12-16 02:29:59 +00:00
|
|
|
set_runtime_outputdirectory(
|
2021-12-17 15:16:04 -03:00
|
|
|
print-introspected-doxygen ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/utils/ ""
|
2021-12-16 02:29:59 +00:00
|
|
|
)
|
|
|
|
|
endif()
|
2022-02-07 11:04:53 -03:00
|
|
|
|
|
|
|
|
if(core IN_LIST ns3-all-enabled-modules)
|
|
|
|
|
add_executable(perf-io perf/perf-io.cc)
|
|
|
|
|
target_link_libraries(perf-io PRIVATE ${libcore})
|
|
|
|
|
set_runtime_outputdirectory(perf-io ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/utils/perf/ "")
|
|
|
|
|
endif()
|