aboutsummaryrefslogtreecommitdiff
path: root/cmake/platform/unix/settings.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/platform/unix/settings.cmake')
-rw-r--r--cmake/platform/unix/settings.cmake27
1 files changed, 27 insertions, 0 deletions
diff --git a/cmake/platform/unix/settings.cmake b/cmake/platform/unix/settings.cmake
new file mode 100644
index 00000000000..9dae9f5ca9f
--- /dev/null
+++ b/cmake/platform/unix/settings.cmake
@@ -0,0 +1,27 @@
+# set default configuration directory
+if( NOT CONF_DIR )
+ set(CONF_DIR ${CMAKE_INSTALL_PREFIX}/etc)
+ message(STATUS "UNIX: Using default configuration directory")
+endif()
+
+# set default library directory
+if( NOT LIBSDIR )
+ set(LIBSDIR ${CMAKE_INSTALL_PREFIX}/lib)
+ message(STATUS "UNIX: Using default library directory")
+endif()
+
+# configure uninstaller
+configure_file(
+ "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
+ "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
+ IMMEDIATE @ONLY
+)
+message(STATUS "UNIX: Configuring uninstall target")
+
+# create uninstaller target (allows for using "make uninstall")
+add_custom_target(uninstall
+ "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
+)
+message(STATUS "UNIX: Created uninstall target")
+
+include(${CMAKE_SOURCE_DIR}/cmake/compiler/gcc/settings.cmake)