Skip to content

Commit

Permalink
Improve CMake build for dukpt-ui
Browse files Browse the repository at this point in the history
* dukpt-ui sub-project only requires CXX compiler
* Add -Wall option for Clang compiler
* Update copyright and license header
  • Loading branch information
leonlynch committed Jun 2, 2024
1 parent 45c527c commit e73cea8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ui/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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
Expand All @@ -33,6 +33,9 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
add_compile_options($<$<CONFIG:Debug>:-ggdb>)
add_compile_options($<$<CONFIG:RelWithDebInfo>:-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()
Expand Down

0 comments on commit e73cea8

Please sign in to comment.