Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hcana
Manage
Activity
Members
Labels
Plan
Issues
6
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
jlab
hallc
analyzer_software
hcana
Commits
cde6dcb5
Commit
cde6dcb5
authored
6 years ago
by
Whitney Armstrong
Browse files
Options
Downloads
Patches
Plain Diff
modified: CMakeLists.txt
modified: src/CMakeLists.txt
parent
155151bb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+7
-5
7 additions, 5 deletions
CMakeLists.txt
src/CMakeLists.txt
+2
-1
2 additions, 1 deletion
src/CMakeLists.txt
with
9 additions
and
6 deletions
CMakeLists.txt
+
7
−
5
View file @
cde6dcb5
...
@@ -4,6 +4,9 @@ project(hcana VERSION 0.90 LANGUAGES CXX)
...
@@ -4,6 +4,9 @@ project(hcana VERSION 0.90 LANGUAGES CXX)
option
(
HCANA_BUILTIN_PODD
"Use built-in Podd submodule (default: YES)"
OFF
)
option
(
HCANA_BUILTIN_PODD
"Use built-in Podd submodule (default: YES)"
OFF
)
find_package
(
ROOT 6.0 REQUIRED CONFIG
)
include
(
${
ROOT_USE_FILE
}
)
#----------------------------------------------------------------------------
#----------------------------------------------------------------------------
# Set up Podd and ROOT dependencies
# Set up Podd and ROOT dependencies
if
(
HCANA_BUILTIN_PODD
)
if
(
HCANA_BUILTIN_PODD
)
...
@@ -12,7 +15,6 @@ if(HCANA_BUILTIN_PODD)
...
@@ -12,7 +15,6 @@ if(HCANA_BUILTIN_PODD)
${
CMAKE_MODULE_PATH
}
${
CMAKE_MODULE_PATH
}
)
)
include
(
PoddCMakeEnv
)
include
(
PoddCMakeEnv
)
find_package
(
ROOT 5.10 REQUIRED
)
else
()
else
()
# Find Podd and register it as a dependency
# Find Podd and register it as a dependency
# This will also automatically set up ROOT
# This will also automatically set up ROOT
...
@@ -22,13 +24,13 @@ else()
...
@@ -22,13 +24,13 @@ else()
endif
()
endif
()
# Register ROOT dependency - it's in our public interface
# Register ROOT dependency - it's in our public interface
config_add_dependency
(
ROOT 5.10
)
#
config_add_dependency(ROOT 5.10)
#----------------------------------------------------------------------------
#----------------------------------------------------------------------------
# Set up the compiler flags
# Set up the compiler flags
set_compiler_flags
(
"
${
ROOT_CXX_FLAGS
}
"
)
#
set_compiler_flags("${ROOT_CXX_FLAGS}")
set_diagnostic_flags
(
WALL WEXTRA
)
#
set_diagnostic_flags(WALL WEXTRA)
report_build_info
()
#
report_build_info()
#----------------------------------------------------------------------------
#----------------------------------------------------------------------------
# Install in GNU-style directory layout
# Install in GNU-style directory layout
...
...
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
2
−
1
View file @
cde6dcb5
...
@@ -89,11 +89,12 @@ install(TARGETS ${LIBNAME}
...
@@ -89,11 +89,12 @@ install(TARGETS ${LIBNAME}
RUNTIME DESTINATION
${
CMAKE_INSTALL_BINDIR
}
RUNTIME DESTINATION
${
CMAKE_INSTALL_BINDIR
}
)
)
install
(
FILES
${
allheaders
}
DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
)
install
(
FILES
${
allheaders
}
DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
)
install
(
DIRECTORY nlohmann DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
)
#
install(DIRECTORY nlohmann DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
#----------------------------------------------------------------------------
#----------------------------------------------------------------------------
# libHallCDict
# libHallCDict
build_root_dictionary
(
${
LIBNAME
}
${
headers
}
build_root_dictionary
(
${
LIBNAME
}
${
headers
}
INCLUDEDIRS -I
${
CMAKE_CURRENT_SOURCE_DIR
}
TARGETS
${
LIBNAME
}
TARGETS
${
LIBNAME
}
LINKDEF
${
linkdef
}
LINKDEF
${
linkdef
}
)
)
...
...
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