denniskb / spice2

The Spice SNN Simulator
Other
6 stars 0 forks source link

Make sure that spice can be used by another project via add_subdirectory() #30

Open denniskb opened 2 years ago

denniskb commented 2 years ago

This requires the following steps:

  1. Create a CMake-based C++ project
  2. Add Spice as a sub folder, either manually by copy-pasting it (after obtaining it thru cloning or downloading the zipped version of this repository) or by adding it as a git submodule.
  3. Inside the CMakeLists.txt, use add_subdirectory() to add Spice and link against it using target_link_libraries().
  4. To make sure everything works, you should copy-paste one of Spice's samples into your own application and run it.