I currently can’t figure out how to install an application. Thought with modern cmake it should pretty much only be:
add_exectuable(Test ...)
install(TARGETS Test)
And that’s it. That does literally install everything, all libaries Test depends on (headers, libs, documentation and whatnot), but not the executable itself.
Shouldn’t Test.out (or Test.exe on Windows) land into bin? Do I need anymore configuration?
I would be happy if my exetuable install, but as I’m already asking: Is there also a way to just install my executable (and perhaps libaries it needs) rather than literally everything (like headers, documentation, cmake files)?
Could you please share the full CMake around the executable? I suspect that you might be running into some corner of CMake that assumes things about CMake’s builtin targets (of which test, with a lowercase t is one). Does it work if you rename the executable target name?
This looks OK to me. Did you, perhaps, forget an add_subdirectory(packing)? Is there a packing/cmake_install.cmake script in the build tree? Does it mention BeansApp?