Removed handling of Debug build in CMake projects.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user