diff options
Diffstat (limited to 'attic/modules-tests')
-rw-r--r-- | attic/modules-tests/AGG/CMakeLists.txt | 5 | ||||
-rw-r--r-- | attic/modules-tests/BlueZ/CMakeLists.txt | 5 | ||||
-rw-r--r-- | attic/modules-tests/ENCHANT/CMakeLists.txt | 5 | ||||
-rw-r--r-- | attic/modules-tests/FFmpeg/CMakeLists.txt | 5 | ||||
-rw-r--r-- | attic/modules-tests/Flac/CMakeLists.txt | 5 | ||||
-rw-r--r-- | attic/modules-tests/GObject/CMakeLists.txt | 5 | ||||
-rw-r--r-- | attic/modules-tests/LibArt/CMakeLists.txt | 5 | ||||
-rw-r--r-- | attic/modules-tests/PCRE/CMakeLists.txt | 5 | ||||
-rw-r--r-- | attic/modules-tests/QCA2/CMakeLists.txt | 5 | ||||
-rw-r--r-- | attic/modules-tests/QImageBlitz/CMakeLists.txt | 5 | ||||
-rw-r--r-- | attic/modules-tests/RunAllModuleTests.cmake | 52 | ||||
-rw-r--r-- | attic/modules-tests/Sqlite/CMakeLists.txt | 5 | ||||
-rw-r--r-- | attic/modules-tests/Strigi/CMakeLists.txt | 17 | ||||
-rw-r--r-- | attic/modules-tests/TestFindPackage.cmake | 44 | ||||
-rw-r--r-- | attic/modules-tests/USB/CMakeLists.txt | 5 | ||||
-rw-r--r-- | attic/modules-tests/Xine/CMakeLists.txt | 5 | ||||
-rw-r--r-- | attic/modules-tests/Xmms/CMakeLists.txt | 5 | ||||
-rw-r--r-- | attic/modules-tests/readme.txt | 6 |
18 files changed, 0 insertions, 189 deletions
diff --git a/attic/modules-tests/AGG/CMakeLists.txt b/attic/modules-tests/AGG/CMakeLists.txt deleted file mode 100644 index 3d0e7b90..00000000 --- a/attic/modules-tests/AGG/CMakeLists.txt +++ /dev/null @@ -1,5 +0,0 @@ -include("${CMAKE_CURRENT_SOURCE_DIR}/../TestFindPackage.cmake") - -set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../modules" ) - -test_find_package(AGG AGG INCLUDE_DIR LIBRARIES DEFINITIONS) diff --git a/attic/modules-tests/BlueZ/CMakeLists.txt b/attic/modules-tests/BlueZ/CMakeLists.txt deleted file mode 100644 index bfc17709..00000000 --- a/attic/modules-tests/BlueZ/CMakeLists.txt +++ /dev/null @@ -1,5 +0,0 @@ -include("${CMAKE_CURRENT_SOURCE_DIR}/../TestFindPackage.cmake") - -set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../modules" ) - -test_find_package(BlueZ BLUEZ INCLUDE_DIR LIBRARIES DEFINITIONS) diff --git a/attic/modules-tests/ENCHANT/CMakeLists.txt b/attic/modules-tests/ENCHANT/CMakeLists.txt deleted file mode 100644 index 6ed9e51f..00000000 --- a/attic/modules-tests/ENCHANT/CMakeLists.txt +++ /dev/null @@ -1,5 +0,0 @@ -include("${CMAKE_CURRENT_SOURCE_DIR}/../TestFindPackage.cmake") - -set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../modules" ) - -test_find_package(ENCHANT ENCHANT INCLUDE_DIR LIBRARIES DEFINITIONS) diff --git a/attic/modules-tests/FFmpeg/CMakeLists.txt b/attic/modules-tests/FFmpeg/CMakeLists.txt deleted file mode 100644 index 4c93079b..00000000 --- a/attic/modules-tests/FFmpeg/CMakeLists.txt +++ /dev/null @@ -1,5 +0,0 @@ -include("${CMAKE_CURRENT_SOURCE_DIR}/../TestFindPackage.cmake") - -set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../modules" ) - -test_find_package(FFmpeg FFMPEG INCLUDE_DIR LIBRARIES DEFINITIONS) diff --git a/attic/modules-tests/Flac/CMakeLists.txt b/attic/modules-tests/Flac/CMakeLists.txt deleted file mode 100644 index 604f2dd6..00000000 --- a/attic/modules-tests/Flac/CMakeLists.txt +++ /dev/null @@ -1,5 +0,0 @@ -include("${CMAKE_CURRENT_SOURCE_DIR}/../TestFindPackage.cmake") - -set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../modules" ) - -test_find_package(Flac FLAC INCLUDE_DIR LIBRARIES OGGFLAC_LIBRARIES) diff --git a/attic/modules-tests/GObject/CMakeLists.txt b/attic/modules-tests/GObject/CMakeLists.txt deleted file mode 100644 index 971a20be..00000000 --- a/attic/modules-tests/GObject/CMakeLists.txt +++ /dev/null @@ -1,5 +0,0 @@ -include("${CMAKE_CURRENT_SOURCE_DIR}/../TestFindPackage.cmake") - -set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../modules" ) - -test_find_package(GObject GOBJECT INCLUDE_DIR LIBRARIES DEFINITIONS) diff --git a/attic/modules-tests/LibArt/CMakeLists.txt b/attic/modules-tests/LibArt/CMakeLists.txt deleted file mode 100644 index e64d2310..00000000 --- a/attic/modules-tests/LibArt/CMakeLists.txt +++ /dev/null @@ -1,5 +0,0 @@ -include("${CMAKE_CURRENT_SOURCE_DIR}/../TestFindPackage.cmake") - -set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../modules" ) - -test_find_package(LibArt LIBART INCLUDE_DIR LIBRARIES) diff --git a/attic/modules-tests/PCRE/CMakeLists.txt b/attic/modules-tests/PCRE/CMakeLists.txt deleted file mode 100644 index 928806da..00000000 --- a/attic/modules-tests/PCRE/CMakeLists.txt +++ /dev/null @@ -1,5 +0,0 @@ -include("${CMAKE_CURRENT_SOURCE_DIR}/../TestFindPackage.cmake") - -set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../modules" ) - -test_find_package(PCRE PCRE INCLUDE_DIR LIBRARIES) diff --git a/attic/modules-tests/QCA2/CMakeLists.txt b/attic/modules-tests/QCA2/CMakeLists.txt deleted file mode 100644 index 46f617ed..00000000 --- a/attic/modules-tests/QCA2/CMakeLists.txt +++ /dev/null @@ -1,5 +0,0 @@ -include("${CMAKE_CURRENT_SOURCE_DIR}/../TestFindPackage.cmake") - -set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../modules" ) - -test_find_package(QCA2 QCA2 INCLUDE_DIR LIBRARIES DEFINITIONS) diff --git a/attic/modules-tests/QImageBlitz/CMakeLists.txt b/attic/modules-tests/QImageBlitz/CMakeLists.txt deleted file mode 100644 index 12edb3f7..00000000 --- a/attic/modules-tests/QImageBlitz/CMakeLists.txt +++ /dev/null @@ -1,5 +0,0 @@ -include("${CMAKE_CURRENT_SOURCE_DIR}/../TestFindPackage.cmake") - -set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../modules" ) - -test_find_package(QImageBlitz QIMAGEBLITZ INCLUDES LIBRARIES) diff --git a/attic/modules-tests/RunAllModuleTests.cmake b/attic/modules-tests/RunAllModuleTests.cmake deleted file mode 100644 index b233bb34..00000000 --- a/attic/modules-tests/RunAllModuleTests.cmake +++ /dev/null @@ -1,52 +0,0 @@ -# Run this script via "cmake -P RunAllModuletests.cmake" to -# execute all module tests in one go. -# Run this script with "cmake -DMODULE=foo -P RunAllModuletests.cmake" to -# test only the one specified module. -# To see only the results and not the other cmake output, -# you can grep for "::". -# To have it delete the previous test build dirs, run it with -DCLEAN_DIRS=TRUE - -get_filename_component(currentDir "${CMAKE_CURRENT_LIST_FILE}" PATH) - -function(execute_one_test name) - set(workingDir "${currentDir}/${name}/build") - if(CLEAN_DIRS) - file(REMOVE_RECURSE "${workingDir}") - endif() - file(MAKE_DIRECTORY "${workingDir}") - execute_process(COMMAND ${CMAKE_COMMAND} "${currentDir}/${name}" - WORKING_DIRECTORY "${workingDir}") - # now the same with pkg-config disabled - set(workingDir "${currentDir}/${name}/build-no-pkgconfig") - if(CLEAN_DIRS) - file(REMOVE_RECURSE "${workingDir}") - endif() - file(MAKE_DIRECTORY "${workingDir}") - execute_process(COMMAND ${CMAKE_COMMAND} -DPKG_CONFIG_EXECUTABLE=echo "${currentDir}/${name}" - WORKING_DIRECTORY "${workingDir}") -endfunction(execute_one_test) - -if(DEFINED MODULE) - set(modulesToTest ${MODULE}) -else() - set(modulesToTest AGG - BlueZ - ENCHANT - FFmpeg - Flac - GObject - LibArt - PCRE - QCA2 - QImageBlitz - Sqlite - Strigi - USB - Xine - Xmms) -endif() - -foreach(currentModule ${modulesToTest}) - execute_one_test(${currentModule}) -endforeach(currentModule ${modulesToTest}) - diff --git a/attic/modules-tests/Sqlite/CMakeLists.txt b/attic/modules-tests/Sqlite/CMakeLists.txt deleted file mode 100644 index 000be428..00000000 --- a/attic/modules-tests/Sqlite/CMakeLists.txt +++ /dev/null @@ -1,5 +0,0 @@ -include("${CMAKE_CURRENT_SOURCE_DIR}/../TestFindPackage.cmake") - -set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../modules" ) - -test_find_package(Sqlite SQLITE INCLUDE_DIR LIBRARIES DEFINITIONS) diff --git a/attic/modules-tests/Strigi/CMakeLists.txt b/attic/modules-tests/Strigi/CMakeLists.txt deleted file mode 100644 index bbe1e23f..00000000 --- a/attic/modules-tests/Strigi/CMakeLists.txt +++ /dev/null @@ -1,17 +0,0 @@ -include("${CMAKE_CURRENT_SOURCE_DIR}/../TestFindPackage.cmake") - -set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../modules" ) - -set(STRIGI_MIN_VERSION 0.6.0) - -#find_package(Strigi 1.2.3) - -test_find_package(Strigi STRIGI VERSION - INCLUDE_DIR - STREAMANALYZER_LIBRARY - STREAMS_LIBRARY - STRIGIQTDBUSCLIENT_LIBRARY - NEEDS_SIGNED_CHAR - NEEDS_CHAR - LINE_ANALYZER_PREFIX - THROUGH_ANALYZER_PREFIX ) diff --git a/attic/modules-tests/TestFindPackage.cmake b/attic/modules-tests/TestFindPackage.cmake deleted file mode 100644 index 24e70f5c..00000000 --- a/attic/modules-tests/TestFindPackage.cmake +++ /dev/null @@ -1,44 +0,0 @@ -# This module provides the macro TEST_FIND_PACKAGE() -# -# TEST_FIND_PACKAGE(package prefix var1 .. varN ) -# It can be used to test a CMake Find-module. -# It executes FIND_PACKAGE(<package>) and then prints some results. -# <package> is the same as for FIND_PACKAGE() and -# prefix should be the prefix which is used in that module for -# all variables. -# It checks <prefix>_FOUND to decide whether the module was successful or not. -# -# Example: -# test_find_package(Xine XINE VERSION INCLUDE_DIR LIBRARY) -# -# This will check XINE_FOUND and then print the variables XINE_VERSION, XINE_INCLUDE_DIR and XINE_LIBRARY. - -cmake_minimum_required(VERSION 2.6.2) -cmake_policy(SET CMP0000 OLD) - -macro(TEST_FIND_PACKAGE package prefix ) - # if PKG_CONFIG_EXECUTABLE is set to "echo", FindPkgConfig.cmake - # will not search again for the real pkg-config, as it would if it was set to NOTFOUND - # and still the execute_process(${PKG_CONFIG_EXECUTABLE} ) calls will work - # but never return success. - if("${PKG_CONFIG_EXECUTABLE}" STREQUAL "echo") - message(STATUS ":: ***** Testing Find${package}.cmake, with pkg-config disabled *****") - else() - message(STATUS ":: ***** Testing Find${package}.cmake *****") - endif() - - find_package(${package}) - message(STATUS ":: ***** Results from Find${package}.cmake *****") - - if ( ${prefix}_FOUND) - message(STATUS ":: Find${package}.cmake: ${package} has been found") - else ( ${prefix}_FOUND) - message(STATUS ":: Find${package}.cmake: ${package} has NOT been found !") - endif ( ${prefix}_FOUND) - - message(STATUS ":: ${prefix}_FOUND: \"${${prefix}_FOUND}\"") - foreach(var ${ARGN}) - message(STATUS ":: ${prefix}_${var}: \"${${prefix}_${var}}\"") - endforeach(var) - message(STATUS "::") -endmacro(TEST_FIND_PACKAGE package) diff --git a/attic/modules-tests/USB/CMakeLists.txt b/attic/modules-tests/USB/CMakeLists.txt deleted file mode 100644 index 37f9dd2c..00000000 --- a/attic/modules-tests/USB/CMakeLists.txt +++ /dev/null @@ -1,5 +0,0 @@ -include("${CMAKE_CURRENT_SOURCE_DIR}/../TestFindPackage.cmake") - -set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../modules" ) - -test_find_package(USB LIBUSB INCLUDE_DIR LIBRARIES) diff --git a/attic/modules-tests/Xine/CMakeLists.txt b/attic/modules-tests/Xine/CMakeLists.txt deleted file mode 100644 index 8c2ac6e6..00000000 --- a/attic/modules-tests/Xine/CMakeLists.txt +++ /dev/null @@ -1,5 +0,0 @@ -include("${CMAKE_CURRENT_SOURCE_DIR}/../TestFindPackage.cmake") - -set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../modules" ) - -test_find_package(Xine XINE VERSION BUGFIX_VERSION INCLUDE_DIR LIBRARY XCB_FOUND) diff --git a/attic/modules-tests/Xmms/CMakeLists.txt b/attic/modules-tests/Xmms/CMakeLists.txt deleted file mode 100644 index c55e6a44..00000000 --- a/attic/modules-tests/Xmms/CMakeLists.txt +++ /dev/null @@ -1,5 +0,0 @@ -include("${CMAKE_CURRENT_SOURCE_DIR}/../TestFindPackage.cmake") - -set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../modules" ) - -test_find_package(Xmms XMMS INCLUDE_DIR LIBRARIES ) diff --git a/attic/modules-tests/readme.txt b/attic/modules-tests/readme.txt deleted file mode 100644 index 2fabc9bf..00000000 --- a/attic/modules-tests/readme.txt +++ /dev/null @@ -1,6 +0,0 @@ -in each of the subdirs here is a simple CMakeLists.txt which does a very -basic test for one of the cmake modules in the modules/ directory. -To run them, create a build directory, run cmake and check the output. -(yes, this can of course be enhanced, but it's better than nothing). - -Alex |