Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arbor
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
arbor-sim
arbor
Commits
ddc8537d
Commit
ddc8537d
authored
8 years ago
by
Sam Yates
Browse files
Options
Downloads
Patches
Plain Diff
Configure-time test for julia
parent
07d7e2b1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+9
-0
9 additions, 0 deletions
CMakeLists.txt
validation/ref/numeric/CMakeLists.txt
+10
-8
10 additions, 8 deletions
validation/ref/numeric/CMakeLists.txt
with
19 additions
and
8 deletions
CMakeLists.txt
+
9
−
0
View file @
ddc8537d
...
...
@@ -96,6 +96,15 @@ set(VALIDATION_DATA_DIR "${CMAKE_SOURCE_DIR}/validation/data" CACHE PATH "locati
# Whether to build validation data at all
set
(
BUILD_VALIDATION_DATA ON CACHE BOOL
"generate validation data"
)
# Whether to attempt to use julia to build validation data
find_program
(
JULIA_BIN julia
)
if
(
JULIA_BIN STREQUAL
"JULIA_BIN-NOTFOUND"
)
message
(
STATUS
"julia not found; will not automatically build validation data sets from julia scripts"
)
set
(
BUILD_JULIA_VALIDATION_DATA FALSE
)
else
()
set
(
BUILD_JULIA_VALIDATION_DATA TRUE
)
endif
()
# Whether to attempt to use nrniv to build validation data
# (if we find nrniv, do)
find_program
(
NRNIV_BIN nrniv
)
...
...
This diff is collapsed.
Click to expand it.
validation/ref/numeric/CMakeLists.txt
+
10
−
8
View file @
ddc8537d
# note: function add_validation_data defined in validation/CMakeLists.txt
add_validation_data
(
OUTPUT numeric_soma.json
DEPENDS numeric_soma.jl HHChannels.jl
COMMAND julia numeric_soma.jl
)
if
(
BUILD_JULIA_VALIDATION_DATA
)
add_validation_data
(
OUTPUT numeric_soma.json
DEPENDS numeric_soma.jl HHChannels.jl
COMMAND
${
JULIA_BIN
}
numeric_soma.jl
)
add_validation_data
(
OUTPUT numeric_rallpack1.json
DEPENDS numeric_rallpack1.jl PassiveCable.jl
COMMAND julia numeric_rallpack1.jl
)
add_validation_data
(
OUTPUT numeric_rallpack1.json
DEPENDS numeric_rallpack1.jl PassiveCable.jl
COMMAND
${
JULIA_BIN
}
numeric_rallpack1.jl
)
endif
()
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment