2020-12-11 22:36:10 +01:00
|
|
|
cmake_minimum_required(VERSION 3.18)
|
2021-03-01 19:01:15 +01:00
|
|
|
project(Yerbacon VERSION 0.0.1 LANGUAGES C CXX)
|
2021-03-13 18:49:53 +01:00
|
|
|
set(EXENAME "ybcon")
|
2020-12-11 22:24:44 +01:00
|
|
|
|
2021-03-12 21:24:28 +01:00
|
|
|
if (NOT DEFINED CODENAME)
|
|
|
|
set(CODENAME "Unknown")
|
|
|
|
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/misc/codename.txt")
|
|
|
|
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/misc/codename.txt" CODENAME)
|
2021-03-24 11:49:20 +01:00
|
|
|
endif()
|
2021-03-12 21:24:28 +01:00
|
|
|
endif()
|
|
|
|
|
2021-03-17 15:32:24 +01:00
|
|
|
set(EXEDESC "Transpiler for the yerbacon language.")
|
2021-07-07 17:02:49 +02:00
|
|
|
string(TIMESTAMP SHORT_BUILD_TIMESTAMP "%Y%m")
|
|
|
|
string(SUBSTRING ${SHORT_BUILD_TIMESTAMP} 2 4 SHORT_BUILD_TIMESTAMP)
|
2021-07-07 16:34:35 +02:00
|
|
|
string(ASCII 169 CopyrightCharacter)
|
|
|
|
string(TIMESTAMP LEGALCOPYRIGHT "Copyright ${CopyrightCharacter} 2020-%Y. Available under the MPL-2.0 license.")
|
2021-03-17 15:32:24 +01:00
|
|
|
file(COPY "resources/${PROJECT_NAME}.ico" DESTINATION "processed")
|
|
|
|
configure_file("resources/${PROJECT_NAME}.manifest" "processed/${PROJECT_NAME}.manifest" @ONLY)
|
2021-03-13 18:53:11 +01:00
|
|
|
configure_file("resources/${PROJECT_NAME}.rc" "processed/${PROJECT_NAME}.rc" @ONLY)
|
2021-03-12 21:24:28 +01:00
|
|
|
|
2020-12-11 22:24:44 +01:00
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
2020-12-11 22:36:10 +01:00
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
2021-03-24 11:47:51 +01:00
|
|
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
2021-03-29 00:20:41 +02:00
|
|
|
include(CheckPIESupported)
|
2021-06-11 07:25:18 +02:00
|
|
|
check_pie_supported(OUTPUT_VARIABLE pie_output LANGUAGES CXX)
|
2021-03-29 00:20:41 +02:00
|
|
|
if (NOT CMAKE_CXX_LINK_PIE_SUPPORTED)
|
2021-09-12 10:37:28 +02:00
|
|
|
message(WARNING "Link-time PIE not supported\n${pie_output}")
|
|
|
|
else()
|
|
|
|
set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
|
2021-03-27 11:10:08 +01:00
|
|
|
endif()
|
2021-03-29 00:20:41 +02:00
|
|
|
set(CMAKE_CXX_FLAGS "-Wall")
|
2021-09-18 22:51:04 +02:00
|
|
|
set(CMAKE_CXX_FLAGS_RELEASE "-Os")
|
2021-08-09 17:17:38 +02:00
|
|
|
set(MINIMAL_GNU "11.0")
|
|
|
|
set(MINIMAL_CLANG "13.0")
|
2021-09-12 12:31:02 +02:00
|
|
|
set(IS_GNU (${CMAKE_CXX_COMPILER_ID} STREQUAL GNU))
|
|
|
|
set(IS_CLANG (${CMAKE_CXX_COMPILER_ID} STREQUAL Clang))
|
2021-03-27 11:10:08 +01:00
|
|
|
|
2021-08-28 23:09:34 +02:00
|
|
|
if (NOT DEFINED CCACHE_PRESENT)
|
|
|
|
find_program(CCACHE_PRESENT ccache)
|
|
|
|
endif()
|
2021-08-27 12:08:56 +02:00
|
|
|
if(CCACHE_PRESENT)
|
|
|
|
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
|
|
|
|
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
|
|
|
|
endif(CCACHE_PRESENT)
|
|
|
|
|
2021-09-12 12:31:02 +02:00
|
|
|
if (${IS_GNU} OR ${IS_CLANG})
|
2021-09-14 12:50:55 +02:00
|
|
|
if (NOT MINGW)
|
2021-09-12 12:31:02 +02:00
|
|
|
include(FindOpenMP)
|
|
|
|
if (OpenMP_CXX_FOUND)
|
2021-09-12 12:45:15 +02:00
|
|
|
set(CMAKE_CXX_FLAGS "${OpenMP_CXX_FLAGS} ${CMAKE_CXX_FLAGS}")
|
2021-09-12 12:31:02 +02:00
|
|
|
add_definitions(-D_GLIBCXX_PARALLEL)
|
|
|
|
endif()
|
|
|
|
endif()
|
2021-09-22 15:49:07 +02:00
|
|
|
set(CMAKE_CXX_FLAGS "-pthread ${CMAKE_CXX_FLAGS} -fstrict-enums -pipe -fstack-protector-strong -fstack-clash-protection -funwind-tables -fasynchronous-unwind-tables -frtti -fexceptions")
|
2021-08-10 10:58:18 +02:00
|
|
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -ffunction-sections -fdata-sections -fmerge-all-constants -ftree-vectorize")
|
2021-03-20 21:20:21 +01:00
|
|
|
include(CheckCXXCompilerFlag)
|
2021-08-22 17:03:53 +02:00
|
|
|
set(CF_PROTECTION "-fcf-protection")
|
|
|
|
CHECK_CXX_COMPILER_FLAG("${CF_PROTECTION}" CF_PROTECTION_SUPPORTED)
|
2021-03-24 11:40:33 +01:00
|
|
|
if (CF_PROTECTION_SUPPORTED)
|
2021-08-22 17:03:53 +02:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CF_PROTECTION}")
|
2021-03-20 21:20:21 +01:00
|
|
|
endif()
|
2021-02-26 18:05:01 +01:00
|
|
|
endif()
|
|
|
|
|
2021-09-22 15:49:07 +02:00
|
|
|
include(CheckIPOSupported)
|
|
|
|
check_ipo_supported(RESULT CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE LANGUAGES CXX)
|
|
|
|
|
2021-09-12 12:31:02 +02:00
|
|
|
if (${IS_GNU})
|
2021-08-10 10:32:04 +02:00
|
|
|
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS ${MINIMAL_GNU})
|
2021-08-09 17:17:38 +02:00
|
|
|
message(FATAL_ERROR "G++ ${MINIMAL_GNU} or higher is required.")
|
2021-08-09 10:55:59 +02:00
|
|
|
endif()
|
2021-09-18 20:01:44 +02:00
|
|
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -foptimize-strlen -fsched-pressure -flive-range-shrinkage -fpredictive-commoning -ftree-partial-pre -fzero-call-used-regs=used-gpr-arg -ftree-parallelize-loops=2 -fira-loop-pressure -ftree-loop-distribution -floop-interchange -fsplit-paths -fgcse-las -fgcse-sm -fipa-pta -fstdarg-opt -fivopts -s")
|
2021-09-22 15:49:07 +02:00
|
|
|
if (${CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE})
|
|
|
|
set(CMAKE_CXX_FLAGS_RELEASE "-fwhole-program ${CMAKE_CXX_FLAGS_RELEASE}")
|
|
|
|
endif()
|
2021-09-12 12:31:02 +02:00
|
|
|
elseif(${IS_CLANG})
|
2021-08-10 10:32:04 +02:00
|
|
|
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS ${MINIMAL_CLANG})
|
2021-08-09 17:17:38 +02:00
|
|
|
message(FATAL_ERROR "Clang ${MINIMAL_CLANG} or higher is required.")
|
2021-08-09 10:55:59 +02:00
|
|
|
endif()
|
2021-09-22 15:49:07 +02:00
|
|
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -flto=full -fwhole-program-vtables -fstrict-vtable-pointers")
|
2020-12-11 22:36:10 +01:00
|
|
|
endif()
|
|
|
|
|
2021-03-25 19:16:38 +01:00
|
|
|
if (MINGW OR MSVC)
|
2020-12-11 22:36:10 +01:00
|
|
|
if (UNIX)
|
|
|
|
SET(CMAKE_RC_COMPILE_OBJECT
|
|
|
|
"<CMAKE_RC_COMPILER> <FLAGS> -O coff <DEFINES> -i <SOURCE> -o <OBJECT>")
|
2021-08-10 12:22:28 +02:00
|
|
|
if (NOT DEFINED CMAKE_RC_COMPILER)
|
|
|
|
SET(CMAKE_RC_COMPILER i686-w64-mingw32-windres)
|
|
|
|
endif()
|
2020-12-11 22:36:10 +01:00
|
|
|
endif()
|
|
|
|
ENABLE_LANGUAGE(RC)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# CPack configuration
|
2021-03-25 13:36:42 +01:00
|
|
|
set(CPACK_THREADS 0) # Used by CMake 3.20+
|
|
|
|
set(CPACK_ARCHIVE_THREADS ${CPACK_THREADS})
|
2021-02-14 12:57:42 +01:00
|
|
|
set(CPACK_STRIP_FILES TRUE)
|
2021-02-14 10:38:48 +01:00
|
|
|
set(CPACK_VERBATIM_VARIABLES TRUE)
|
2021-02-13 22:15:45 +01:00
|
|
|
string(TIMESTAMP TIME "%Y.%m+%d")
|
|
|
|
set(CPACK_PACKAGE_VERSION "${PROJECT_VERSION}-${TIME}")
|
2020-12-11 22:36:10 +01:00
|
|
|
set(CPACK_PACKAGE_VENDOR "Contributor(s)")
|
|
|
|
set(CPACK_PACKAGE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/resources/Yerbacon.png")
|
2021-03-12 21:24:28 +01:00
|
|
|
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/misc/desc.txt")
|
2021-03-17 15:32:24 +01:00
|
|
|
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${EXEDESC}")
|
2020-12-11 22:36:10 +01:00
|
|
|
set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
|
|
|
|
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.txt")
|
|
|
|
set(CPACK_PACKAGE_CONTACT "Username404 <w.iron.zombie@gmail.com>")
|
|
|
|
set(CPACK_PACKAGE_INSTALL_DIRECTORY "Yerbacon ${CMAKE_PROJECT_VERSION_MAJOR}.${CMAKE_PROJECT_VERSION_MINOR}")
|
2021-03-13 17:34:31 +01:00
|
|
|
set(CPACK_PACKAGE_FILE_NAME "${PROJECT_NAME}-${CMAKE_PROJECT_VERSION}-${TIME}")
|
2020-12-11 22:36:10 +01:00
|
|
|
|
|
|
|
include_directories(${CMAKE_CURRENT_LIST_DIR})
|
2021-08-06 19:10:28 +02:00
|
|
|
add_executable(${EXENAME} src/main.cpp ${CMAKE_CURRENT_BINARY_DIR}/processed/${PROJECT_NAME}.rc src/etc/filefuncs.cpp src/etc/lexer.cpp src/headers/lex.hpp src/headers/misc.hpp src/headers/parsing/ParseComponents.hpp src/headers/transpiler/Target.hpp src/headers/transpiler/implementations/Lua.hpp src/headers/transpiler/implementations/Js.hpp src/headers/transpiler/implementations/Py.hpp src/headers/parsing/Parser.hpp src/headers/Yerbacon.hpp src/headers/arguments.hpp)
|
2021-03-12 22:07:37 +01:00
|
|
|
target_compile_definitions(ybcon PRIVATE YBCON_VERSION="${CODENAME} ${PROJECT_VERSION}")
|
2020-12-11 22:36:10 +01:00
|
|
|
|
|
|
|
# lpkg = linux package, wpkg = windows package
|
2021-03-12 22:16:11 +01:00
|
|
|
set(PNAME ${PROJECT_NAME}-${CODENAME}-${TIME})
|
2020-12-11 22:36:10 +01:00
|
|
|
if (UNIX AND NOT MINGW)
|
2021-02-25 22:02:27 +01:00
|
|
|
include(GNUInstallDirs)
|
2021-03-24 13:18:17 +01:00
|
|
|
set(CMAKE_INSTALL_PREFIX "/usr")
|
2021-03-11 20:20:51 +01:00
|
|
|
set(CPACK_PACKAGING_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
2021-03-12 22:16:11 +01:00
|
|
|
set(CPACK_PACKAGE_FILE_NAME "${PNAME}_lpkg")
|
2021-03-18 14:39:26 +01:00
|
|
|
set(CPACK_DEBIAN_PACKAGE_CONTROL_STRICT_PERMISSION TRUE)
|
2021-03-24 13:18:17 +01:00
|
|
|
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/scripts/postinst" "processed/postinst" @ONLY)
|
|
|
|
set(CPACK_RPM_POST_INSTALL_SCRIPT_FILE "${CMAKE_CURRENT_BINARY_DIR}/processed/postinst")
|
|
|
|
set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA ${CPACK_RPM_POST_INSTALL_SCRIPT_FILE})
|
2021-08-18 12:57:00 +02:00
|
|
|
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
|
2021-03-24 14:06:55 +01:00
|
|
|
set(CPACK_DEBIAN_COMPRESSION_TYPE xz)
|
2021-03-25 13:43:32 +01:00
|
|
|
set(CPACK_RPM_COMPRESSION_TYPE ${CPACK_DEBIAN_COMPRESSION_TYPE})
|
2021-02-13 22:36:04 +01:00
|
|
|
set(CPACK_RPM_PACKAGE_AUTOREQ YES)
|
2021-02-14 10:21:54 +01:00
|
|
|
set(CPACK_RPM_PACKAGE_LICENSE "MPL-2.0")
|
2021-03-24 12:55:38 +01:00
|
|
|
set(CPACK_RPM_CHANGELOG_FILE "${CMAKE_CURRENT_SOURCE_DIR}/changelog")
|
2021-08-18 23:40:32 +02:00
|
|
|
if (CMAKE_VERSION STREQUAL "3.21.1")
|
|
|
|
message(WARNING "CPack 3.21.1 has a bug that causes rpm scripts to be unusable; please update or downgrade")
|
|
|
|
endif()
|
2021-03-24 15:50:29 +01:00
|
|
|
if (NOT APPLE)
|
2021-03-25 14:28:03 +01:00
|
|
|
set(GZNAME "changelog.Debian.gz")
|
2021-03-24 15:50:29 +01:00
|
|
|
add_custom_command(
|
2021-03-25 14:28:03 +01:00
|
|
|
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/${GZNAME}"
|
2021-03-25 16:18:00 +01:00
|
|
|
COMMAND gzip -c -k -n -9 "${CMAKE_CURRENT_SOURCE_DIR}/changelog" > ${CMAKE_CURRENT_BINARY_DIR}/${GZNAME}
|
2021-03-24 15:50:29 +01:00
|
|
|
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
|
|
|
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/changelog"
|
|
|
|
COMMENT "Compressing the changelog file"
|
|
|
|
)
|
2021-03-25 14:28:03 +01:00
|
|
|
add_custom_target(changelog ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/${GZNAME}")
|
2021-03-24 15:50:29 +01:00
|
|
|
string(TOLOWER "${CMAKE_INSTALL_DOCDIR}" DEB_CHANGELOG_DEST_DIR) # Lowercase characters are needed because GNUInstallDirs uses the PROJECT_NAME variable.
|
|
|
|
install(
|
2021-03-25 14:28:03 +01:00
|
|
|
FILES "${CMAKE_CURRENT_BINARY_DIR}/${GZNAME}"
|
2021-03-24 15:50:29 +01:00
|
|
|
DESTINATION ${DEB_CHANGELOG_DEST_DIR}
|
|
|
|
)
|
|
|
|
endif()
|
2021-02-14 10:21:54 +01:00
|
|
|
set(CPACK_RPM_PACKAGE_VERSION ${PROJECT_VERSION})
|
|
|
|
set(CPACK_RPM_PACKAGE_RELEASE ${TIME})
|
2021-02-27 12:07:07 +01:00
|
|
|
set(CPACK_RPM_PACKAGE_RELEASE_DIST ON)
|
2021-03-01 19:01:15 +01:00
|
|
|
if (CPACK_RPM_PACKAGE_SOURCES)
|
2021-03-01 19:28:17 +01:00
|
|
|
set(CPACK_RPM_SOURCE_PKG_PACKAGING_INSTALL_PREFIX "/")
|
2021-03-01 19:01:15 +01:00
|
|
|
set(CPACK_GENERATOR RPM)
|
2021-08-09 17:17:38 +02:00
|
|
|
set(CPACK_RPM_BUILDREQUIRES "cmake >= ${CMAKE_MINIMUM_REQUIRED_VERSION}, clang >= ${MINIMAL_CLANG}.0")
|
2021-03-01 19:28:17 +01:00
|
|
|
install(DIRECTORY src DESTINATION ${CPACK_RPM_SOURCE_PKG_PACKAGING_INSTALL_PREFIX})
|
|
|
|
install(DIRECTORY resources DESTINATION ${CPACK_RPM_SOURCE_PKG_PACKAGING_INSTALL_PREFIX})
|
|
|
|
install(DIRECTORY scripts DESTINATION ${CPACK_RPM_SOURCE_PKG_PACKAGING_INSTALL_PREFIX})
|
2021-03-24 12:55:38 +01:00
|
|
|
install(FILES CMakeLists.txt misc/desc.txt LICENSE.txt README.md changelog DESTINATION ${CPACK_RPM_SOURCE_PKG_PACKAGING_INSTALL_PREFIX})
|
2021-03-01 19:28:17 +01:00
|
|
|
else()
|
|
|
|
if (NOT DEFINED CPACK_GENERATOR)
|
2021-03-10 20:20:52 +01:00
|
|
|
set(CPACK_GENERATOR TGZ;STGZ;RPM;DEB)
|
2021-03-01 19:28:17 +01:00
|
|
|
endif()
|
|
|
|
install(PROGRAMS
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/ybcon
|
2021-03-03 13:24:16 +01:00
|
|
|
DESTINATION ${CMAKE_INSTALL_LIBEXECDIR})
|
|
|
|
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/scripts/completions DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/ybcon.d)
|
2021-03-01 19:28:17 +01:00
|
|
|
install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/scripts/ybcon
|
2021-03-24 13:18:17 +01:00
|
|
|
DESTINATION ${CMAKE_INSTALL_BINDIR})
|
2021-03-01 19:01:15 +01:00
|
|
|
endif()
|
2020-12-11 22:36:10 +01:00
|
|
|
elseif(MINGW OR MSVC)
|
2021-03-17 14:01:14 +01:00
|
|
|
set(CMAKE_INSTALL_PREFIX "C:\\progs\\${PROJECT_NAME}")
|
2021-04-02 13:53:55 +02:00
|
|
|
set(CPACK_PACKAGE_INSTALL_DIRECTORY ${CODENAME})
|
2021-03-13 19:47:35 +01:00
|
|
|
set(CPACK_NSIS_INSTALL_ROOT "${CMAKE_INSTALL_PREFIX}")
|
2021-08-18 20:32:56 +02:00
|
|
|
if (MINGW)
|
|
|
|
set(CMAKE_EXE_LINKER_FLAGS "-static -static-libstdc++ -static-libgcc ${CMAKE_EXE_LINKER_FLAGS}")
|
|
|
|
endif()
|
2021-03-12 22:16:11 +01:00
|
|
|
set(CPACK_PACKAGE_FILE_NAME "${PNAME}_wpkg")
|
2021-04-02 12:53:52 +02:00
|
|
|
set(CPACK_NSIS_COMPRESSOR "/SOLID lzma")
|
2021-09-18 18:09:04 +02:00
|
|
|
set(CPACK_NSIS_MANIFEST_DPI_AWARE TRUE)
|
2021-04-02 13:35:16 +02:00
|
|
|
set(CPACK_NSIS_PACKAGE_NAME "${PROJECT_NAME} ${CODENAME}-${PROJECT_VERSION}")
|
|
|
|
set(CPACK_NSIS_WELCOME_TITLE_3LINES ON)
|
2021-04-02 13:29:50 +02:00
|
|
|
set(CPACK_NSIS_URL_INFO_ABOUT "https://gits.username404.fr/Username404-59/Yerbacon")
|
2021-03-13 18:53:11 +01:00
|
|
|
set(CPACK_NSIS_MUI_ICON "${CMAKE_CURRENT_SOURCE_DIR}/resources/${PROJECT_NAME}.ico")
|
|
|
|
set(CPACK_NSIS_MUI_UNIICON "${CMAKE_CURRENT_SOURCE_DIR}/resources/${PROJECT_NAME}.ico")
|
2021-02-12 21:45:49 +01:00
|
|
|
set(CPACK_NSIS_DEFINES "RequestExecutionLevel highest")
|
2021-09-19 21:37:53 +02:00
|
|
|
set(CPACK_SYSTEM_NAME "Win32")
|
|
|
|
set(CPACK_TOPLEVEL_TAG "Win32")
|
2020-12-11 22:36:10 +01:00
|
|
|
set(CPACK_NSIS_MODIFY_PATH ON)
|
|
|
|
set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL ON)
|
2021-09-18 18:29:53 +02:00
|
|
|
if (WIN32)
|
|
|
|
# The two following variables require CMake 3.20 or higher
|
|
|
|
set(CPACK_NSIS_BRANDING_TEXT "NSIS Installer for the yerbacon compiler")
|
|
|
|
set(CPACK_NSIS_BRANDING_TEXT_TRIM_POSITION CENTER)
|
|
|
|
endif()
|
2021-03-10 18:00:50 +01:00
|
|
|
set(CPACK_GENERATOR ZIP;NSIS)
|
2020-12-11 22:36:10 +01:00
|
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ybcon.exe DESTINATION bin)
|
|
|
|
endif()
|
2021-08-15 16:43:35 +02:00
|
|
|
if (NOT DEFINED CXX_TARGET)
|
|
|
|
set(CXX_TARGET ${CMAKE_HOST_SYSTEM_PROCESSOR})
|
|
|
|
endif()
|
2021-08-15 17:17:11 +02:00
|
|
|
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}.${CXX_TARGET}")
|
2020-12-11 22:36:10 +01:00
|
|
|
include(CPack)
|