Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Root
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
为了安全,强烈建议开启2FA双因子认证:User Settings -> Account -> Enable two-factor authentication!!!
Show more breadcrumbs
cxwx
Root
Commits
cce56187
Commit
cce56187
authored
10 years ago
by
Lorenzo Moneta
Browse files
Options
Downloads
Patches
Plain Diff
Add missing CMake file for minuit2 tests
parent
05599f16
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
math/minuit2/test/CMakeLists.txt
+66
-0
66 additions, 0 deletions
math/minuit2/test/CMakeLists.txt
with
66 additions
and
0 deletions
math/minuit2/test/CMakeLists.txt
0 → 100644
+
66
−
0
View file @
cce56187
project
(
minuit2-tests
)
find_package
(
ROOT REQUIRED
)
include
(
${
ROOT_USE_FILE
}
)
include_directories
(
${
ROOT_INCLUDE_DIRS
}
)
set
(
TestSource
testMinimizer.cxx
)
set
(
TestSourceMnTutorial
MnTutorial/Quad1FMain.cxx
MnTutorial/Quad4FMain.cxx
MnTutorial/Quad8FMain.cxx
MnTutorial/Quad12FMain.cxx
)
set
(
TestSourceMnSim
MnSim/DemoGaussSim.cxx
MnSim/DemoFumili.cxx
MnSim/PaulTest.cxx
MnSim/PaulTest2.cxx
MnSim/PaulTest3.cxx
MnSim/PaulTest4.cxx
MnSim/ReneTest.cxx
MnSim/ParallelTest.cxx
MnSim/demoMinimizer.cxx
)
#---For the simple Minuit2 tests build and defined them---------------
foreach
(
file
${
TestSourceMnTutorial
}
)
get_filename_component
(
testname
${
file
}
NAME_WE
)
ROOT_EXECUTABLE
(
${
testname
}
${
file
}
LIBRARIES Minuit2
)
ROOT_ADD_TEST
(
minuit2-
${
testname
}
COMMAND
${
testname
}
)
endforeach
()
ROOT_LINKER_LIBRARY
(
Minuit2TestMnSim MnSim/GaussDataGen.cxx MnSim/GaussFcn.cxx MnSim/GaussFcn2.cxx LIBRARIES Minuit2
)
#input text files
configure_file
(
MnSim/paul.txt paul.txt @COPY_ONLY
)
configure_file
(
MnSim/paul2.txt paul2.txt @COPY_ONLY
)
configure_file
(
MnSim/paul3.txt paul3.txt @COPY_ONLY
)
configure_file
(
MnSim/paul4.txt paul4.txt @COPY_ONLY
)
foreach
(
file
${
TestSourceMnSim
}
)
get_filename_component
(
testname
${
file
}
NAME_WE
)
ROOT_EXECUTABLE
(
${
testname
}
${
file
}
LIBRARIES Minuit2 Minuit2TestMnSim
)
ROOT_ADD_TEST
(
minuit2-
${
testname
}
COMMAND
${
testname
}
)
endforeach
()
#for the global tests using ROOT libs (Minuit2 should be taken via the PluginManager)
set
(
RootLibraries Core RIO Net Hist Graf Graf3d Gpad Tree
Rint Postscript Matrix Physics MathCore Thread
)
foreach
(
file
${
TestSource
}
)
get_filename_component
(
testname
${
file
}
NAME_WE
)
ROOT_EXECUTABLE
(
${
testname
}
${
file
}
LIBRARIES
${
RootLibraries
}
)
ROOT_ADD_TEST
(
minuit2-
${
testname
}
COMMAND
${
testname
}
)
endforeach
()
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