-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7de31c5
commit fa60358
Showing
15 changed files
with
128 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,4 @@ | ||
# These are directories used by IDEs for storing settings | ||
.idea/ | ||
.vscode/ | ||
|
||
# These are common build directory names | ||
build*/ | ||
docs/build | ||
docs/source/_build | ||
docs/doxyoutput | ||
docs/source/api | ||
*-build-*/ | ||
_build/ | ||
Debug/ | ||
Release/ | ||
|
||
# Users commonly store their specific CMake settings in a toolchain file | ||
toolchain.cmake | ||
|
||
# Users often install under the root directory | ||
install/ | ||
*.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"project_name": "New Plugin", | ||
"project_slug": "{{ cookiecutter.project_name.lower().replace(' ', '_') }}" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# These are directories used by IDEs for storing settings | ||
.idea/ | ||
.vscode/ | ||
|
||
# These are common build directory names | ||
build*/ | ||
docs/build | ||
docs/source/_build | ||
docs/doxyoutput | ||
docs/source/api | ||
*-build-*/ | ||
_build/ | ||
Debug/ | ||
Release/ | ||
|
||
# Users commonly store their specific CMake settings in a toolchain file | ||
toolchain.cmake | ||
|
||
# Users often install under the root directory | ||
install/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{{ cookiecutter.project_name }} | ||
=============== | ||
|
||
Describe the new plugin here. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
set(BUILD_TESTING ON) | ||
set(BUILD_SHARED_LIBS ON) | ||
set(CMAKE_POSITION_INDEPENDENT_CODE TRUE) | ||
set(NWX_MODULE_DIRECTORY ./install/python) |
3 changes: 3 additions & 0 deletions
3
...oject_slug }}/include/{{ cookiecutter.project_slug }}/{{ cookiecutter.project_slug }}.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#pragma once | ||
|
||
#include "{{ cookiecutter.project_slug }}_mm.hpp" |
11 changes: 11 additions & 0 deletions
11
...ct_slug }}/include/{{ cookiecutter.project_slug }}/{{ cookiecutter.project_slug }}_mm.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#pragma once | ||
#include <pluginplay/plugin/plugin.hpp> | ||
|
||
namespace {{ cookiecutter.project_slug }} { | ||
|
||
/** @brief Loads the modules contained in the plugin into the provided | ||
* ModuleManager instance. | ||
*/ | ||
DECLARE_PLUGIN({{ cookiecutter.project_slug }}); | ||
|
||
} // namespace {{ cookiecutter.project_slug }} |
16 changes: 16 additions & 0 deletions
16
...roject_slug }}/src/{{ cookiecutter.project_slug }}/{{ cookiecutter.project_slug }}_mm.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include "{{ cookiecutter.project_slug }}/{{ cookiecutter.project_slug }}_mm.hpp" | ||
|
||
namespace {{ cookiecutter.project_slug }} { | ||
|
||
inline void set_defaults(pluginplay::ModuleManager& mm) { | ||
// Default submodules between collections can be set here | ||
} | ||
|
||
DECLARE_PLUGIN({{ cookiecutter.project_slug }}) { | ||
// Add subcollection load calls here | ||
|
||
// Assign default submodules | ||
set_defaults(mm); | ||
} | ||
|
||
} // namespace {{ cookiecutter.project_slug }} |
7 changes: 7 additions & 0 deletions
7
{{ cookiecutter.project_slug }}/tests/unit_tests/test_load_modules.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#include <catch2/catch.hpp> | ||
#include <{{ cookiecutter.project_slug }}/{{ cookiecutter.project_slug }}.hpp> | ||
|
||
TEST_CASE("load_modules") { | ||
pluginplay::ModuleManager mm; | ||
{{ cookiecutter.project_slug }}::load_modules(mm); | ||
} |
7 changes: 7 additions & 0 deletions
7
{{ cookiecutter.project_slug }}/tests/unit_tests/test_main.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#define CATCH_CONFIG_RUNNER | ||
#include <catch2/catch.hpp> | ||
|
||
int main(int argc, char* argv[]) { | ||
int res = Catch::Session().run(argc, argv); | ||
return res; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.0.0 |