1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
cdt/cmake/org.eclipse.cdt.cmake.example/templates/simple/main.cpp
Jonah Graham 5e62200e60
Provide an example of extending CMake project type in Core Build (#1052)
In issue #1000 a lot of the work is on exposing a better API to ISVs.
This new project serves these purposes:

- Ensure the exposed API works in practice
- Example for ISVs to use if they want to extend CMake
- Provide an in-tree example of the API in use, so future editors of
  CDT have better chance of understanding *why* items are done as
  they are.
2025-01-23 09:20:39 -05:00

9 lines
382 B
C++

#include <iostream>
#include "config.h"
int main(int argc, char **argv) {
std::cout << "Hello World" << std::endl;
std::cout << "Welcome to the ISV Example for how to extend CMake projects in Eclipse CDT." << std::endl;
std::cout << "Version " << ${projectName?replace(" ", "_")}_VERSION_MAJOR << "." << ${projectName?replace(" ", "_")}_VERSION_MINOR << std::endl;
return 0;
}