Closed rockaport closed 4 years ago
Hi Andrew,
Thanks for bringing this use case up. Simple addition of include/ and source/ directories into CMakeLists.txt probably will not work as the library has many options to build it, and they have to be configured somehow. But your use case is perfectly valid and we will look into how to fix the problem.
Regards, Andrey
We made some adjustments to the build system, so it is supported now. Please take a look at the minimal example in the build instructions, and let us know if you have any issues with it.
Regards, Andrey
Apologies if this can already be accomplished, but I'm failing to include this project as a dependency by simply using
add_subdirectory
andinclude_directories
. The main reason for this is I lazily compile for different architectures and i don't want to precompile dependencies.If it was intentional for not allowing this to be included using add_subdirectory then you can disregard this.
I'm using the following directory structure as an example:
And simply adding the following to the
CMakeLists.txt
file the other dependencies work and link fine.