summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cmake/opentrack-install.cmake3
-rw-r--r--presets/README.txt12
2 files changed, 13 insertions, 2 deletions
diff --git a/cmake/opentrack-install.cmake b/cmake/opentrack-install.cmake
index 64a9164c..5aac983b 100644
--- a/cmake/opentrack-install.cmake
+++ b/cmake/opentrack-install.cmake
@@ -23,8 +23,7 @@ endfunction()
otr_install_dir("${opentrack-doc}" ${CMAKE_SOURCE_DIR}/3rdparty-notices)
otr_install_dir("${opentrack-doc}" "${CMAKE_SOURCE_DIR}/settings" "${CMAKE_SOURCE_DIR}/contrib")
-otr_escape_string(module-dir "${CMAKE_INSTALL_PREFIX}/${opentrack-libexec}")
-INSTALL(CODE "FILE(MAKE_DIRECTORY \"${module-dir}/presets\")")
+otr_install_dir("${opentrack-libexec}" "${CMAKE_SOURCE_DIR}/presets")
if(WIN32)
otr_install_misc(. FILES "${CMAKE_SOURCE_DIR}/bin/qt.conf")
diff --git a/presets/README.txt b/presets/README.txt
new file mode 100644
index 00000000..a89793f8
--- /dev/null
+++ b/presets/README.txt
@@ -0,0 +1,12 @@
+Here you can add presets as .ini files in order to get them copied for
+the end-user as profiles.
+
+Additionally, a preset called 'default.ini' will be sourced into each
+profile the user creates.
+
+This functionality exists for hardware vendors who create their custom
+distributions of opentrack.
+
+The user can delete the profiles in his 'Documents/opentrack-2.3'
+directory. The presets won't be copied again unless their modification
+time changes inside the opentrack's distribution.