denniskb / spice2

The Spice SNN Simulator
Other
6 stars 0 forks source link

CMake installation #22

Open denniskb opened 2 years ago

denniskb commented 2 years ago

Configure cmake for installation of libraries.

denniskb commented 2 years ago

Should also add support for find_package(). @nkyriazis do you have experience with this? Could you perhaps point me to any resources?

nkyriazis commented 2 years ago

It's been some time since I've used CMake. The last I remember is that CMake can generate configuration files for you library. When included through cmake you either have the user include the cmake folder. If the user builds spice then the discovery from a new downstream CMake project should be automatic. You can make a simple FindSpice2.cmake file, too, based on these configuration files, or even without.