#how to compile the cubzh
1 messages · Page 1 of 1 (latest)
Hello !
cli is only a tool to manipulate cubzh files, the voxel engine is located in the core directory.
Note this is not the entire app, but only the voxel engine used by the app.
Other modules are going to be added, we need a bit more time to better organize things.
That's cool
So, to compile the "core" folder like Library, me need do this?:
|||
project(YourLibrary)
file(GLOB SOURCES "core/.cpp")
file(GLOB HEADERS "core/.h")
add_library(YourLibrary ${SOURCES} ${HEADERS})
|||
you can get some inspiration from the unit tests program compilation : https://github.com/cubzh/cubzh/blob/main/core/tests/cmake/CMakeLists.txt