문제

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

도움이 되었습니까?

해결책

You can use this: target_link_libraries(myexecutable mylib)

Here you can find the documentation for more details.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top