Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nptool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
Admin message
Gitlab has been updated. More info
here
.
Show more breadcrumbs
np
nptool
Commits
873e5f94
Commit
873e5f94
authored
4 years ago
by
Adrien Matta
Browse files
Options
Downloads
Patches
Plain Diff
* fixing compilation issue with DCReconstruction when minuit2 is not
there
parent
4adf68cf
No related branches found
No related tags found
No related merge requests found
Pipeline
#92323
passed
4 years ago
Stage: build-NPLib
Stage: build-NPSimulation
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
NPLib/TrackReconstruction/CMakeLists.txt
+14
-0
14 additions, 0 deletions
NPLib/TrackReconstruction/CMakeLists.txt
with
14 additions
and
0 deletions
NPLib/TrackReconstruction/CMakeLists.txt
+
14
−
0
View file @
873e5f94
...
@@ -4,8 +4,22 @@ add_custom_command(OUTPUT NPClusterDict.cxx COMMAND ${CMAKE_BINARY_DIR}/scripts/
...
@@ -4,8 +4,22 @@ add_custom_command(OUTPUT NPClusterDict.cxx COMMAND ${CMAKE_BINARY_DIR}/scripts/
add_custom_command
(
OUTPUT TrackingDict.cxx COMMAND
${
CMAKE_BINARY_DIR
}
/scripts/build_dict.sh Tracking.h TrackingDict.cxx Tracking.rootmap libNPTrackReconstruction.so NPTrackReconstructionLinkDef.h DEPENDS Tracking.h
)
add_custom_command
(
OUTPUT TrackingDict.cxx COMMAND
${
CMAKE_BINARY_DIR
}
/scripts/build_dict.sh Tracking.h TrackingDict.cxx Tracking.rootmap libNPTrackReconstruction.so NPTrackReconstructionLinkDef.h DEPENDS Tracking.h
)
## Check if MINUIT2 is installed along with ROOT
find_library
(
libMinuit2_FOUND NAMES Minuit2 HINTS
"
${
ROOTSYS
}
/lib"
)
if
(
libMinuit2_FOUND
)
message
(
STATUS
"Minuit2 support enabled for TrackReconstruction."
)
add_definitions
(
-DHAVE_MINUIT2
)
else
()
message
(
STATUS
"Minuit2 support disabled for TrackReconstruction."
)
endif
()
add_library
(
NPTrackReconstruction SHARED NPRansac.cxx NPCluster.cxx NPTrack.cxx Tracking.cxx NPRansacDict.cxx NPClusterDict.cxx TrackingDict.cxx NPDCReconstruction.cxx NPDCReconstructionMT.cxx
)
add_library
(
NPTrackReconstruction SHARED NPRansac.cxx NPCluster.cxx NPTrack.cxx Tracking.cxx NPRansacDict.cxx NPClusterDict.cxx TrackingDict.cxx NPDCReconstruction.cxx NPDCReconstructionMT.cxx
)
if
(
Minuit2_FOUND
)
target_link_libraries
(
NPTrackReconstruction
${
ROOT_LIBRARIES
}
-lMinuit2 NPCore
)
target_link_libraries
(
NPTrackReconstruction
${
ROOT_LIBRARIES
}
-lMinuit2 NPCore
)
else
()
target_link_libraries
(
NPTrackReconstruction
${
ROOT_LIBRARIES
}
NPCore
)
endif
()
install
(
FILES NPRansac.h NPCluster.h NPTrack.h Tracking.h NPTrackingUtility.h NPDCReconstruction.h NPDCReconstructionMT.h DESTINATION
${
CMAKE_INCLUDE_OUTPUT_DIRECTORY
}
)
install
(
FILES NPRansac.h NPCluster.h NPTrack.h Tracking.h NPTrackingUtility.h NPDCReconstruction.h NPDCReconstructionMT.h DESTINATION
${
CMAKE_INCLUDE_OUTPUT_DIRECTORY
}
)
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