X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fmain%2FCMakeLists.txt;h=036746723dfc6062e14cb29e65227d24838e6907;hp=60efe515392af70e851bdcf2d362625b817819fd;hb=1e40fc6bc04df8f658f677ca5be4c970f150dc10;hpb=4ce53949ab7d52a49ae79b8817bd3aa50fada0d1 diff --git a/src/main/CMakeLists.txt b/src/main/CMakeLists.txt index 60efe515..03674672 100644 --- a/src/main/CMakeLists.txt +++ b/src/main/CMakeLists.txt @@ -10,7 +10,15 @@ endfunction() # We need to initialize the appropriate resources, so let's give our main.cpp some hints if (EMBED_DATA) - set_source_files_properties(main.cpp PROPERTIES COMPILE_DEFINITIONS EMBED_DATA) + set_property(SOURCE main.cpp APPEND PROPERTY COMPILE_DEFINITIONS EMBED_DATA) +endif() + +if (HAVE_UMASK) + set_property(SOURCE main.cpp APPEND PROPERTY COMPILE_DEFINITIONS HAVE_UMASK) +endif() + +if (WITH_BUNDLED_ICONS) + set_property(SOURCE main.cpp APPEND PROPERTY COMPILE_DEFINITIONS WITH_BUNDLED_ICONS) endif() # Build the executables