diff options
author | KitsuneRal <Kitsune-Ral@users.sf.net> | 2016-09-07 08:57:01 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-07 08:57:01 +0900 |
commit | 906913c899a9991d303791179b6883cbc5c02151 (patch) | |
tree | eb21d401d9f87cda316f96611a4483dd00e900c9 | |
parent | 34e7ba238f46734893111110235e032d44fd3690 (diff) | |
parent | 769cb2f694d036e59cfee0c0ce53500f3df822d9 (diff) | |
download | libquotient-906913c899a9991d303791179b6883cbc5c02151.tar.gz libquotient-906913c899a9991d303791179b6883cbc5c02151.zip |
Merge pull request #23 from Fxrh/kitsune-cmakelists
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e9127752..ea340476 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,15 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON) # Instruct CMake to run moc automatically when needed. set(CMAKE_AUTOMOC ON) +# Set a default build type if none was specified +if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) + message(STATUS "Setting build type to 'Debug' as none was specified") + set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build" FORCE) + # Set the possible values of build type for cmake-gui + set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" + "MinSizeRel" "RelWithDebInfo") +endif() + find_package(Qt5Core 5.2.0) # For JSON (de)serialization find_package(Qt5Network 5.2.0) # For networking find_package(Qt5Gui 5.2.0) # For userpics |