Simple cmake example with working ccls

This commit is contained in:
2025-02-04 13:44:55 +01:00
commit 89361cc735
6 changed files with 56 additions and 0 deletions

6
src/HelloWorld.cpp Normal file
View File

@@ -0,0 +1,6 @@
#include "HelloWorld.h"
#include <iostream>
void HelloWorld::printMessage(const std::string &message) {
std::cout << message << std::endl;
}

7
src/main.cpp Normal file
View File

@@ -0,0 +1,7 @@
#include "HelloWorld.h"
int main() {
HelloWorld hello;
hello.printMessage("Hello, World!");
return 0;
}