-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #137 from tudo-astroparticlephysics/restructure_re…
…structure_parametrization Merge remote-tracking branch 'origin/restructure_restructure_parametrization'
- Loading branch information
Showing
548 changed files
with
29,124 additions
and
68,656 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,15 +1,54 @@ | ||
cmake_minimum_required(VERSION 3.8) | ||
cmake_minimum_required(VERSION 3.9) | ||
|
||
project(PROPOSAL VERSION 6.1.6 LANGUAGES CXX) | ||
set(PROPOSAL_VERSION_MAJOR 7) | ||
set(PROPOSAL_VERSION_MINOR 0) | ||
set(PROPOSAL_VERSION_PATCH 0) | ||
set(PROPOSAL_VERSION ${PROPOSAL_VERSION_MAJOR}.${PROPOSAL_VERSION_MINOR}.${PROPOSAL_VERSION_PATCH}) | ||
|
||
project(PROPOSAL | ||
VERSION ${PROPOSAL_VERSION} | ||
LANGUAGES CXX | ||
DESCRIPTION "The very best photon and lepton propagator." | ||
) | ||
|
||
IF(I3_PROJECTS) | ||
add_definitions(-DICECUBE_PROJECT) | ||
include(cmake/I3_CMakeLists.cmake) | ||
ELSE(I3_PROJECTS) | ||
add_definitions(-DPROPOSAL_STANDALONE) | ||
include(cmake/Standalone_CMakeLists.cmake) | ||
ENDIF(I3_PROJECTS) | ||
if (EXISTS ${CMAKE_BINARY_DIR}/conan_paths.cmake) | ||
include(${CMAKE_BINARY_DIR}/conan_paths.cmake) | ||
endif() | ||
|
||
# Just for auto formating code | ||
include(cmake/clang_cxx_dev_tools.cmake) | ||
if(NOT CMAKE_BUILD_TYPE) | ||
message(STATUS "No build type has been specified. Using default system build type. You may want to change this to" | ||
"'Release' if you are using PROPOSAL for production purposes.") | ||
else() | ||
if(CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "DEBUG") | ||
message(WARNING "Build type set to ${CMAKE_BUILD_TYPE}. This build type should only be used for development" | ||
"and debugging purposes and not for production since the runtime of PROPOSAL with be significantly higher!") | ||
else() | ||
message(STATUS "Build type set to ${CMAKE_BUILD_TYPE}.") | ||
endif() | ||
endif() | ||
|
||
|
||
set(CMAKE_CXX_STANDARD 14) | ||
|
||
set(CMAKE_CXX_VISIBILITY_PRESET hidden) | ||
set(CMAKE_CXX_VISIBILITY_INLINES_HIDDEN YES) | ||
|
||
option(BUILD_PYTHON "build python interface" OFF) | ||
option(BUILD_EXAMPLE "build example" OFF) | ||
option(BUILD_DOCUMENTATION "build documentation" OFF) | ||
option(BUILD_TESTING "build testing" OFF) | ||
|
||
add_subdirectory(src) | ||
|
||
if(BUILD_EXAMPLE) | ||
add_subdirectory(example) | ||
endif() | ||
|
||
if(BUILD_DOCUMENTATION) | ||
add_subdirectory(docs) | ||
endif() | ||
|
||
if(BUILD_TESTING) | ||
enable_testing() | ||
add_subdirectory(tests) | ||
endif() |
Oops, something went wrong.