https://github.com/Kitware/CMake
Raw File
Tip revision: ffa164736ec78f27583ca4515ff3dfc7a82fc702 authored by Brad King on 07 September 2017, 16:14:26 UTC
CMake 3.9.2
Tip revision: ffa1647
CTestConfig.cxx
#include <stdio.h>

int main(int argc, const char* argv[])
{
  int i = 0;
  for (; i < argc; ++i) {
    fprintf(stdout, "%s\n", argv[i]);
  }

#ifdef CMAKE_BUILD_TYPE
  fprintf(stdout, "CMAKE_BUILD_TYPE is %s\n", CMAKE_BUILD_TYPE);
#endif

#ifdef CMAKE_INTDIR
  fprintf(stdout, "CMAKE_INTDIR is %s\n", CMAKE_INTDIR);
#endif

  return 0;
}
back to top