mirror of
https://github.com/estkme-group/lpac
synced 2024-09-11 19:40:49 +02:00
* chore: declare standard version supported by lpac Signed-off-by: Coelacanthus <CoelacanthusHex@gmail.com> * chore: add link to SGP.22 v2.2.2 Co-authored-by: septs <github@septs.pw> --------- Signed-off-by: Coelacanthus <CoelacanthusHex@gmail.com> Co-authored-by: septs <github@septs.pw>
51 lines
1.2 KiB
CMake
51 lines
1.2 KiB
CMake
cmake_minimum_required (VERSION 3.8)
|
|
|
|
project (lpac
|
|
VERSION 2.0.1
|
|
HOMEPAGE_URL "https://github.com/estkme-group/lpac"
|
|
DESCRIPTION "C-based eUICC LPA."
|
|
LANGUAGES C)
|
|
set(CMAKE_C_STANDARD 99)
|
|
set(CMAKE_C_STANDARD_REQUIRED ON)
|
|
|
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
|
|
|
# add_compile_options(-Wall -Wextra -Wpedantic)
|
|
|
|
if (APPLE)
|
|
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")
|
|
endif()
|
|
|
|
if(UNIX)
|
|
include(GNUInstallDirs)
|
|
if(NOT CMAKE_INSTALL_RPATH)
|
|
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_FULL_LIBDIR}/lpac")
|
|
endif()
|
|
endif()
|
|
|
|
if(WIN32)
|
|
add_subdirectory(dlfcn-win32)
|
|
set(DL_LIBRARY dlfcn-win32)
|
|
else()
|
|
set(DL_LIBRARY dl)
|
|
endif()
|
|
|
|
if(CPACK_GENERATOR)
|
|
set(CPACK_PACKAGE_VENDOR "eSTK.me Group")
|
|
|
|
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "eSTK.me Group")
|
|
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libc")
|
|
set(CPACK_DEBIAN_PACKAGE_RECOMMENDS "libcurl, libpcsclite, pcscd")
|
|
|
|
set(CPACK_RPM_PACKAGE_LICENSE "AGPL-3.0-only AND LGPL-2.0-only")
|
|
set(CPACK_RPM_PACKAGE_AUTOREQ "yes")
|
|
set(CPACK_RPM_PACKAGE_REQUIRES "libcurl, libpcsclite, pcscd")
|
|
|
|
include(CPack)
|
|
endif()
|
|
|
|
add_subdirectory(cjson)
|
|
add_subdirectory(euicc)
|
|
add_subdirectory(driver)
|
|
add_subdirectory(src)
|