Removed handling of Debug build in CMake projects.

This commit is contained in:
Rasim Labibov
2017-10-31 15:57:24 +02:00
parent 2a2681ac19
commit bc570313c8
2 changed files with 0 additions and 10 deletions
-5
View File
@@ -1,10 +1,5 @@
cmake_minimum_required(VERSION 2.8)
# Common project properties
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILT_TYPE Debug CACHE STRING "Choose the type of build, options are: Debug Release" FORCE)
endif()
# 3rd party tools
find_package(Qt5 COMPONENTS Widgets Qml Quick REQUIRED)
-5
View File
@@ -10,10 +10,6 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
if(CMAKE_BUILD_TYPE MATCHES Debug)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG")
endif()
set(PROJECT "MinimalQml")
@@ -32,7 +28,6 @@ endif()
source_group("Header Files" FILES ${HEADERS})
source_group("Source Files" FILES ${SOURCES})
add_executable(${PROJECT} ${HEADERS} ${SOURCES} ${QT_RESOURCES})
target_link_libraries(${PROJECT}