Thanks very much! The other piece I was missing is that CMake uses if/else statements. So, the result is:
if(APPLE) target_compile_options(mytarget PRIVATE -DMAC_ONLY_SYMBOL) else() target_compile_options(mytarget PRIVATE -DOTHER_SYMBOL) endif()Qt Creator and other tools
Have a question about Qt Creator, our cross-platform IDE, or any of the other tools? Ask here!
7.4k
Topics
34.4k
Posts
-
-
-
New AI Assistant
Unsolved -
-
-
-
-
Adding Icons in UI
Unsolved -
Creator Cmake - Hide generated files
Unsolved -
Debugging a C++/QML/Python combo with QtCreator
Moved Unsolved -
-
-
QPushbutton
Unsolved -
This topic is deleted!
Unsolved -
Debugger doesn't stop after closing app
Moved Solved -
-
-
Conditional include of different .pri files
Moved Unsolved -
-
Qt VS Tools, QML Debugging
Unsolved