changed structure
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
cmake_minimum_required(VERSION 3.24)
|
||||
project(cppout)
|
||||
|
||||
file(GLOB SOURCE_FILES "*.cpp")
|
||||
|
||||
add_executable(${PROJECT_NAME} ${SOURCE_FILES})
|
||||
@@ -0,0 +1,4 @@
|
||||
#include <cstdio>
|
||||
void printhello(const char *name) {
|
||||
printf("hello %s \n", name);
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
void printhello(const char *name);
|
||||
@@ -0,0 +1,7 @@
|
||||
#include <cstdlib>
|
||||
#include "hello.h"
|
||||
int main() {
|
||||
printhello("test");
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
Reference in New Issue
Block a user