Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
data_tree
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
pwg-c2f
data
data_tree
Commits
31c56241
Commit
31c56241
authored
6 years ago
by
Evgeny Kashirin
Browse files
Options
Downloads
Patches
Plain Diff
Refactor CMakeList.txt, version 1.2
parent
5043548c
No related branches found
Branches containing commit
Tags
1.2
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+21
-13
21 additions, 13 deletions
CMakeLists.txt
DataTreeConfig.cmake.in
+5
-4
5 additions, 4 deletions
DataTreeConfig.cmake.in
with
26 additions
and
17 deletions
CMakeLists.txt
+
21
−
13
View file @
31c56241
...
...
@@ -2,7 +2,9 @@
cmake_minimum_required
(
VERSION 2.4 FATAL_ERROR
)
project
(
DataTree
)
# Might not working on lxpool or lxplus.
set
(
PROJECT_VERSION 1.2
)
include
(
GenerateExportHeader
)
# You need to tell CMake where to find the ROOT installation. This can be done in a number of ways:
...
...
@@ -43,8 +45,6 @@ file(GLOB HEADERS src/*.h)
list
(
REMOVE_ITEM HEADERS_DICT DataTreeEventLinkDef.h
)
# message("${HEADERS}")
set
(
DICT_FILE_NAME G__
${
PROJECT_NAME
}
)
set
(
PCM_FILE_NAME lib
${
PROJECT_NAME
}
)
...
...
@@ -66,8 +66,8 @@ target_link_libraries(DataTree ${ROOT_LIBRARIES})
if
(
${
CMAKE_MAJOR_VERSION
}
GREATER 2
)
generate_export_header
(
DataTree
)
set_property
(
TARGET DataTree PROPERTY VERSION
1
)
set_property
(
TARGET DataTree PROPERTY SOVERSION
1
)
set_property
(
TARGET DataTree PROPERTY VERSION
${
PROJECT_VERSION
}
)
set_property
(
TARGET DataTree PROPERTY SOVERSION
${
PROJECT_VERSION
}
)
set_property
(
TARGET DataTree PROPERTY INTERFACE_DataTree_MAJOR_VERSION 1
)
set_property
(
TARGET DataTree APPEND PROPERTY COMPATIBLE_INTERFACE_STRING INTERFACE_DataTree_MAJOR_VERSION
)
...
...
@@ -99,19 +99,27 @@ install(
include
(
CMakePackageConfigHelpers
)
write_basic_package_version_file
(
"
${
CMAKE_CURRENT_BINARY_DIR
}
/DataTree/DataTreeConfigVersion.cmake"
VERSION
1.0
VERSION
${
PROJECT_VERSION
}
COMPATIBILITY AnyNewerVersion
)
export
(
EXPORT DataTreeTargets
FILE
"
${
CMAKE_CURRENT_BINARY_DIR
}
/DataTree/DataTreeTargets.cmake"
)
configure_file
(
cmake/DataTreeConfig.cmake
"
${
CMAKE_CURRENT_BINARY_DIR
}
/DataTree/DataTreeConfig.cmake"
COPYONLY
)
set
(
ConfigPackageLocation lib/cmake/DataTree
)
set
(
DataTree_INCLUDE_DIR
"include"
)
set
(
DataTree_LIBRARY_DIR
"lib"
)
configure_package_config_file
(
DataTreeConfig.cmake.in
${
CMAKE_CURRENT_BINARY_DIR
}
/DataTree/DataTreeConfig.cmake
INSTALL_DESTINATION
${
ConfigPackageLocation
}
PATH_VARS DataTree_INCLUDE_DIR DataTree_LIBRARY_DIR
# [NO_SET_AND_CHECK_MACRO]
# [NO_CHECK_REQUIRED_COMPONENTS_MACRO]
# [INSTALL_PREFIX <path>]
)
install
(
EXPORT DataTreeTargets
FILE
DataTreeTargets.cmake
...
...
@@ -120,8 +128,8 @@ install(EXPORT DataTreeTargets
)
install
(
FILES
cmak
e/DataTreeConfig.cmake
"
${
CMAKE_CURRENT_BINARY_DIR
}
/DataTree/DataTreeConfigVersion.cmake"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/DataTre
e/DataTreeConfig.cmake
"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/DataTree/DataTreeConfigVersion.cmake"
DESTINATION
${
ConfigPackageLocation
}
COMPONENT
...
...
This diff is collapsed.
Click to expand it.
cmake/
DataTreeConfig.cmake
→
DataTreeConfig.cmake
.in
+
5
−
4
View file @
31c56241
include("${CMAKE_CURRENT_LIST_DIR}/DataTreeTargets.cmake")
message
(
"-- Found DataTree..."
)
@PACKAGE_INIT@
set
(
_thisdir
${
CMAKE_CURRENT_LIST_DIR
}
)
message ("-- Found DataTree..."
)
g
et
_filename_component
(
DataTree_INCLUDE_DIR
"
${
_thisdir
}
/../../../include"
ABSOLUTE
)
s
et(DataTree_INCLUDE_DIR
"@PACKAGE_DataTree_INCLUDE_DIR@"
)
message ("DataTree_INCLUDE_DIR = ${DataTree_INCLUDE_DIR}")
g
et
_filename_component
(
DataTree_LIBRARY_DIR
"
${
_thisdir
}
/../../../lib"
ABSOLUTE
)
s
et(DataTree_LIBRARY_DIR
"@PACKAGE_DataTree_LIBRARY_DIR@"
)
message ("DataTree_LIBRARY_DIR = ${DataTree_LIBRARY_DIR}")
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