chore: add project infos in cmake config file
This commit is contained in:
parent
fd46d46676
commit
fce426a998
@ -24,11 +24,14 @@
|
|||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.16)
|
cmake_minimum_required(VERSION 3.16)
|
||||||
|
|
||||||
set(CMAKE_USER_MAKE_RULES_OVERRIDE "cmake/FlagsOverrides.cmake")
|
set(CMAKE_USER_MAKE_RULES_OVERRIDE "cmake/FlagsOverrides.cmake")
|
||||||
|
|
||||||
# define project
|
# define project
|
||||||
project(GpgFrontend VERSION 2.1.1 LANGUAGES CXX)
|
project(GpgFrontend
|
||||||
|
VERSION 2.1.1
|
||||||
|
DESCRIPTION "GpgFrontend is a free, open-source, robust yet user-friendly, compact and cross-platform tool for OpenPGP encryption."
|
||||||
|
HOMEPAGE_URL "https://gpgfrontend.bktus.com"
|
||||||
|
LANGUAGES CXX)
|
||||||
|
|
||||||
# show cmake version
|
# show cmake version
|
||||||
message(STATUS "GpgFrontend Build Configuration Started CMAKE Version ${CMAKE_VERSION}")
|
message(STATUS "GpgFrontend Build Configuration Started CMAKE Version ${CMAKE_VERSION}")
|
||||||
@ -334,11 +337,13 @@ if (LINUX)
|
|||||||
message(STATUS "GpgFrontend Configuration For OS Platform Linux")
|
message(STATUS "GpgFrontend Configuration For OS Platform Linux")
|
||||||
|
|
||||||
set(OS_PLATFORM 2)
|
set(OS_PLATFORM 2)
|
||||||
ADD_DEFINITIONS(-DLINUX)
|
add_compile_definitions(LINUX)
|
||||||
|
|
||||||
# Get Env Info
|
# Get Env Info
|
||||||
exec_program(uname OUTPUT_VARIABLE SYSTEM_NAME)
|
find_program(UNAME_PROGRAM uname)
|
||||||
set(SYSTEM_NAME "${SYSTEM_NAME}" CACHE INTERNAL "")
|
if(UNAME_PROGRAM)
|
||||||
|
execute_process(COMMAND ${UNAME_PROGRAM} OUTPUT_VARIABLE SYSTEM_NAME OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(USING_COMPILER_CLANG)
|
if(USING_COMPILER_CLANG)
|
||||||
add_compile_options(-stdlib=libstdc++)
|
add_compile_options(-stdlib=libstdc++)
|
||||||
@ -346,7 +351,7 @@ if (LINUX)
|
|||||||
|
|
||||||
if(SYSTEM_NAME STREQUAL "FreeBSD")
|
if(SYSTEM_NAME STREQUAL "FreeBSD")
|
||||||
message(STATUS "FreeBSD BOX")
|
message(STATUS "FreeBSD BOX")
|
||||||
ADD_DEFINITIONS(-DFREEBSD)
|
add_compile_definitions(FREEBSD)
|
||||||
set(FREEBSD TRUE)
|
set(FREEBSD TRUE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user