cmake: set warning and error options

The set is far from perfect, but guards against common errors with GCC.
This commit is contained in:
Eugene Shalygin
2017-04-27 14:35:28 +02:00
committed by sledgehammer999
parent b98ef9905e
commit 44f81a2d2b
9 changed files with 147 additions and 7 deletions

View File

@@ -2,6 +2,9 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_CXX_STANDARD "11")
add_definitions(-DBOOST_NO_CXX11_RVALUE_REFERENCES)
include(MacroQbtCompilerSettings)
qbt_set_compiler_options()
include(MacroLinkQtComponents)
include(QbtTargetSources)