floooh / oryol

A small, portable and extensible C++ 3D coding framework
MIT License
2k stars 200 forks source link

Adding a new CMake dependency without using fips? #347

Closed ghost closed 4 years ago

ghost commented 4 years ago

Hello, What do I have to do to add something like this: https://github.com/prabhuomkar/pytorch-cpp/blob/master/CMakeLists.txt To any of the samples, without wrapping in a fips module? Can I mix and match fips and plain CMake?

Thanks,

floooh commented 4 years ago

It should work, but directly integrating a complex CMakeLists.txt is usually also a lot of hassle. Usually (when not wrapping the project in a fips dependency) I rip the necessary parts out of the original project's CMakeLists.txt file and integrate them directly into the project's cmake hierarchy (like here for instance: https://github.com/floooh/sokol-tools/blob/master/ext/CMakeLists.txt