diff options
Diffstat (limited to 'tests/KDEInstallDirsTest')
-rw-r--r-- | tests/KDEInstallDirsTest/CMakeLists.txt | 7 | ||||
-rw-r--r-- | tests/KDEInstallDirsTest/not_cache_variable/CMakeLists.txt | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/KDEInstallDirsTest/CMakeLists.txt b/tests/KDEInstallDirsTest/CMakeLists.txt new file mode 100644 index 00000000..ad3febe5 --- /dev/null +++ b/tests/KDEInstallDirsTest/CMakeLists.txt @@ -0,0 +1,7 @@ +file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/not_cache_variable) + +add_test( + NAME KDEInstallDirs_not_cache_variable + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/not_cache_variable + COMMAND "${CMAKE_COMMAND}" "${CMAKE_CURRENT_SOURCE_DIR}/not_cache_variable" + ) diff --git a/tests/KDEInstallDirsTest/not_cache_variable/CMakeLists.txt b/tests/KDEInstallDirsTest/not_cache_variable/CMakeLists.txt new file mode 100644 index 00000000..b78c10d7 --- /dev/null +++ b/tests/KDEInstallDirsTest/not_cache_variable/CMakeLists.txt @@ -0,0 +1,7 @@ +# Test KDEInstallDirs does not crash if a variable like CMAKE_INSTALL_LIBDIR is +# defined but is not a cache variable. +cmake_minimum_required(VERSION 2.8) +set(kde_modules_dir ${CMAKE_SOURCE_DIR}/../../../kde-modules) + +set(CMAKE_INSTALL_LIBDIR "foo") +include(${kde_modules_dir}/KDEInstallDirs.cmake) |