From e73cea8223d35e7beb9794a00ed24c3d657a2d83 Mon Sep 17 00:00:00 2001 From: Leon Lynch Date: Sun, 2 Jun 2024 10:37:01 +0200 Subject: [PATCH] Improve CMake build for dukpt-ui * dukpt-ui sub-project only requires CXX compiler * Add -Wall option for Clang compiler * Update copyright and license header --- ui/CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ui/CMakeLists.txt b/ui/CMakeLists.txt index c00a12a..190a89b 100644 --- a/ui/CMakeLists.txt +++ b/ui/CMakeLists.txt @@ -1,8 +1,8 @@ ############################################################################## -# Copyright 2022-2023 Leon Lynch +# Copyright 2022-2024 Leon Lynch # # This file is licensed under the terms of the GPL v3 license. -# See LICENSE file. +# See LICENSE.gpl file. ############################################################################## cmake_minimum_required(VERSION 3.16) @@ -11,7 +11,7 @@ project(dukpt-ui VERSION 1.2.1 DESCRIPTION "DUKPT User Interface using Qt" HOMEPAGE_URL "https://github.com/openemv/dukpt" - LANGUAGES C CXX + LANGUAGES CXX ) # Determine whether this project is the top-level project @@ -33,6 +33,9 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") add_compile_options($<$:-ggdb>) add_compile_options($<$:-ggdb>) endif() +if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") + add_compile_options(-Wall) +endif() if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") add_compile_options(-Wall) endif()