Skip to content
Snippets Groups Projects
Commit e4a80ca5 authored by Andre Sailer's avatar Andre Sailer
Browse files

Cleanup of cmake code

parent 04d9c551
No related branches found
No related tags found
No related merge requests found
...@@ -16,14 +16,7 @@ SET( DD4hep_VERSION_PATCH 0 ) ...@@ -16,14 +16,7 @@ SET( DD4hep_VERSION_PATCH 0 )
# Basic project setup # # Basic project setup #
####################### #######################
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake) set ( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake )
if(NOT CMAKE_INSTALL_LIBDIR)
MESSAGE(STATUS "Setting CMAKE_INSTALL_LIBDIR to lib")
SET(CMAKE_INSTALL_LIBDIR lib)
endif()
MESSAGE(STATUS "CMAKE_INSTALL_LIBDIR=${CMAKE_INSTALL_LIBDIR}")
IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
SET( CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR} CACHE PATH SET( CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR} CACHE PATH
......
...@@ -77,7 +77,7 @@ endfunction() ...@@ -77,7 +77,7 @@ endfunction()
#--------------------------------------------------------------------------------------------------- #---------------------------------------------------------------------------------------------------
# dd4hep_generate_rootmap(library) # dd4hep_generate_rootmap(library)
# #
# Create the .rootmap file needed by the plug-in system. # Create the .components file needed by the plug-in system.
#--------------------------------------------------------------------------------------------------- #---------------------------------------------------------------------------------------------------
function(dd4hep_generate_rootmap library) function(dd4hep_generate_rootmap library)
if(APPLE) if(APPLE)
...@@ -130,22 +130,3 @@ function(dd4hep_generate_rootmap_apple library) ...@@ -130,22 +130,3 @@ function(dd4hep_generate_rootmap_apple library)
# for now do the same for apple that is done for the rest # for now do the same for apple that is done for the rest
dd4hep_generate_rootmap_notapple( ${library} ) dd4hep_generate_rootmap_notapple( ${library} )
endfunction() endfunction()
#---------------------------------------------------------------------------------------------------
# dd4hep_install_library(library)
#
# Install library
#---------------------------------------------------------------------------------------------------
function(dd4hep_install_library library)
set(installfile ${library}.install)
set(rootmapfile ${CMAKE_SHARED_MODULE_PREFIX}${library}.rootmap)
set(libname ${CMAKE_SHARED_MODULE_PREFIX}${library}${CMAKE_SHARED_MODULE_SUFFIX})
add_custom_command(OUTPUT ${rootmapfile}
SET ( ENV{LD_LIBRARY_PATH} ./:$ENV{LD_LIBRARY_PATH} )
COMMAND echo
${library} ${LIBRARY_OUTPUT_DIR}
DEPENDS ${library})
add_custom_target(${library}Install ALL DEPENDS ${installfile})
endfunction()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment