-
Notifications
You must be signed in to change notification settings - Fork 113
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
cmake: export targets, allow to build models via CMake #2746
Draft
matz-e
wants to merge
9
commits into
master
Choose a base branch
from
export-cmake
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Commits on May 17, 2024
-
cmake: export targets, allow to build models via CMake
This PR aims to allow dependent projects to build their models via CMake rather than a combination of shell scripts and Makefiles. In the long term, this may help facilitate building natively on Windows. To try: ``` git clone -b imported-main https://github.com/BlueBrain/neurodamus-models.git cd neurodamus-models ``` Create a `CMakeLists.txt` with contents like: ```cmake cmake_minimum_required(VERSION 3.28) project(newrodamus) find_package(neuron REQUIRED) create_libnrnmech(MOD_FILES neocortex/mod/v6/CaDynamics_DC0.mod neocortex/mod/v6/Ca_HVA2.mod neocortex/mod/v6/Ca_LVAst.mod neocortex/mod/v6/DetAMPANMDA.mod neocortex/mod/v6/DetGABAAB.mod neocortex/mod/v6/GluSynapse.mod neocortex/mod/v6/Ih.mod neocortex/mod/v6/K_Pst.mod neocortex/mod/v6/K_Tst.mod neocortex/mod/v6/KdShu2007.mod neocortex/mod/v6/NaTg.mod neocortex/mod/v6/Nap_Et2.mod neocortex/mod/v6/ProbAMPANMDA_EMS.mod neocortex/mod/v6/ProbGABAAB_EMS.mod neocortex/mod/v6/SK_E2.mod neocortex/mod/v6/SKv3_1.mod neocortex/mod/v6/StochKv3.mod neocortex/mod/v6/TTXDynamicsSwitch.mod neocortex/mod/v6/VecStim.mod neocortex/mod/v6/gap.mod neocortex/mod/v6/netstim_inhpoisson.mod ) ``` Then build and install: ``` cmake -B build -S . -GNinja -DCMAKE_INSTALL_PREFIX=x86_64 cmake --build build cmake --install build ``` To be continued‥
Configuration menu - View commit details
-
Copy full SHA for c210d77 - Browse repository at this point
Copy the full SHA c210d77View commit details -
Configuration menu - View commit details
-
Copy full SHA for df64a62 - Browse repository at this point
Copy the full SHA df64a62View commit details -
Configuration menu - View commit details
-
Copy full SHA for ed29f50 - Browse repository at this point
Copy the full SHA ed29f50View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e68179 - Browse repository at this point
Copy the full SHA 8e68179View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9503627 - Browse repository at this point
Copy the full SHA 9503627View commit details
Commits on May 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1865875 - Browse repository at this point
Copy the full SHA 1865875View commit details
Commits on May 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5eccc1f - Browse repository at this point
Copy the full SHA 5eccc1fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ac0537 - Browse repository at this point
Copy the full SHA 9ac0537View commit details
Commits on May 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 27e37cf - Browse repository at this point
Copy the full SHA 27e37cfView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.