diff --git a/.gitignore b/.gitignore index 0295674..fbf32cd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .* build +build-* CMakeLists.txt.user diff --git a/CMakeLists.txt b/CMakeLists.txt index 26f4ba4..b4802fc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,9 +27,7 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX) endif() endif() -if(NOT(CMAKE_BUILD_TYPE STREQUAL "Debug")) - add_definitions(-D_DEBUG) -endif() +set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG") include(${QT_USE_FILE}) add_definitions(${QT_DEFINITIONS})