Re: [CMake] Rename target RUN_TESTS
So I turned this on, it definitely helps.. However, I find that the order of the folders is now sorted case sensitive. Is there anyway to turn it back to the non folder manner where the folder order is case-insensitive? Scott -Original Message- From: John Drescher [mailto:dresche...@gmail.com] Sent: Thursday, January 01, 2015 20:45 PM To: Scott Aron Bloom Cc: cmake@cmake.org Subject: Re: [CMake] Rename target RUN_TESTS On Thu, Jan 1, 2015 at 11:27 PM, Scott Aron Bloom scott.bl...@onshorecs.com wrote: For windows Visual Studio using CMake with google test, one of the complaints my team has, is the project name “RUN_TESTS” gets lost in the numerous projects. I am not sure about renaming that however I find it helpful to organize my projects using solution folders with set_property(GLOBAL PROPERTY USE_FOLDERS ON) and set_target_properties(mylocalproject PROPERTIES FOLDER folder) John -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake
Re: [CMake] Rename target RUN_TESTS
Le 02/01/2015 05:27, Scott Aron Bloom a écrit : Is there a CMake command to rename a target? I don't think you can rename a target. We would like to name it ALL_RUN_TEST However, you can add a custom target that depends on the misnamed one: if(MSVC) add_custom_target(ALL_RUN_TEST ALL DEPENDS RUN_TESTS) endif() This way the target is not renamed but you have at your disposal a new target that will do and act the same, with a name better suited to your needs. Sylvain -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake
Re: [CMake] Rename target RUN_TESTS
Le 02/01/2015 11:43, Sylvain Joubert a écrit : if(MSVC) add_custom_target(ALL_RUN_TEST ALL DEPENDS RUN_TESTS) endif() The ALL dependency should not be there. No need to run the tests at every compilation. This is better: if(MSVC) add_custom_target(ALL_RUN_TEST DEPENDS RUN_TESTS) endif() Sylvain -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake
Re: [CMake] Rename target RUN_TESTS
That doesn't work :( Unfortunately it could be that I have put the custom target command in the wrong location, however, I put it as the last line in my top level CMakeLists.txt ADD_CUSTOM_TARGET( ALL_RUN_TEST DEPENDS RUN_TESTS ) But it doesn't right mouse clicking - build doesn't give the same results as building RUN_TESTS Scott -Original Message- From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of Sylvain Joubert Sent: Friday, January 02, 2015 2:56 AM To: cmake@cmake.org Subject: Re: [CMake] Rename target RUN_TESTS Le 02/01/2015 11:43, Sylvain Joubert a écrit : if(MSVC) add_custom_target(ALL_RUN_TEST ALL DEPENDS RUN_TESTS) endif() The ALL dependency should not be there. No need to run the tests at every compilation. This is better: if(MSVC) add_custom_target(ALL_RUN_TEST DEPENDS RUN_TESTS) endif() Sylvain -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake
Re: [CMake] Rename target RUN_TESTS
On 1/2/2015 6:19 AM, Scott Aron Bloom wrote: That doesn't work:( Unfortunately it could be that I have put the custom target command in the wrong location, however, I put it as the last line in my top level CMakeLists.txt ADD_CUSTOM_TARGET( ALL_RUN_TEST DEPENDS RUN_TESTS ) But it doesn't right mouse clicking - build doesn't give the same results as building RUN_TESTS RUN_TESTS just runs ctest in a specific directory. It is easy to create a custom target ALL_RUN_TESTS that does the same thing. -Bill -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake
[CMake] Rename target RUN_TESTS
For windows Visual Studio using CMake with google test, one of the complaints my team has, is the project name RUN_TESTS gets lost in the numerous projects. Is there a CMake command to rename a target? We would like to name it ALL_RUN_TEST Scott -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake
Re: [CMake] Rename target RUN_TESTS
On Thu, Jan 1, 2015 at 11:27 PM, Scott Aron Bloom scott.bl...@onshorecs.com wrote: For windows Visual Studio using CMake with google test, one of the complaints my team has, is the project name “RUN_TESTS” gets lost in the numerous projects. I am not sure about renaming that however I find it helpful to organize my projects using solution folders with set_property(GLOBAL PROPERTY USE_FOLDERS ON) and set_target_properties(mylocalproject PROPERTIES FOLDER folder) John -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake