FLAMEGPU / FLAMEGPU2

FLAME GPU 2 is a GPU accelerated agent based modelling framework for CUDA C++ and Python
https://flamegpu.com
MIT License
106 stars 21 forks source link

CMake install project #260

Open ptheywood opened 4 years ago

ptheywood commented 4 years ago

Now with extra environment variables, and rtc/swig/python implementation having an install step makes sense.

This would need to set environment variables, copy files to appropriate locations etc.

Care must be taken:

This may require an extra cmake configuration flag to support local builds, but ideally it should be impliciy (look in built path before system?).

This should also add alias targets for FLAMEGPU::flamegpu etc, although this may be achieved implicitly by generating a config file.

This also requires improving how RTC is made aware of include paths, i.e. GLM via GLM_PATH passed in as an absolute path at build time is unlikely to be portable with installation.

ptheywood commented 3 years ago

Useful references:

https://cmake.org/cmake/help/git-stage/guide/importing-exporting/index.html#exporting-targets

https://cmake.org/cmake/help/v3.18/manual/cmake-packages.7.html#creating-relocatable-packages

mondus commented 2 years ago

Good example from another RSE Sheffield project at CERN: https://gitlab.cern.ch/VecGeom/VecGeom