be1033274a
(the sanitizer does not work like this, it would need also linker flags)
19 lines
424 B
CMake
19 lines
424 B
CMake
cmake_minimum_required(VERSION 3.1)
|
|
project(stc_rpncalc C CXX)
|
|
# 3rd party tools
|
|
find_package(Qt5 COMPONENTS Widgets Qml Quick REQUIRED)
|
|
|
|
set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Build type (for tests debug make sense)")
|
|
|
|
# Compiler warnings
|
|
if(MSVC)
|
|
add_compile_options(/W4 /WX)
|
|
else()
|
|
add_compile_options(-Wall -Wextra -pedantic)
|
|
endif()
|
|
|
|
# Directory with source code
|
|
add_subdirectory(src)
|
|
add_subdirectory(qt_gui)
|
|
|