Properly link flecs library
This commit is contained in:
14
engine/libs/flecs/test/custom_builds/cpp/module/src/main.cpp
Normal file
14
engine/libs/flecs/test/custom_builds/cpp/module/src/main.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <module.h>
|
||||
#include <iostream>
|
||||
|
||||
struct my_module {
|
||||
my_module(flecs::world& world) {
|
||||
world.module<my_module>();
|
||||
}
|
||||
};
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
flecs::world world(argc, argv);
|
||||
|
||||
world.import<my_module>();
|
||||
}
|
||||
Reference in New Issue
Block a user