-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
74 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Cable: CMake Bootstrap Library. | ||
# Copyright 2019 Pawel Bylica. | ||
# Licensed under the Apache License, Version 2.0. See the LICENSE file. | ||
|
||
if(cable_package_included) | ||
return() | ||
endif() | ||
set(cable_package_included TRUE) | ||
|
||
# Configures CPack to build the archive package. | ||
macro(cable_add_archive_package) | ||
if(WIN32) | ||
set(CPACK_GENERATOR ZIP) | ||
set(CPACK_SOURCE_GENERATOR ZIP) | ||
else() | ||
set(CPACK_GENERATOR TGZ) | ||
set(CPACK_SOURCE_GENERATOR TGZ) | ||
endif() | ||
string(TOLOWER ${CMAKE_SYSTEM_NAME} system_name) | ||
string(TOLOWER ${CMAKE_SYSTEM_PROCESSOR} system_processor) | ||
set(CPACK_PACKAGE_FILE_NAME ${PROJECT_NAME}-${PROJECT_VERSION}-${system_name}-${system_processor}) | ||
set(CPACK_SOURCE_PACKAGE_FILE_NAME ${PROJECT_NAME}-${PROJECT_VERSION}-source) | ||
set(CPACK_PACKAGE_CHECKSUM SHA256) | ||
set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY FALSE) | ||
unset(system_name) | ||
unset(system_processor) | ||
include(CPack) | ||
endmacro() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* Cable: CMake Bootstrap Library. | ||
* Copyright 2019 Pawel Bylica. | ||
* Licensed under the Apache License, Version 2.0. | ||
*/ | ||
|
||
/* Generated by Cable Build Info on @TIMESTAMP@. Do not modify directly. */ | ||
|
||
#pragma once | ||
|
||
#define @PROJECT_NAME_UPPERCASE@_VERSION "@PROJECT_VERSION@" | ||
|
||
#ifdef __cplusplus | ||
constexpr auto @PROJECT_NAME@_version = "@PROJECT_VERSION@"; | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# Cable: CMake Bootstrap Library. | ||
# Copyright 2018 Pawel Bylica. | ||
# Licensed under the Apache License, Version 2.0. See the LICENSE file. | ||
# Copyright 2018-2019 Pawel Bylica. | ||
# Licensed under the Apache License, Version 2.0. | ||
|
||
set(CMAKE_CXX_STANDARD 11) | ||
set(CMAKE_CXX_STANDARD_REQUIRED TRUE) | ||
set(CMAKE_CXX_EXTENSIONS OFF) | ||
|
||
set(CMAKE_C_FLAGS -m32 CACHE STRING "C compiler flags" FORCE) | ||
set(CMAKE_CXX_FLAGS -m32 CACHE STRING "C++ compiler flags" FORCE) | ||
set(CMAKE_C_FLAGS_INIT -m32) | ||
set(CMAKE_CXX_FLAGS_INIT -m32) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Cable: CMake Bootstrap Library. | ||
# Copyright 2019 Pawel Bylica. | ||
# Licensed under the Apache License, Version 2.0. | ||
|
||
set(CMAKE_CXX_STANDARD 14) | ||
set(CMAKE_CXX_STANDARD_REQUIRED TRUE) | ||
set(CMAKE_CXX_EXTENSIONS OFF) | ||
|
||
set(CMAKE_C_FLAGS_INIT -m32) | ||
set(CMAKE_CXX_FLAGS_INIT -m32) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Cable: CMake Bootstrap Library. | ||
# Copyright 2019 Pawel Bylica. | ||
# Licensed under the Apache License, Version 2.0. | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED TRUE) | ||
set(CMAKE_CXX_EXTENSIONS OFF) | ||
|
||
set(CMAKE_C_FLAGS_INIT -m32) | ||
set(CMAKE_CXX_FLAGS_INIT -m32) |