Create project skeleton
This commit is contained in:
5
engine/CMakeLists.txt
Normal file
5
engine/CMakeLists.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
add_library(engine
|
||||
foo.c
|
||||
)
|
||||
set_default_target_options(engine)
|
||||
target_include_directories(engine PUBLIC include)
|
||||
11
engine/foo.c
Normal file
11
engine/foo.c
Normal file
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* Copyright (c) Camden Dixie O'Brien
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
#include "foo.h"
|
||||
|
||||
int foo(void)
|
||||
{
|
||||
return 42;
|
||||
}
|
||||
11
engine/include/foo.h
Normal file
11
engine/include/foo.h
Normal file
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* Copyright (c) Camden Dixie O'Brien
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
#ifndef FOO_H
|
||||
#define FOO_H
|
||||
|
||||
int foo(void);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user