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)