summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'ghs-linux'Brad King2019-03-221-0/+1
|\ | | | | | | | | | | | | | | | | | | | | 2c43fb5be3 FindThreads: Fix pthread library check in GHS Multi Generator 0404efe786 GHS: Add support for GHS Multi Generator in Linux 2060a1445c Tests: Fix file name case in GHS object library test ddad70c8a4 Tests: Run GHS tests in a separate ctest process f7dca1fc97 GHS: Fix include-what-you-use and clang-tidy diagnostics Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3006
| * Tests: Run GHS tests in a separate ctest processBrad King2019-03-211-0/+1
| | | | | | | | | | These tests use a different compiler than the rest of the test suite. Isolate the rest of our tests from their environment.
* | Merge topic 'environment-modules'Brad King2019-03-191-0/+4
|\ \ | | | | | | | | | | | | | | | | | | dfea916d3c FindEnvModules: Provide a CMake interface to environment modules Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3076
| * | FindEnvModules: Provide a CMake interface to environment modulesChuck Atkins2019-03-181-0/+4
| | |
* | | Merge topic 'FindGLEW-updates'Brad King2019-03-181-0/+4
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | a77a30e657 FindGLEW: Add test a7d853868b FindGLEW: Update implementation Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3094
| * | FindGLEW: Add testClaudio Fantacci2019-03-151-0/+4
| |/
* | Tests: Run FindGTK2 tests only when explicitly enabledBrad King2019-03-141-5/+4
|/ | | | | | Do not `find_package(GTK2)` by default, as it gives the impression that CMake depends on it to build. We will set `CMake_TEST_FindGTK2` in the cache of automated builds where GTK2 is expected to work.
* Merge topic 'FindOctave-remove'Brad King2019-02-271-4/+0
|\ | | | | | | | | | | | | 7a1f3fe041 FindOctave: Remove module pending further work Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3027
| * FindOctave: Remove module pending further workBrad King2019-02-261-4/+0
| | | | | | | | | | | | | | | | | | | | | | The `FindOctave` module added by commit 170bcb6fdc (FindOctave: Add module to find GNU octave, 2018-11-17, v3.14.0-rc1~283^2) has a few problems in its implementation that need to be worked out before the module can be included in a CMake release. These were missed during review. Remove the module for now. It can be restored later with a fresh review. Issue: #18991
* | Tests: Disable test that builds KWSys if not also building CMakeBrad King2019-02-131-11/+15
| | | | | | | | | | | | If `CMake_TEST_EXTERNAL_CMAKE` is enabled then the compiler with which we are driving tests may not be able to compile CMake, so do not try to compile KWSys with it either.
* | Tests: Teach tests when to treat clang-cl as MSVCZsolt Parragi2019-02-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Disable the system include unused variable test in ExportImport when clang is in MSVC compatible mode. * Disable CxxDialect testcase when clang is in MSVC compatible mode, as it doesn't support `typeof`. * Teach Module.WriteCompilerDetectionHeader to treat clang-cl as MSVC. * Disable the SystemIncludeDirectories testcase within IncludeDirectories when clang is in MSVC compatible mode. * Disable the CMakeOnly.CheckCXXCompilerFlag testcase when clang is in MSVC compatible mode. * Treat clang-cl as MSVC in LinkOptions.cmake in the try_run and try_compile testcases.
* | Merge topic 'ghs-updates'Brad King2019-02-111-1/+1
|\ \ | |/ | | | | | | | | | | bcd99fac60 GHS: Document usage of GHS_NO_SOURCE_GROUP_FILE Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2943
| * GHS: Document usage of GHS_NO_SOURCE_GROUP_FILEFred Baksik2019-02-081-1/+1
| | | | | | | | -- Also change variable name to CMAKE_GHS_NO_SOURCE_GROUP_FILE
* | Merge topic 'findcups'Brad King2019-02-071-0/+4
|\ \ | | | | | | | | | | | | | | | | | | dd45f23b01 FindCups: add imported target Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2917
| * | FindCups: add imported targetPatrick Gansterer2019-02-061-0/+4
| |/
* | Tests: Add a way to configure custom options for FortranModules testBrad King2019-02-061-0/+1
|/ | | | | Read an undocumented cache entry to allow some CI builds to configure this test in a special way.
* Tests: Update CMake tutorialBetsy McPhail2019-01-271-8/+27
| | | | Latest material from data.kitware.com -> Collections -> Courses -> CMake.
* FindPython: Introduce NumPy componentHiroshi Miura2019-01-241-1/+1
| | | | | Fixes: #18678 Signed-off-by: Hiroshi Miura <miurahr@linux.com>
* FindGit: Add imported targetKyle Edwards2019-01-211-0/+4
|
* Merge topic 'ExternalProject-non-cmake-source-subdir'Brad King2019-01-211-0/+12
|\ | | | | | | | | | | | | c09ec79981 ExternalProject: support SOURCE_SUBDIR for BUILD_IN_SOURCE Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2823
| * ExternalProject: support SOURCE_SUBDIR for BUILD_IN_SOURCEBen Boeckel2019-01-171-0/+12
| |
* | Fortran: Add compiler ID/Version generator expressionsAndrew Paprocki2019-01-181-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Adds `Fortran_COMPILER_ID` and `Fortran_COMPILER_VERSION` generator expression support to match equivalent `C_COMPILER_ID`, `CXX_COMPILER_ID`, `C_COMPILER_VERSION`, and `CXX_COMPILER_VERSION` support. This is very helpful in the case where the C/C++ compiler suite is a different type of compiler from the platform Fortran compiler and projects use generator expressions to assign compiler flags and definitions. (e.g. `GNU` C/C++ and `SunPro` Fortran on Linux)
* | Merge topic 'automoc-test-in-place'Brad King2019-01-181-4/+4
|\ \ | | | | | | | | | | | | | | | | | | 1c08652580 Tests: Fix Qt4And5Automoc tests to work on in-source build Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2817
| * | Tests: Fix Qt4And5Automoc tests to work on in-source buildBrad King2019-01-171-4/+4
| |/ | | | | | | | | | | | | Use a distinctly-named build directory for each case so that neither one uses its own source tree as the build tree. Fixes: #18159
* | GHS: Update test suiteFred Baksik2019-01-161-38/+65
| | | | | | | | | | | | | | | | | | | | -- Allow for testing default toolset settings If CMake_TEST_GreenHillsMULTI_config is not defined then just run the GHS tests using defaults. -- Handle paths that contain spaces -- Update test suite to use "-non_shared" linker option Fixes linking issue if GHS is not shipped with shared libraries -- Other minor cleanup
* | GHS: Add Compiler ID detectionFred Baksik2019-01-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | -- Detect GHS compiler and version Detect ARCHITECTURE_ID for PPC / ARM / 86 targets Detect PLATFORM_ID for Integrity and Integrity178 platforms Using defines specified in the documents for the compilers: 201416 PPC / 201754 ARM / 201714 86 -- Fallback C/CXX compiler ID to GHS if not otherwise detected and using GHS MULTI generator Works around issue with some GHS compilers not setting __ghs__ compiler define -- Tweak Compiler ID checking so major id of 002017 is not replaced with 217 -- Prefer try_compile() library targets when testing for working GHS compilers -- Avoid CMake errors if reading past end of file for checking if file is PE executable
* | GHS: Append ".gpj" to target name when generating build commandFred Baksik2019-01-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | -- Add test demonstrating issue -- In the case of executable targets the target name is usually the same as used in "-o filename" But for static libraries the target name is usually "-o libname.a" "gbuild.exe target" will build whatever target matches against even the output from the compiler or linker But the targets in "cmake --build . --target name" should be target names in CMakeLists.txt not the actual filenames So change the "name" to "name.gpj" so it matches the target name in CMakeLists.txt. Fixes #15975
* | GHS: Integrity Application updatesFred Baksik2019-01-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -- Check the property "ghs_integrity_app" on executables to set [INTEGRITY Application] If the property is not set then check if an integrate file is one of the source files (.int file). Dynamic Downloads that do not have an integrate file can use this property along with setting the compiler flag "-dynamic". -- Remove parsing for -dynamic flag; it is only used to print a comment The MULTI GUI will show if it is a Monolith or Dynamic Download application -- Use project references to specify which executables are part of the Integrity Application Usually Implicit Dependency Analysis will ensure that executable targets become part of the application. This does not work for Dynamic Download without integrate files. Use `add_dependencies(dd vas)` to mark that the vas target is part of dd target. -- Update file locations in the Integrate files.
* | GHS: Cleanup how source files are listedFred Baksik2019-01-161-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | -- Sort the items of the project files, previously they were unsorted The layout is similar to Visual Studio projects -- Do not make a make a tree of directories and projects files The main project file is in the binary folder The sub-project files are located in the project object directory This is similar to the Makefile generator -- Allow the creation of a single project file If the variable or target property GHS_NO_SOURCE_GROUP_FILE is set then all sources will be listed in the main project file
* | GHS: Update test suiteFred Baksik2019-01-161-20/+61
|/ | | | | | | | | | | | | | | | | | -- Update test suite so that CMake can use multiple toolsets CMake_TEST_GreenHillsMULTI_config ghs_config_name ghs_target_arch ghs_tools ghs_toolset_name ghs_os_root ghs_os_dir ghs_target_platform ghs_bsp_name -- Change ARM Integrity test to generic Integrity test Add Monolithic build test -- Add other GHS generator tests
* Remove now-unused code once used on IRIXBrad King2019-01-111-1/+0
| | | | | We dropped support for IRIX as a host platform long ago. Remove some leftover code.
* VS: Honor WinCE deployment properties in VS 2010+Wil Stark2019-01-101-1/+0
| | | | Previously only VS 2008 was supported.
* Tests: Detect VS and SDK availability earlyWil Stark2019-01-101-44/+44
|
* FindLibLZMA: add imported targetHiroshi Miura2018-12-131-0/+4
| | | | | | | | | | - Add imported target LibLZMA::LibLZMA - Show found message with library path - Add test for FindLibLZMA Fixes: #18680, #18679 Signed-off-by: Hiroshi Miura <miurahr@linux.com>
* FindOctave: Add module to find GNU octaveMichael Hirsch, Ph.D2018-12-061-0/+4
|
* FindGIF: Add testMaximilian Heinzler2018-11-201-0/+4
| | | | | This tests whether GIFLIB can be found and the linker works. For newer versions (>=5) it also tests if the version was parsed correctly.
* Tests/FindX11: add a testBen Boeckel2018-11-151-0/+4
|
* Merge topic 'FindSQLite3-module'Brad King2018-11-071-0/+4
|\ | | | | | | | | | | | | fe40570608 FindSQLite3: Add module to find SQLite3 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2557
| * FindSQLite3: Add module to find SQLite3Chuck Atkins2018-11-061-0/+4
| |
* | Merge topic 'FindPostgreSQL-target'Brad King2018-11-061-0/+4
|\ \ | |/ |/| | | | | | | | | | | | | | | 575e2cc35d FindPostgreSQL: extract the actual version number 7413f29fe6 Tests/FindPostgreSQL: add a test for FindPostgreSQL d2235fd253 FindPostgreSQL: add an imported target 7a801b7dfb FindPostgreSQL: Modernize documentation layout Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2555
| * Tests/FindPostgreSQL: add a test for FindPostgreSQLBen Boeckel2018-11-011-0/+4
| |
* | Tests/FindGDAL: add a test for FindGDALBen Boeckel2018-11-011-0/+4
|/
* FindMatlab: added unit tests for new functionality.Cris Luengo2018-10-241-1/+8
| | | | Also allowing a way to select which of multiple installed MATLAB versions to use in the test.
* Merge topic 'find_fontconfig'Brad King2018-10-191-0/+4
|\ | | | | | | | | | | | | 84e7920b3a FindFontconfig: Add module to find Fontconfig Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2487
| * FindFontconfig: Add module to find FontconfigFrederik Gladhorn2018-10-181-0/+4
| | | | | | | | This module is inspired by one from KDE's KWin.
* | CTest: Fix GTM coverage handling of entry point named "%"Joseph Snyder2018-10-161-2/+2
|/ | | | | | | Removing the "%" character from the name of the routine in the line parser causes CTest to be unable to find a routine entry point that is only named "%". Instead leave it during line parsing and handle routine names ending in "%" explicitly when loading files.
* FindLibinput: Add module to find libinputFrederik Gladhorn2018-10-111-0/+4
| | | | This module is inspired by one from KDE's KWin.
* Merge topic 'addvs2017arm64'Brad King2018-09-281-17/+19
|\ | | | | | | | | | | | | | | 22282d6931 Tests: Add VSWinStore* test for VS 2017 ARM64 57b9a072cb Tests: Teach VSWinStore* tests to pass the architecture as a parameter Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2389
| * Tests: Add VSWinStore* test for VS 2017 ARM64Gilles Khouzam2018-09-261-0/+1
| |
| * Tests: Teach VSWinStore* tests to pass the architecture as a parameterGilles Khouzam2018-09-261-17/+18
| | | | | | | | | | Instead of specifying the architecture in the generator name, pass it as the generator platform. This has been preferred since CMake 3.1.