code cleanup
This commit is contained in:
@@ -2,6 +2,15 @@ cmake_minimum_required(VERSION 3.1.0)
|
||||
|
||||
project(Rennbahn)
|
||||
|
||||
if(NOT CMAKE_BUILD_TYPE)
|
||||
set(CMAKE_BUILD_TYPE Release)
|
||||
message("Build type: RELEASE")
|
||||
endif()
|
||||
|
||||
set(CMAKE_CXX_FLAGS "-Wall -Wextra")
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "-g")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
|
||||
|
||||
# Find includes in corresponding build directories
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
# Instruct CMake to run moc automatically when needed
|
||||
@@ -14,8 +23,6 @@ find_package(Qt5Widgets CONFIG REQUIRED)
|
||||
|
||||
find_package(Qt5Sql REQUIRED)
|
||||
|
||||
|
||||
|
||||
# Populate a CMake variable with the sources
|
||||
set(helloworld_SRCS
|
||||
main.cpp
|
||||
|
||||
Reference in New Issue
Block a user