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

2016-03-08 Thread Muhammad Osama
losely match what you are wanting to do. > > On Tue, Mar 8, 2016 at 7:02 PM, Muhammad Osama <osam...@gmail.com> wrote: > >> Thank you for your suggestion Nicholas, I have never used >> ExternalProject_Add before and can't find a related example to my project. >&g

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

2016-03-08 Thread Muhammad Osama
ou looked into ExternalProject_Add? It allows just 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 <osam...@gmail.com> wrote: > >> Hi Jan, >> >

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

2016-03-08 Thread Muhammad Osama
all together as a > convenience for the user 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 <osam...@gmail.com> wrote: > >> Wow,

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

2016-03-07 Thread Muhammad Osama
. -- 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://cmake.org

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

2016-03-08 Thread Muhammad Osama
wrote: > Hi Muhammad, > > > On 08.03.2016, at 06:17, Muhammad Osama <osam...@gmail.com> 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 > he

[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

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

2016-04-18 Thread Muhammad Osama
iled) > > 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 8:53 PM &

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

2016-04-19 Thread Muhammad Osama
t_test(RETURN_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_ERROR &qu

[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 Osama