|
|
@ -5,16 +5,13 @@ set( CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules" )
|
|
|
|
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" )
|
|
|
|
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" )
|
|
|
|
|
|
|
|
|
|
|
|
if( CMAKE_COMPILER_IS_GNUCXX )
|
|
|
|
if( CMAKE_COMPILER_IS_GNUCXX )
|
|
|
|
execute_process( COMMAND ${CMAKE_C_COMPILER} -dumpversion
|
|
|
|
if( CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 4.9 OR
|
|
|
|
OUTPUT_VARIABLE GCC_VERSION )
|
|
|
|
CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 4.9 )
|
|
|
|
string( REGEX REPLACE "(\r?\n)+$" "" GCC_VERSION "${GCC_VERSION}" )
|
|
|
|
message( STATUS "Found GNU g++ ${CMAKE_CXX_COMPILER_VERSION}, enabling colorized error messages." )
|
|
|
|
if( GCC_VERSION VERSION_GREATER 4.9 OR GCC_VERSION VERSION_EQUAL 4.9 )
|
|
|
|
|
|
|
|
message( STATUS "Found GNU g++ ${GCC_VERSION}, enabling colorized error messages." )
|
|
|
|
|
|
|
|
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fdiagnostics-color=always" )
|
|
|
|
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fdiagnostics-color=always" )
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cmake_policy( SET CMP0023 OLD )
|
|
|
|
cmake_policy( SET CMP0023 OLD )
|
|
|
|
|
|
|
|
|
|
|
|
find_package( Qt5 5.3.0 CONFIG REQUIRED Core Gui Widgets LinguistTools )
|
|
|
|
find_package( Qt5 5.3.0 CONFIG REQUIRED Core Gui Widgets LinguistTools )
|
|
|
|