And now reinstate the CMake build system files to their upstream form so that the patches from debian/patches can apply correctly.
Filippo Rusconi
3 years ago
|
0 |
cmake_minimum_required(VERSION 3.12)
|
|
1 |
|
0 | 2 |
#############################################################
|
1 | 3 |
#############################################################
|
2 | 4 |
# CMake configuration
|
3 | 5 |
|
4 | |
cmake_minimum_required(VERSION 3.12)
|
5 | |
|
6 | 6 |
# CMake script for the IsoSpec library
|
7 | |
# Author: Anonymous and Filippo Rusconi
|
8 | |
# This script was present in the source tree but was
|
9 | |
# highly rudimentary. I have implemented most of what is
|
10 | |
# here (Filippo Rusconi).
|
11 | |
# Last Modifs: July 2020
|
|
7 |
# Author: Filippo Rusconi
|
|
8 |
# Created: June 2020
|
12 | 9 |
|
13 | 10 |
############################################################
|
14 | 11 |
############################################################
|
|
20 | 17 |
|
21 | 18 |
set(ISOSPEC_VERSION_MAJOR "2")
|
22 | 19 |
set(ISOSPEC_VERSION_MINOR "1")
|
23 | |
set(ISOSPEC_VERSION_PATCH "2")
|
|
20 |
set(ISOSPEC_VERSION_PATCH "0")
|
24 | 21 |
set(ISOSPEC_LIB_NAME "libIsoSpec++")
|
25 | 22 |
set(ISOSPEC_VERSION "${ISOSPEC_VERSION_MAJOR}.${ISOSPEC_VERSION_MINOR}.${ISOSPEC_VERSION_PATCH}")
|
26 | |
set(VERSION 2.1.2)
|
|
23 |
set(VERSION 2.1.0)
|
27 | 24 |
set(ISOSPEC_LIB_VERSION ${ISOSPEC_VERSION})
|
28 | 25 |
set(ISOSPEC_LIB_SOVERSION ${ISOSPEC_VERSION_MAJOR})
|
29 | 26 |
|
CMakeStuff/toolchains/apple-macport-toolchain.cmake
less
more
0 | |
message("")
|
1 | |
message("${BoldRed}APPLE environment${ColourReset}")
|
2 | |
message("")
|
3 | |
message("~~~~~~ Instructions ~~~~~~")
|
4 | |
message("cmake -DCMAKE_BUILD_TYPE=<Debug | Release> ../../development")
|
5 | |
message("")
|
6 | |
|
7 | |
set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "/opt/local/include")
|
8 | |
set(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES "/opt/local/lib")
|
9 | |
|
10 | |
|
11 | |
set(HOME_DEVEL_DIR "/Users/rusconi/devel")
|
12 | |
|
13 | |
|
14 | |
## platform dependent compiler flags:
|
15 | |
include(CheckCXXCompilerFlag)
|
16 | |
|
17 | |
if(WITH_FPIC)
|
18 | |
add_definitions(-fPIC)
|
19 | |
endif()
|
20 | |
|
21 | |
|
8 | 8 |
|
9 | 9 |
|
10 | 10 |
# On Win10 all the code is relocatable.
|
11 | |
message(STATUS "Removing definitions -fPIC.")
|
|
11 |
message(STATUS "Removing definitions -fPic.")
|
12 | 12 |
remove_definitions(-fPIC)
|
13 | 13 |
|