|
@@ -44,6 +44,12 @@ endif()
|
|
|
|
|
|
|
|
include(Warnings)
|
|
include(Warnings)
|
|
|
|
|
|
|
|
|
|
+if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
|
|
|
|
+ add_compile_options(-fdiagnostics-color=always)
|
|
|
|
|
+elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
|
|
|
|
+ add_compile_options(-fcolor-diagnostics)
|
|
|
|
|
+endif()
|
|
|
|
|
+
|
|
|
include(${CMAKE_SOURCE_DIR}/VERSION.cmake)
|
|
include(${CMAKE_SOURCE_DIR}/VERSION.cmake)
|
|
|
# For config.h
|
|
# For config.h
|
|
|
include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
|
|
include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
|