How to include sources from different paths



  • Hello,

    I am working through a workspace where we've got some common concerns in a common folder in the workspace. The main Qt CMake app is in another location apart from that. The app files get sucked into the project just fine. However, how do I tell CMake to locate specific source files apart from the main project ones?

    Regards,

    Michael



  • I'm reading about AUX_SOURCE_DIRECTORY, which pulls everything in the current directory into SRC_LIST. However, I want to also include a couple of very specific files apart from just those from the common location. Not all the files in the common location as file(GLOB) posts would suggest, but one or two.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.