Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pythia8 Module
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
3pia
PXL
Modules
Pythia8 Module
Commits
dc5d7415
Commit
dc5d7415
authored
9 years ago
by
Martin Urban
Browse files
Options
Downloads
Patches
Plain Diff
Removed hardcoded paths from CMakeLists, adapt to new PXL version, fix include of the Generator
parent
912868a4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+12
-24
12 additions, 24 deletions
CMakeLists.txt
Pythia8Generator.cpp
+1
-1
1 addition, 1 deletion
Pythia8Generator.cpp
with
13 additions
and
25 deletions
CMakeLists.txt
+
12
−
24
View file @
dc5d7415
...
...
@@ -9,37 +9,25 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}")
#name of the pxl-module
SET
(
PXLMODULENAME Pythia8Module
)
#files to be added to the module library
add_library
(
${
PXLMODULENAME
}
MODULE
Pythia8Generator.cpp
)
#check for pxl
FIND_PACKAGE
(
PXL
)
FIND_PACKAGE
(
Pythia8
)
FIND_PACKAGE
(
PXL REQUIRED astro core hep modules
)
FIND_PACKAGE
(
PkgConfig
)
pkg_check_modules
(
PYTHIA8 REQUIRED pythia8
)
#insert needed plugins here
#ADD_PXL_PLUGIN(pxl-astro)
ADD_PXL_PLUGIN
(
pxl-core
)
ADD_PXL_PLUGIN
(
pxl-hep
)
ADD_PXL_PLUGIN
(
pxl-modules
)
MESSAGE
(
STATUS
"PYTHIA8_LIBRARIES "
${
PYTHIA8_LIBRARIES
}
)
#add additional external libraries as needed
include_directories
(
${
P
XL_INCLUDE_DIRS
}
${
Pythia
8_INCLUDE_DIRS
}
${
P
YTHIA
8_INCLUDE_DIRS
}
)
link_directories
(
${
P
XL_LIBRARIES
}
${
Pythia
8_LIBRAR
IE
S
}
${
P
YTHIA
8_LIBRAR
Y_DIR
S
}
)
target_link_libraries
(
${
PXLMODULENAME
}
${
PXL_LIBRARIES
}
${
Pythia8_LIBRARIES
}
)
SET_TARGET_PROPERTIES
(
${
PXLMODULENAME
}
PROPERTIES COMPILE_FLAGS -fPIC
)
#set install destination
INSTALL
(
TARGETS
${
PXLMODULENAME
}
LIBRARY DESTINATION
${
PXL_PLUGIN_INSTALL_PATH
}
)
add_pxl_plugin
(
${
PXLMODULENAME
}
Pythia8Generator.cpp
)
# ${PYTHIA8_LIBRARIES} can not be used because of a bug in the package config
# ${PYTHIA8_LIBRARIES}=Pythia8 (captial P)
target_link_libraries
(
${
PXLMODULENAME
}
pythia8
)
This diff is collapsed.
Click to expand it.
Pythia8Generator.cpp
+
1
−
1
View file @
dc5d7415
...
...
@@ -8,7 +8,7 @@
#include
"pxl/core/Event.hh"
#include
"pxl/hep/EventView.hh"
#include
"Pythia.h"
#include
"
Pythia8/
Pythia.h"
#include
<cmath>
#include
<string>
...
...
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