Skip to content
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

Master dev #71

Merged
merged 6 commits into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/ci_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ jobs:
- name: Clone Repo
shell: bash
working-directory: ${{runner.workspace}}
run: git clone https://github.com/ORNL-Fusion/Stellarator-Tools.git ${{runner.workspace}}/Stellarator-Tools
run: |
git clone https://github.com/ORNL-Fusion/Stellarator-Tools.git ${{runner.workspace}}/Stellarator-Tools
cd ${{runner.workspace}}/Stellarator-Tools
git checkout ${{github.ref_name}}
- name: Create build directory.
working-directory: ${{runner.workspace}}/Stellarator-Tools
run: cmake -E make_directory build
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/ci_test_master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ jobs:
- name: Clone Repo
shell: bash
working-directory: ${{runner.workspace}}
run: git clone https://github.com/ORNL-Fusion/Stellarator-Tools.git ${{runner.workspace}}/Stellarator-Tools
run: |
git clone https://github.com/ORNL-Fusion/Stellarator-Tools.git ${{runner.workspace}}/Stellarator-Tools
cd ${{runner.workspace}}/Stellarator-Tools
git checkout ${{github.ref_name}}
- name: Create build directory.
working-directory: ${{runner.workspace}}/Stellarator-Tools
run: cmake -E make_directory build
Expand Down
47 changes: 20 additions & 27 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ endif ()
#-------------------------------------------------------------------------------
# Define a macro to register new projects.
#-------------------------------------------------------------------------------
macro (register_project name dir url default_tag)
macro (register_project name url default_tag)
string (TOUPPER ${name} dir)

option (BUILD_${dir} "Build ${name} subproject." OFF)
set (BUILD_TAG_${dir} ${default_tag} CACHE STRING "Name of the tag to checkout.")

Expand Down Expand Up @@ -104,7 +106,8 @@ macro (register_project name dir url default_tag)
# Anything after the the tag is assumed to be a project dependency.
set (depends "${ARGN}")
foreach (project IN LISTS depends)
set (BUILD_${project} ON CACHE BOOL "Build ${project}" FORCE)
string (TOUPPER ${project} dep)
set (BUILD_${dep} ON CACHE BOOL "Build ${dep}" FORCE)
endforeach ()
endif ()
endmacro ()
Expand All @@ -120,81 +123,71 @@ endmacro ()
# SUB) #Optional Sub project directories.
#-------------------------------------------------------------------------------

# Register BOOZ_XFORM
register_project(booz_xform
BOOZ_XFORM
${URL_PROTO}github.com${URL_SEP}ORNL-Fusion/BOOZ_XFORM.git
master
LIBSTELL)
libstell)

# Register V3FIT
register_project(v3fit
V3FIT
${URL_PROTO}github.com${URL_SEP}cianciosa/V3FIT.git
master
SIESTA
V3RFUN
LGRID)
siesta
v3rfun
lgrid)

# Register V3RFUN
register_project(v3rfun
V3RFUN
${URL_PROTO}github.com${URL_SEP}ORNL-Fusion/V3RFUN.git
master
LIBSTELL)
libstell)

# Register SIESTA
register_project(siesta
SIESTA
${URL_PROTO}github.com${URL_SEP}ORNL-Fusion/SIESTA.git
master
PARVMEC
BMW)
parvmec
bmw)

# Register LGRID
register_project(lgrid
LGRID
${URL_PROTO}github.com${URL_SEP}ORNL-Fusion/LGRID.git
master
LIBSTELL)
libstell)

# Register SURFACE
register_project(surface
SURFACE
${URL_PROTO}github.com${URL_SEP}ORNL-Fusion/SURFACE.git
master
BMW)
bmw)

# Register BMW
register_project(bmw
BMW
${URL_PROTO}github.com${URL_SEP}ORNL-Fusion/BMW.git
master
LIBSTELL)
libstell)

# Register DESCUR
register_project(descur
DESCUR
${URL_PROTO}github.com${URL_SEP}ORNL-Fusion/DESCUR.git
master
LIBSTELL)
libstell)

# Register PARVMEC
register_project(parvmec
PARVMEC
${URL_PROTO}github.com${URL_SEP}ORNL-Fusion/PARVMEC.git
master
MAKEGRID
LIBSTELL)
makegrid
libstell)

# Register MAKEGRID
register_project(makegrid
MAKEGRID
${URL_PROTO}github.com${URL_SEP}ORNL-Fusion/MAKEGRID.git
master
LIBSTELL)
libstell)

# Register LIBSTELL
register_project(libstell
LIBSTELL
${URL_PROTO}github.com${URL_SEP}ORNL-Fusion/LIBSTELL.git
master)