[CMake] Replace `ctest` command with `ctest --output-on-failure`

2016-04-19 Thread Muhammad Osama
Hi, Is there a way I can replace ctest command with ctest --some-flag in CMakeLists.txt? So, when my users run cmake, make and ctest. They are actually performing cmake, make and ctest --some-flag? I don't want them to worry about the flag and just type ctest. Thank you, -- *Muhammad

Re: [CMake] CMakeLists.txt: How to print a message if ctest fails?

2016-04-19 Thread Muhammad Osama
ETURN_VALUE test_failed) > > endif(($ENV{DO_TEST}) AND NOT (configure_failed OR build_failed)) > > > > if($ENV{DO_DASHBOARD}) > > ctest_submit() > > endif($ENV{DO_DASHBOARD}) > > > > if (configure_failed OR build_failed OR test_failed) > > message(FATAL_ERRO

Re: [CMake] CMakeLists.txt: How to print a message if ctest fails?

2016-04-18 Thread Muhammad Osama
OR test_failed) > > message(FATAL_ERROR "Test ${CTEST_BUILD_NAME} failed.") > > endif() > > > > Best regards, > > Miroslav > > > > *From:* CMake [mailto:cmake-boun...@cmake.org] *On Behalf Of *Muhammad > Osama > *Sent:* Friday, April 15, 2016

[CMake] CMakeLists.txt: How to print a message if ctest fails?

2016-04-15 Thread Muhammad Osama
Is there a way I can setup CMakeLists.txt to print a message if ctest tests fail? For example: cmake .. make ctest // fails message output: Please contact x...@mail.com to resolve testing problems. ​Note the message output is not for cmake but for ctest.​ --​​ Muhammad -- Powered by www.kitwar

Re: [CMake] Create main and sub-projects; be able to compile them together and individually.

2016-03-08 Thread Muhammad Osama
r if they don't want to manually build things > separately or if they don't have existing installs. That's what I am doing > with my projects. > > On Tue, Mar 8, 2016 at 7:17 PM, Muhammad Osama wrote: > >> Wow, this is powerful! Question; Will I be able to compil

Re: [CMake] Create main and sub-projects; be able to compile them together and individually.

2016-03-08 Thread Muhammad Osama
orward > the appropriate arguments. There is a lot of customizability to it > (customizing each step, for example). If you want I could make an example > exactly like your provided example directory structure, but I think both of > my personal usages closely match what you are wanting

Re: [CMake] Create main and sub-projects; be able to compile them together and individually.

2016-03-08 Thread Muhammad Osama
using a local > path instead of downloading a remote repository: > > https://cmake.org/cmake/help/latest/module/ExternalProject.html > > On Tue, Mar 8, 2016 at 12:12 PM, Muhammad Osama wrote: > >> Hi Jan, >> >> Thank you for your reply, I am in the similar situ

Re: [CMake] Create main and sub-projects; be able to compile them together and individually.

2016-03-08 Thread Muhammad Osama
; Hi Muhammad, > > > On 08.03.2016, at 06:17, Muhammad Osama wrote: > > > > Hi, I am new to cmake and really hope am doing this correctly. I asked > stackoverflow but didn't get a good enough answer for my specific problem > here; > > > > If I want root/sub-dir

[CMake] Fwd: Create main and sub-projects; be able to compile them together and individually.

2016-03-07 Thread Muhammad Osama
k you. -- Muhammad Osama -- 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://cmak