diff options
author | Alex Merry <alex.merry@kde.org> | 2014-06-02 16:23:19 +0100 |
---|---|---|
committer | Alex Merry <alex.merry@kde.org> | 2014-06-02 16:23:19 +0100 |
commit | 5977afced396a62fb86eb178f13156588e3cfcd8 (patch) | |
tree | e45e8013d8b8c1151dd72905c936df0838c255bb /tests/KDEInstallDirsTest/not_cache_variable | |
parent | 1fe09cafc493bbe541f16d43b783cbb876cab528 (diff) | |
download | extra-cmake-modules-5977afced396a62fb86eb178f13156588e3cfcd8.tar.gz extra-cmake-modules-5977afced396a62fb86eb178f13156588e3cfcd8.tar.bz2 |
Reorganize tests
Move the detailed testing of KDEInstallDirs from ExecuteKDEModules to a
subdir of KDEInstallDirsTest. This is where you would expect to find it,
and it also makes sure that other KDE modules are not affecting the
test.
This also makes the KDEInstallDirs/not_cache_variable regression test
work the same way as the other tests, doing a double-configure and
build. While not stricly necessary to catch the original issue, it does
ensure that the problem does not appear when reconfiguring either.
Diffstat (limited to 'tests/KDEInstallDirsTest/not_cache_variable')
-rw-r--r-- | tests/KDEInstallDirsTest/not_cache_variable/CMakeLists.txt | 3 | ||||
-rw-r--r-- | tests/KDEInstallDirsTest/not_cache_variable/main.c | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/KDEInstallDirsTest/not_cache_variable/CMakeLists.txt b/tests/KDEInstallDirsTest/not_cache_variable/CMakeLists.txt index b78c10d7..6162e070 100644 --- a/tests/KDEInstallDirsTest/not_cache_variable/CMakeLists.txt +++ b/tests/KDEInstallDirsTest/not_cache_variable/CMakeLists.txt @@ -5,3 +5,6 @@ set(kde_modules_dir ${CMAKE_SOURCE_DIR}/../../../kde-modules) set(CMAKE_INSTALL_LIBDIR "foo") include(${kde_modules_dir}/KDEInstallDirs.cmake) + +add_executable(dummy main.c) +set_target_properties(dummy PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) diff --git a/tests/KDEInstallDirsTest/not_cache_variable/main.c b/tests/KDEInstallDirsTest/not_cache_variable/main.c new file mode 100644 index 00000000..c13815ce --- /dev/null +++ b/tests/KDEInstallDirsTest/not_cache_variable/main.c @@ -0,0 +1,4 @@ +int main() +{ + return 0; +} |