Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-dev] cmake, linux and install
  • From: Michael Behrisch <oss@xxxxxxxxxxx>
  • Date: Wed, 30 May 2018 23:37:36 +0200
  • Autocrypt: addr=oss@xxxxxxxxxxx; prefer-encrypt=mutual; keydata= xsDiBFLSvucRBACGsasS4GeIWs1CFNTOYmp3ScQ2ZTJLJWQxhPliwtHTzLsErYu9Y7e8qDov iHFviYyaNuceUNoACm1e4MT4eu0DmM2Wk3y/jjD6hfm7L0EZNPxQhj+CJf2oZAm2ezCe7/si xZ2d7TCO8yWavOGbF0EVi/ZDIJqVgupu6WBpv/NCewCg65HQiS1wm+1w1MdFYxKCmXzbv08D /iWXX3tzabbCrLlUum8hBgBpJEHRtlic2uaGsKm8Fize4tfLZkTBbTYLYXfcx2Oq9+lINPTW h9jnbCjAjErRWLTjNTQjel0JnDryCnqabub/R3wScR/EHRDBeS9L6YRj0xdVd2qIaArtSYRR auKPNc4M2qZNEFSM37cXC7avhpdeA/99oJf4qyVly4RxHmekAmj9UJjRx17x9xX8t9uzUuSt AeTh+kQ3o5jK7veU6/F/+pPyi96EOzym9BJA8pgXC8hLWNjOajI10filkdQ26QsfHOpUdPSZ 4Duyw9Ayj8loagEnnAONmU/xE0QlyVBANIut0W+SNqPScYXfnBbVOaG3Hc0mTWljaGFlbCBC ZWhyaXNjaCA8bWljaGFlbEBiZWhyaXNjaC5kZT7CZgQTEQIAJgIbIwcLCQgHAwIBBhUIAgkK CwQWAgMBAh4BAheABQJS0sKXAhkBAAoJEDwQ/pbRcKYp+SEAoMJSvUzfk3u6EA1nMlMVSk85 nHhoAJ0VE5xLi2ni8j9wdx+uga7XGLtjhs7ATQRS0r7nEAQAkQLdzlu3i/Ddziadm2c/60ZX bcY3FYhHHfsKUHC/QING+lu3uHG0nPaElPTAHTr8UdFMbmpXkRs9+1v1RAvHBWW95BbUXZeu oBsoCm+4Jdktu+PeVxGKhOwQRdR30A4y/bIeRn7iMzkZKoQh0lE3ZEbs0T8TUHBGBUqwEhIv Y0MAAwUD/RXrkwtUiR61/bT96eMaxGtO15AqvlM8DYQ3Xs6EH09QlGzr/i0+usi01wGoh13p YGjzEDtTqO+lNs9AtS7nZAHA3cCWzLmdEXw6EY7IH4X7zOpKoj+JtLNjUd2Nzvhyl48LT217 g8GmCACL6Wo/G+fZ+30Mny+gWbDtEGXNIv7fwkkEGBECAAkFAlLSvucCGwwACgkQPBD+ltFw pimNZQCgnN5oibnjl7r2SVle6hgUMcckfN4AoMYRjy/Tqz9tq8TSUqNcOTjlMR7D
  • Delivered-to: sumo-dev@xxxxxxxxxxx
  • List-archive: <https://dev.eclipse.org/mailman/private/sumo-dev>
  • List-help: <mailto:sumo-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://dev.eclipse.org/mailman/listinfo/sumo-dev>, <mailto:sumo-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://dev.eclipse.org/mailman/options/sumo-dev>, <mailto:sumo-dev-request@eclipse.org?subject=unsubscribe>
  • Openpgp: preference=signencrypt
  • User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

Dear Harald,
I added the install targets for the binaries, I am not sure about the
tools though. My packaging installs them to <prefix>/lib/sumo, also
<prefix>/share/sumo could be a good place, but <prefix>/sumo seems weird.

Best regards,
Michael

Am 22.05.2018 um 08:36 schrieb Harald Schaefer:
> Dear all,
> 
> here is a proposal for modified CMakeLists.txt files to allow make install.
> 
> harald@nyc> find . -name 'CMakeLists.txt'|xargs egrep -n "^install"
> ./CMakeLists.txt:239:install(DIRECTORY tools/ DESTINATION sumo/tools)
> ./src/activitygen/CMakeLists.txt:20:install(TARGETS activitygen RUNTIME
> DESTINATION bin)
> ./src/CMakeLists.txt:93:install(TARGETS sumo sumo-gui netconvert
> od2trips RUNTIME DESTINATION bin)
> ./src/dfrouter/CMakeLists.txt:28:install(TARGETS dfrouter RUNTIME
> DESTINATION bin)
> ./src/duarouter/CMakeLists.txt:12:install(TARGETS duarouter RUNTIME
> DESTINATION bin)
> ./src/jtrrouter/CMakeLists.txt:18:install(TARGETS jtrrouter RUNTIME
> DESTINATION bin)
> ./src/marouter/CMakeLists.txt:18:install(TARGETS marouter RUNTIME
> DESTINATION bin)
> ./src/netedit/CMakeLists.txt:36:install(TARGETS netedit RUNTIME
> DESTINATION bin)
> ./src/netgen/CMakeLists.txt:18:install(TARGETS netgenerate RUNTIME
> DESTINATION bin)
> ./src/polyconvert/CMakeLists.txt:31:install(TARGETS polyconvert RUNTIME
> DESTINATION bin)
> ./src/tools/CMakeLists.txt:14:install(TARGETS emissionsDrivingCycle
> emissionsMap RUNTIME DESTINATION bin)
> ./src/traci_testclient/CMakeLists.txt:10:install(TARGETS TraCITestClient
> RUNTIME DESTINATION bin)
> 
> You might think about installing also the doc dir or the man pages.
> 
> With this changes the 3 commands to build SUMO are
> 
> cmake ../..
> 
> make
> 
> sudo make install
> 
> The rational for installing on Linux is for me:
> 
> The source tarball comes in directories with names like sumo-svn,
> sumo-git, sumo_master or sumo_0.32.0.
> 
> Using the install features all sumo runtime files are always in the same
> directory, so I do not have to adopt SUMO_HOME or PATH variables and I
> know: I'm using the version, I installed last.
> 
> Greetings Harald
> 
> 
> 
> _______________________________________________
> sumo-dev mailing list
> sumo-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/sumo-dev
> 


Attachment: signature.asc
Description: OpenPGP digital signature


Back to the top