Basic plugin template for use with SKSE64
If you got here through Google, please see the tutorial
- CommonLibSSE NG
- easier for se/ae builds in one dll (could be used from an environment variable as well,
CMakeLists.txt
will need adjustment for that)
- easier for se/ae builds in one dll (could be used from an environment variable as well,
- spdlog
- for logging
- simpleini
- reading/writing to ini files
- other options for settings
- toml settings tomlplusplus or autotoml
- json settings nlohmann-json or json2settings
- vcpkg
- Add the environment variable
VCPKG_ROOT
with the value as the path to the folder containing vcpkg
- Add the environment variable
- cmake
- installed dir needs to be added to the
PATH
environment variable
- installed dir needs to be added to the
- Visual Studio
- Rider
- CLion
- VS Code
- update
.clang-format
file to your likeing for example from here - set
cmake/Version.h.in
variableAUTHOR
with your name - update version and name in
vcpkg.json
andCMakeLists.txt
(under project) before building
- standard
cmd
works, I prefer git-bash, windows terminal is also an option
git clone https://github.com/mlthelama/ExamplePlugin-SKSE64.git
cd ExamplePlugin-SKSE64
cmake -B build -S .
python scripts/cmake_generate.py
cmake --preset vs2022-windows
cmake --build --preset vs2022-windows --config Release
cmake -B build -S .
will generate the sln file you will open with an idepython scripts/cmake_generate.py
is used to generatecmake/sourcelist.cmake
and includes all .h and .cpp files fromsrc/
and subdirectoriescmake --build build --config Release
will just build a dll (it is the same if you build it from rider or vs),Debug
orRelease
are one of the accepted values