mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 06:30:20 -06:00
60c0d2ddFeatures: Add cxx_defaulted_move_initializers.c4e67235Features: Add cxx_long_long_type.dcaafadaFeatures: Add cxx_func_identifier.251a1f02Features: Add cxx_local_type_template_args.53fe7773Features: Add cxx_extended_friend_declarations.16603f7cFeatures: Add cxx_enum_forward_declarations.adf22f61Features: Add cxx_default_function_template_args.7b3e8a05Features: Add cxx_right_angle_brackets.9a49fd21Features: Add cxx_decltype_incomplete_return_types.1889045cFeatures: Add cxx_sizeof_member.ab455ebaFeatures: Add cxx_thread_local.300ce248Features: Add cxx_inline_namespaces.f9d04a96Features: Add cxx_variadic_macros.3d76656fFeatures: Add cxx_uniform_initialization.e74b216cFeatures: Add cxx_generalized_initializers.ff80c3b4Features: Add cxx_attributes. ...
If you think about adding a new testcase then here is a small checklist you can run through to find a proper place for it. Go through the list from the beginning and stop once you find something that matches your tests needs, i.e. if you will test a module and only need the configure mode use the instructions from section 2, not 3. 1. Your testcase can run in CMake script mode, i.e. "cmake -P something" Put your test in Tests/CMakeTests/ directory as a .cmake.in file. It will be put into the test binary directory by configure_file(... @ONLY) and run from there. Use the AddCMakeTest() macro in Tests/CMakeTests/CMakeLists.txt to add your test to the test runs. 2. Your test needs CMake to run in configure mode, but will not build anything This includes tests that will build something using try_compile() and friends, but nothing that expects add_executable(), add_library(), or add_test() to run. If the test configures the project only once and it must succeed then put it into the Tests/CMakeOnly/ directory. Create a subdirectory named like your test and write the CMakeLists.txt you need into that subdirectory. Use the add_CMakeOnly_test() macro from Tests/CMakeOnly/CMakeLists.txt to add your test to the test runs. If the test configures the project with multiple variations and verifies success or failure each time then put it into the Tests/RunCMake/ directory. Read the instructions in Tests/RunCMake/CMakeLists.txt to add a test. 3. If you are testing something from the Modules directory Put your test in the Tests/Modules/ directory. Create a subdirectory there named after your test. Use the ADD_TEST_MACRO macro from Tests/CMakeLists.txt to add your test to the test run. If you have put your stuff in Tests/Modules/Foo then you call it using ADD_TEST_MACRO(Module.Foo Foo). 4. You are doing other stuff. Find a good place ;) In doubt mail to cmake-developers@cmake.org and ask for advise.