Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating new scenarios in Artery #157

Open
gsohan opened this issue Feb 9, 2021 · 1 comment
Open

Creating new scenarios in Artery #157

gsohan opened this issue Feb 9, 2021 · 1 comment

Comments

@gsohan
Copy link

gsohan commented Feb 9, 2021

Hello,

I am facing issues while creating new scenarios and running in Artery. I can run the given scenarios in Artery without any issue. I created a new scenario in Artery and while running I faced a lot of issues (make file issue). I didnot find any documentation stating what changes I need to do in artery-build directory to run new scenarios. Can you please provide me information on how to modify cmake files in artery-build to run new scenarios in artery. Your suggestions will be very helpful.

Best

@riebl
Copy link
Owner

riebl commented Feb 9, 2021

You have basically two options:

  1. Add your run configuration directly to scenarios/CMakeLists.txt. Youn can refer to line 38 add_opp_run(car2car-grid ...) for an example.
  2. Create a separate CMakeLists.txt for your scenario directory and add it via add_subdirectory. Your separate CMakeLists.txt then incorporates the add_opp_run calls. I recommend this option if you need more than a single add_opp_run line.

add_opp_run is adding the run and debug targets such as run_example. In the simplest case, add_opp_run(yours) provides run_yours which executes the omnetpp.ini configuration located in the same directory as the CMakeLists.txt. If the omnetpp.ini file is located somewhere else you can switch to that directory by passing the WORKING_DIRECTORY argument to add_opp_run.

I agree with you that those procedures need to be documented properly. Unfortunately, I have no time to do this right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants