- CMake Cookbook
- Radovan Bast Roberto Di Remigio
- 36字
- 2025-04-04 16:17:17
Getting ready
We wish to compile the following source code into a single executable:
#include <cstdlib>
#include <iostream>
#include <string>
std::string say_hello() { return std::string("Hello, CMake world!"); }
int main() {
std::cout << say_hello() << std::endl;
return EXIT_SUCCESS;
}