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
8f5ff639
Commit
8f5ff639
authored
10 years ago
by
Christian Grefe
Browse files
Options
Downloads
Patches
Plain Diff
Made DDSegmentation stand-alone
parent
06e4fb50
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+3
-1
3 additions, 1 deletion
CMakeLists.txt
DDSegmentation/CMakeLists.txt
+27
-2
27 additions, 2 deletions
DDSegmentation/CMakeLists.txt
DDSegmentation/cmake/DDSegmentationConfig.cmake.in
+30
-0
30 additions, 0 deletions
DDSegmentation/cmake/DDSegmentationConfig.cmake.in
with
60 additions
and
3 deletions
CMakeLists.txt
+
3
−
1
View file @
8f5ff639
...
...
@@ -66,8 +66,10 @@ IF( INSTALL_DOC )
ENDIF
()
find_package
(
DDSegmentation REQUIRED
)
#---Packages------------------------------------------------------------------------
add_subdirectory
(
DDSegmentation
)
#
add_subdirectory(DDSegmentation)
add_subdirectory
(
DDCore
)
add_subdirectory
(
DDSurfaces
)
add_subdirectory
(
DDRec
)
...
...
This diff is collapsed.
Click to expand it.
DDSegmentation/CMakeLists.txt
+
27
−
2
View file @
8f5ff639
cmake_minimum_required
(
VERSION 2.8.3 FATAL_ERROR
)
project
(
DDSegmentation
)
set
(
DDSegmentation_MAJOR_VERSION 0
)
set
(
DDSegmentation_MINOR_VERSION 1
)
set
(
DDSegmentation_PATCH_VERSION 0
)
set
(
DDSegmentation_VERSION
${
DDSegmentation_MAJOR_VERSION
}
.
${
DDSegmentation_MINOR_VERSION
}
.
${
DDSegmentation_PATCH_VERSION
}
)
set
(
DDSegmentation_SOVERSION
"
${
DDSegmentation_MAJOR_VERSION
}
.
${
DDSegmentation_MINOR_VERSION
}
.
${
DDSegmentation_PATCH_VERSION
}
"
)
#------------- set the default installation directory to be the source directory
IF
(
CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT
)
SET
(
CMAKE_INSTALL_PREFIX
${
CMAKE_SOURCE_DIR
}
CACHE PATH
"install prefix path - overwrite with -D CMAKE_INSTALL_PREFIX = ..."
FORCE
)
MESSAGE
(
STATUS
"CMAKE_INSTALL_PREFIX is
${
CMAKE_INSTALL_PREFIX
}
- overwrite with -D CMAKE_INSTALL_PREFIX"
)
ENDIF
(
CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT
)
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/include
)
...
...
@@ -6,7 +22,7 @@ file(GLOB sources src/*.cpp)
add_library
(
DDSegmentation SHARED
${
sources
}
)
SET_TARGET_PROPERTIES
(
DDSegmentation PROPERTIES VERSION
${
DD
4hep
_VERSION
}
SOVERSION
${
DD
4hep
_SOVERSION
}
)
SET_TARGET_PROPERTIES
(
DDSegmentation PROPERTIES VERSION
${
DD
Segmentation
_VERSION
}
SOVERSION
${
DD
Segmentation
_SOVERSION
}
)
install
(
DIRECTORY include/DDSegmentation
DESTINATION include
...
...
@@ -17,4 +33,13 @@ install(TARGETS DDSegmentation
LIBRARY DESTINATION lib
)
# to do: add corresponding uninstall...
#-------------------------------------------------------
\ No newline at end of file
#-------------------------------------------------------
# Export the package for use from the build-tree
# (this registers the build-tree with a global CMake-registry)
export
(
PACKAGE DDSegmentation
)
# Create the DDSegmentationConfig.cmake and DDSegmentationConfigVersion files
configure_file
(
cmake/DDSegmentationConfig.cmake.in
${
CMAKE_INSTALL_PREFIX
}
/DDSegmentationConfig.cmake
)
#install(FILES ${PROJECT_SOURCE_DIR}/DDSegmentationConfig.cmake DESTINATION . )
This diff is collapsed.
Click to expand it.
DDSegmentation/cmake/DDSegmentationConfig.cmake.in
0 → 100644
+
30
−
0
View file @
8f5ff639
##############################################################################
# cmake configuration file for DDSegmentation
#
# returns following variables:
#
# DDSegmentation_FOUND : set to TRUE if DDSegmentation found
# DDSegmentation_VERSION : package version
# DDSegmentation_ROOT : path to this DDSegmentation installation
# DDSegmentation_LIBRARIES : list of DD4hep libraries
# DDSegmentation_INCLUDE_DIR : list of paths to be used with INCLUDE_DIRECTORIES
# DDSegmentation_LIBRARY_DIR : list of paths to be used with LINK_DIRECTORIES
#
# @author Christian Grefe, CERN
##############################################################################
SET( DDSegmentation_ROOT "@CMAKE_INSTALL_PREFIX@" )
SET( DDSegmentation_VERSION "@DDSegmentation_VERSION@" )
# ---------- libraries --------------------------------------------------------
# do not store find results in cache
SET( DDSegmentation_INCLUDE_DIR "@CMAKE_INSTALL_PREFIX@/include" )
SET( DDSegmentation_LIBRARY_DIR "@CMAKE_INSTALL_PREFIX@/lib" )
SET( DDSegmentation_LIBRARIES DDSegmentation )
MARK_AS_ADVANCED( DDSegmentation_INCLUDE_DIRS DDSegmentation_LIBRARY_DIRS DDSegmentation_LIBRARIES )
INCLUDE( FindPackageHandleStandardArgs )
# set DDSegmentation_FOUND to TRUE if all listed variables are TRUE and not empty
FIND_PACKAGE_HANDLE_STANDARD_ARGS( DDSegmentation DEFAULT_MSG DDSegmentation_ROOT DDSegmentation_INCLUDE_DIR DDSegmentation_LIBRARIES )
SET( DDSegmentation_FOUND ${DDSegmentation_FOUND} )
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