diff options
Diffstat (limited to 'cmake/platform/settings.unix.cmake')
-rw-r--r-- | cmake/platform/settings.unix.cmake | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/cmake/platform/settings.unix.cmake b/cmake/platform/settings.unix.cmake new file mode 100644 index 00000000000..6751f43b367 --- /dev/null +++ b/cmake/platform/settings.unix.cmake @@ -0,0 +1,24 @@ +# set default configuration directory +if( NOT CONF_DIR ) + set(CONF_DIR ${CMAKE_INSTALL_PREFIX}/etc) +endif() + +# set default library directory +if( NOT LIBSDIR ) + set(LIBSDIR ${CMAKE_INSTALL_PREFIX}/lib) +endif() + +# configure uninstaller +configure_file( + "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in" + "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" + IMMEDIATE @ONLY +) + +# create uninstaller target (allows for using "make uninstall") +add_custom_target(uninstall + "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" +) + +include(${CMAKE_SOURCE_DIR}/cmake/compiler/gcc/settings.cmake) + |