Description | Xcode needs to define CMAKE_CONFIGURATION_TYPES like the visual studio generators do.
So that we can build and run VTK-Examples
[CMAKE_CFG_INTDIR and IntDir cannot be used because the ADD_TEST command is not processed inside the build system. Choosing the matching configuration must be done at ctest time with the -C option. The ADD_TEST command is constructed to actually put a ${CTEST_CONFIGURATION_TYPE} in the test command. It is expanded by ctest when it reads the DartTestfile.txt.
This only works with CVS ctest (and maybe 2.2 but I don't remember), so VTK/Examples/CMakeLists.txt has a bunch of code to turn on this feature if the ctest is new enough. Since an older ctest or Dart could be used for testing after building with CVS cmake one also has to set the undocumented VTK_TEST_WITH_CTEST:BOOL=ON option in the cache to enable this support. I'd like a better way to detect when it is safe to add ${CTEST_CONFIGURATION_TYPE} to the test command but at the time I wrote it I just wanted to get it working for the VS tests on the dashboard machines.
] |