Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
e4a80ca5
Commit
e4a80ca5
authored
5 years ago
by
Andre Sailer
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup of cmake code
parent
04d9c551
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+1
-8
1 addition, 8 deletions
CMakeLists.txt
cmake/DD4hep.cmake
+1
-20
1 addition, 20 deletions
cmake/DD4hep.cmake
with
2 additions
and
28 deletions
CMakeLists.txt
+
1
−
8
View file @
e4a80ca5
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
cmake/DD4hep.cmake
+
1
−
20
View file @
e4a80ca5
...
@@ -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
()
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