Re: [CMake] CTest not searching for the correct executable

2018-01-05 Thread Saad Khattak
That was it, thanks Nils! For future reference, after adding the test like Nils suggested, calling "ctest" wouldn't work as it now needs your configuration: ctest -C Debug On Fri, Jan 5, 2018 at 11:16 AM Nils Gladitz wrote: > On 05.01.2018 17:11, Saad Khattak wrote: > > Hi, > > Suppose I have

Re: [CMake] CTest not searching for the correct executable

2018-01-05 Thread Nils Gladitz
On 05.01.2018 17:11, Saad Khattak wrote: Hi, Suppose I have something like this: add_executable(MyTest main.cpp) set_target_properties(MyTest   PROPERTIES   DEBUG_POSTFIX _d   RELEASE_POSTFIX _r   ) add_test(RunTests MyTest) # where MyTest is the I expect CMake to recognize that "MyTest" has

[CMake] CTest not searching for the correct executable

2018-01-05 Thread Saad Khattak
Hi, Suppose I have something like this: add_executable(MyTest main.cpp) set_target_properties(MyTest PROPERTIES DEBUG_POSTFIX _d RELEASE_POSTFIX _r ) add_test(RunTests MyTest) # where MyTest is the I expect CMake to recognize that "MyTest" has executables that are named "MyTest_d" and "