IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
corsika
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pranav Sampathkumar
corsika
Commits
7b7e3231
Commit
7b7e3231
authored
4 years ago
by
Ralf M Ulrich
Committed by
Maximilian Sackel
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
cmake file
parent
e8b97a03
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Processes/Proposal/CMakeLists_PROPOSAL.txt
+14
-10
14 additions, 10 deletions
Processes/Proposal/CMakeLists_PROPOSAL.txt
with
14 additions
and
10 deletions
Processes/Proposal/CMakeLists_PROPOSAL.txt
+
14
−
10
View file @
7b7e3231
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.8)
if(CMAKE_PROJECT_NAME STREQUAL corsika)
message(STATUS "Including PROPOSAL as part of CORSIKA8")
set (IN_CORSIKA8 ON)
else(CMAKE_PROJECT_NAME STREQUAL corsika)
set (IN_CORSIKA8 OFF)
endif(CMAKE_PROJECT_NAME STREQUAL corsika)
project(PROPOSAL VERSION 6.1.2 LANGUAGES CXX)
project(PROPOSAL VERSION 6.1.2 LANGUAGES CXX)
if (NOT IN_CORSIKA8)
IF(APPLE)
IF(APPLE)
# In newer version of cmake this will be the default
# In newer version of cmake this will be the default
SET(CMAKE_MACOSX_RPATH 1)
SET(CMAKE_MACOSX_RPATH 1)
...
@@ -11,11 +19,6 @@ ENDIF(APPLE)
...
@@ -11,11 +19,6 @@ ENDIF(APPLE)
# sets standard installtion paths
# sets standard installtion paths
include(GNUInstallDirs)
include(GNUInstallDirs)
if(CMAKE_PROJECT_NAME STREQUAL corsika)
message(STATUS "Including PROPOSAL as part of CORSIKA8")
set (IN_CORSIKA8 ON)
else(CMAKE_PROJECT_NAME STREQUAL corsika)
set (IN_CORSIKA8 OFF)
### full RPATH
### full RPATH
### copied from https://cmake.org/Wiki/CMake_RPATH_handling
### copied from https://cmake.org/Wiki/CMake_RPATH_handling
### set the RPATH so that for using PROPOSAL in python
### set the RPATH so that for using PROPOSAL in python
...
@@ -30,7 +33,7 @@ SET(CMAKE_SKIP_BUILD_RPATH FALSE)
...
@@ -30,7 +33,7 @@ SET(CMAKE_SKIP_BUILD_RPATH FALSE)
# (but later on when installing)
# (but later on when installing)
OPTION(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
OPTION(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
list(APPEND CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib;${CMAKE_INSTALL_PREFIX}/lib64")
list(APPEND CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib;${CMAKE_INSTALL_PREFIX}/lib64")
message(STATUS "${CMAKE_INSTALL_RPATH}")
message(STATUS "
CMAKE_INSTALL_RPATH=
${CMAKE_INSTALL_RPATH}")
# add the automatically determined parts of the RPATH
# add the automatically determined parts of the RPATH
# which point to directories outside the build tree to the install RPATH
# which point to directories outside the build tree to the install RPATH
...
@@ -39,16 +42,16 @@ OPTION(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
...
@@ -39,16 +42,16 @@ OPTION(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
# Some additional options
# Some additional options
OPTION(ADD_PYTHON "Choose to compile the python wrapper library" ON)
OPTION(ADD_PYTHON "Choose to compile the python wrapper library" ON)
endif
(CMAKE_PROJECT_NAME STREQUAL corsika
)
endif
(NOT IN_CORSIKA8
)
#################################################################
#################################################################
#################### PROPOSAL ########################
#################### PROPOSAL ########################
#################################################################
#################################################################
file(GLOB_RECURSE SRC_FILES ${PROJECT_SOURCE_DIR}/src/PROPOSAL/*)
file(GLOB_RECURSE SRC_FILES ${PROJECT_SOURCE_DIR}/src/PROPOSAL/*)
if (IN_CORSIKA8)
if (IN_CORSIKA8)
add_library(PROPOSAL STATIC ${SRC_FILES})
add_library(PROPOSAL STATIC ${SRC_FILES})
else (IN_CORSIKA8)
else (IN_CORSIKA8)
add_library(PROPOSAL SHARED ${SRC_FILES})
add_library(PROPOSAL SHARED ${SRC_FILES})
endif (IN_CORSIKA8)
endif (IN_CORSIKA8)
add_library(PROPOSAL::PROPOSAL ALIAS PROPOSAL)
add_library(PROPOSAL::PROPOSAL ALIAS PROPOSAL)
...
@@ -64,6 +67,7 @@ install(
...
@@ -64,6 +67,7 @@ install(
TARGETS PROPOSAL
TARGETS PROPOSAL
EXPORT PROPOSALTargets
EXPORT PROPOSALTargets
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
)
# input version from the project call, so the library knows its own version
# input version from the project call, so the library knows its own version
...
@@ -91,7 +95,7 @@ endforeach()
...
@@ -91,7 +95,7 @@ endforeach()
if(NOT IS_SYMLINK ${CMAKE_BINARY_DIR}/resources)
if(NOT IS_SYMLINK ${CMAKE_BINARY_DIR}/resources)
execute_process(COMMAND ln -sv ${CMAKE_SOURCE_DIR}/resources ${CMAKE_BINARY_DIR}/resources OUTPUT_VARIABLE link_msg OUTPUT_STRIP_TRAILING_WHITESPACE)
execute_process(COMMAND ln -sv ${CMAKE_
CURRENT_
SOURCE_DIR}/resources ${CMAKE_BINARY_DIR}/resources OUTPUT_VARIABLE link_msg OUTPUT_STRIP_TRAILING_WHITESPACE)
message(STATUS "Symlink to resources created:")
message(STATUS "Symlink to resources created:")
message(STATUS " ${link_msg}")
message(STATUS " ${link_msg}")
endif()
endif()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment