Frage

i'm trying to convert a qmake project to CMake. How can i translate "CONFIG" to CMake or what is the CMake's way of using the CONFIG variable?

e.g. CONFIG += mylib

War es hilfreich?

Lösung

You can use this: target_link_libraries(myexecutable mylib)

Here you can find the documentation for more details.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top