cmake: Modernize compile settings; require C++14
[quassel.git] / cmake / QuasselMacros.cmake
index 1c0c687..02b3165 100644 (file)
@@ -7,6 +7,7 @@
 ###################################################################################################
 
 include(CMakeParseArguments)
+include(QuasselCompileFeatures)
 
 ###################################################################################################
 # Adds a library target for a Quassel module.
@@ -41,6 +42,8 @@ function(quassel_add_module _module)
         PRIVATE ${CMAKE_CURRENT_BINARY_DIR} # for generated files
     )
 
+    target_compile_features(${target} PUBLIC ${QUASSEL_COMPILE_FEATURES})
+
     # Export the target name for further use
     set(TARGET ${target} PARENT_SCOPE)
 endfunction()