morte
morte

Reputation: 361

How to Display extra files in QtCreator project tree (CMake-project)?

In qmake-project i can use OTHER_FILES += "android/AndroidManifest.xml" to display AndroidManifest.xml at QtCreator's project tree, how to do similar with CMake project?

Upvotes: 2

Views: 229

Answers (1)

Samuel Mira
Samuel Mira

Reputation: 46

You can use the add_custom_target in cmake. Example:

add_custom_target(android-related-files SOURCES "android/AndroidManifest.xml")

will show something like this:

add_custom_target result example

Upvotes: 2

Related Questions