aboutsummaryrefslogtreecommitdiff
path: root/test cases/cmake
AgeCommit message (Collapse)AuthorFilesLines
2020-02-25test: merge test_matrix.json and setup_env.json into test.jsonDaniel Mensinger2-9/+11
2020-02-20cmake: Fix relative paths for add_custom_{command,target}Daniel Mensinger4-2/+15
Do this by tracking CMAKE_CURRENT_{SOURCE,BINARY}_DIR variables. This is achieved by injecting CMake code with CMAKE_PROJECT_INCLUDE and overriding some builtin functions with a wrapper that adds additional trace information.
2020-02-19cmake: traceparser better handle listsDaniel Mensinger1-2/+2
2020-02-19cmake: Fix dependency loops in custom targets (fixes #6632)Daniel Mensinger6-3/+42
2020-02-19modules/cmake: Add a found() method to the cmake subprojectDylan Baker2-1/+3
Just like the native meson subproject has.
2020-02-05cmake: Added test case for #6566Daniel Mensinger5-5/+36
2020-02-04cmake: Sanitize CMake names (fixes #6554)Daniel Mensinger3-12/+13
2020-01-24tests: Fix some test failures on Ubuntun 16.04 CINirbheek Chauhan2-0/+2
* xenial doesn't ship many dependencies, so make them all optional since we don't guarantee that everything will work * cmake/{5,6}: needs stdlib.h for EXIT_SUCCESS on GCC 5 * common/222: needs C++11, and GCC 5 doesn't understand `auto` correctly unless we explicitly enable it. * frameworks/1 boost: xenial doesn't ship boost_python3, so make it properly optional * frameworks/6 gettext: gettext can be installed without xgettext, which doesn't cause the project to fail, but the installed files list is different which causes the test to fail. * frameworks/7 gnome: gobject-introspection can't be enabled because the sanitizer unit test detects leaks in glib and fails
2019-12-29cmake: Use trace for missing link flags (fixes #6386)Daniel Mensinger10-5/+78
This is neccessary for static libraries, since the CMake file API does not add link flags here.
2019-12-22cmake: Fix obeject librariesDaniel Mensinger14-15/+169
This fixes an issue with generated sources and object libraries, as well as an issue on windows with the `link` linker and the vs backend. The last issue is resolved by building the source files multiple times to avoid extracting object files in meson.
2019-12-17ci cmake: Windows link.exe skip due to symbol issuesMichael Hirsch, Ph.D10-12/+16
2019-12-09cmake test: skip case where Cmake backend not Fortran-compatibleMichael Hirsch, Ph.D1-1/+4
2019-12-09cmake: add project language to cmakelists.txtMichael Hirsch, Ph.D1-0/+9
cmake: get language from Meson project if not specified as depedency(..., langugage: ...) deps: add threads method:cmake dependency('threads', method: 'cmake') is useful for cmake unit tests or those who just want to find threads using cmake. cmake: project(... Fortran) generally also requires C language
2019-11-30cmake: Make output_target_map more robust (fixes #6208)Daniel Mensinger5-2/+65
This PR refactors the old output_target_map, which was a raw dict, into it's own class. This makes the access to the map more uniform and robust (at the cost of more lines of code). Additionally relative paths to the build directory are now also tracked for outputs. This is neccessary to corretcly distingluish files with the same name, that are in different directories.
2019-11-28cmake: Some minor fixupDaniel Mensinger3-1/+20
2019-11-27cmake: Add unit test for add_custom_target() and add_dependency()Xavier Claessens3-0/+32
Also test commands with args separated by ';'
2019-11-20cmake: Uniform target name handlingDaniel Mensinger4-10/+12
2019-11-19cmake: Skip system include dir test for msvcDaniel Mensinger1-0/+4
2019-11-19cmake: Handle CMake system include dirs (closes #6079)Daniel Mensinger1-1/+1
2019-11-18Use strict function prototypesMichael Hirsch, Ph.D12-12/+12
2019-10-20cmake: Blacklist more compiler warning flagsDaniel Mensinger6-0/+78
2019-10-03cmake: Add test case for #5992Daniel Mensinger2-0/+4
2019-08-03Condense test directory names.Jussi Pakkanen10-0/+0
2019-07-31cmake: added generator expression test caseDaniel Mensinger4-0/+75
2019-07-25cmake: Added interface libraries test caseDaniel Mensinger4-0/+52
2019-07-18add cross-platform test for cmake_module_pathMichael Hirsch, Ph.D2-0/+41
This test tolerates CMake >= 3.7, and checks that dependency(..., cmake_module_path=...) works on any OS with CMake.
2019-07-13cmake: Handle disabling subprojectsThibault Saunier1-0/+5
2019-06-28cmake: Skip ARGS key in COMMANDDaniel Mensinger1-1/+1
2019-06-28cmake: Added custom_target test caseDaniel Mensinger9-0/+157
2019-06-12cmake: Fix missing include_directories in some CMakeLists.txtDaniel Mensinger3-2/+4
2019-06-06cmake: Updated test casesDaniel Mensinger7-27/+34
2019-06-06cmake: fixed installed_files.txtDaniel Mensinger2-2/+10
2019-06-06cmake: Fixed test cases for windowsDaniel Mensinger34-12/+177
2019-06-06cmake: Added option for additional CMake argsDaniel Mensinger2-0/+8
2019-06-06cmake: support object librariesDaniel Mensinger7-0/+54
2019-06-06cmake: Added test for configure_fileDaniel Mensinger4-0/+16
2019-06-06cmake: Added Code generation testDaniel Mensinger5-0/+57
2019-06-06cmake: Added project testsDaniel Mensinger5-6/+22
2019-06-06cmake: extract the codemodelDaniel Mensinger6-0/+65
2019-06-06cmake: Server handshakeDaniel Mensinger5-0/+45