My question is somewhat similar to this SO but not the same.
I created a HelloWorld
program with the following:
add_executable( HelloWorld ${SRC} )
When I generate a project file (for example a Visual Studio .sln file, or an XCode .xcodeproj file). I want to hit the run button and pass in some command line arguments to HelloWorld
when it executes the program, like the following:
./HelloWorld --gtest_filter=Test_Cases1*
Also see this SO for how this is done in Visual Studio.
Is it possible to do this in CMakeList file? If not, why?