Properly link flecs library
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#ifndef ${id upper}_H
|
||||
#define ${id upper}_H
|
||||
|
||||
/* This generated file contains includes for project dependencies */
|
||||
#include "${id dash}/bake_config.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
8
engine/libs/flecs/templates/cpp/flecs/project.json
Normal file
8
engine/libs/flecs/templates/cpp/flecs/project.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"id": "flecs",
|
||||
"type": "template",
|
||||
"value": {
|
||||
"use": ["flecs"],
|
||||
"language": "c++"
|
||||
}
|
||||
}
|
||||
13
engine/libs/flecs/templates/cpp/flecs/src/main.cpp
Normal file
13
engine/libs/flecs/templates/cpp/flecs/src/main.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <${id underscore}.h>
|
||||
#include <iostream>
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
flecs::world world(argc, argv);
|
||||
|
||||
world.set_target_fps(1);
|
||||
|
||||
std::cout << "Application ${id} is running, press CTRL-C to exit..." << std::endl;
|
||||
|
||||
/* Run systems */
|
||||
while (world.progress()) { }
|
||||
}
|
||||
Reference in New Issue
Block a user