Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 1
    Why are you using aux_source_directory here? Commented Jul 21, 2017 at 15:17
  • @SirDarius, just for the sake of completeness. I use aux_source_directory for all projects to collect source files. Commented Jul 21, 2017 at 15:18
  • 2
    I'm mentioning this because the documentation says explicitely that it is not good practice and this command should only be used for explicit template instanciation. Explicitely listing source files is the preferred way in CMake. Commented Jul 21, 2017 at 15:22
  • @SirDarius, thanks for the clarification. This is my bad habit then which may originating from Qt Creator's CMake project template. Commented Jul 21, 2017 at 15:27