-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Some modernization and this should fix #68, #29 #89
Open
flagarde
wants to merge
20
commits into
iLCSoft:master
Choose a base branch
from
flagarde:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
f975946
Move bin to scripts
6e6fc59
Add .gitignore
e34cd36
Allow to disable apps compilation
3691b44
Add options
82f1b41
Supress some warnings
8d4ef74
Use default ROOTConfig
728ee8d
Install in bin by default
528b2fd
Fix
6e2b9c3
Option to install python codes
8f193e9
CMAKE_CXX_STANDARD need at least 3. something so use the project with…
bc931da
Fix doc
8cfeb92
Comment some noise
ae4f53b
Check if Fortran code can be compiled
c718c46
Don't crash if doxygen or latex are not found
b2d951e
Fix warning
532349a
Fix?
3660905
Install in lib/cmake
07fbc53
Add dependency
92f8090
Install in lib/cmake
37f8524
Update CMakeLists.txt
flagarde File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add options
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,33 +3,44 @@ | |
# @author Frank Gaede, DESY | ||
# @author Jan Engels, DESY | ||
################################# | ||
|
||
SET( LCIO_CPPFORT_SRCS | ||
./src/CPPFORT/HEPEVT.cc | ||
./src/CPPFORT/lccah.cc | ||
./src/CPPFORT/lcclu.cc | ||
./src/CPPFORT/lccol.cc | ||
./src/CPPFORT/lcevt.cc | ||
./src/CPPFORT/lcgob.cc | ||
./src/CPPFORT/lciof77apiext.cc | ||
./src/CPPFORT/lcmcp.cc | ||
./src/CPPFORT/lcobv.cc | ||
./src/CPPFORT/lcpid.cc | ||
./src/CPPFORT/lcrcp.cc | ||
./src/CPPFORT/lcrdr.cc | ||
./src/CPPFORT/lcrdrrep.cc | ||
./src/CPPFORT/lcrel.cc | ||
./src/CPPFORT/lcrhd.cc | ||
./src/CPPFORT/lcrnv.cc | ||
./src/CPPFORT/lcsch.cc | ||
./src/CPPFORT/lcsth.cc | ||
./src/CPPFORT/lctph.cc | ||
./src/CPPFORT/lctrh.cc | ||
./src/CPPFORT/lctrk.cc | ||
./src/CPPFORT/lcvec.cc | ||
./src/CPPFORT/lcvtx.cc | ||
./src/CPPFORT/lcwrt.cc | ||
) | ||
if( BUILD_FORTRAN ) | ||
set( LCIO_CPPFORT_SRCS | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CMake commands in upper case please. Look also in other places |
||
./src/CPPFORT/HEPEVT.cc | ||
./src/CPPFORT/lccah.cc | ||
./src/CPPFORT/lcclu.cc | ||
./src/CPPFORT/lccol.cc | ||
./src/CPPFORT/lcevt.cc | ||
./src/CPPFORT/lcgob.cc | ||
./src/CPPFORT/lciof77apiext.cc | ||
./src/CPPFORT/lcmcp.cc | ||
./src/CPPFORT/lcobv.cc | ||
./src/CPPFORT/lcpid.cc | ||
./src/CPPFORT/lcrcp.cc | ||
./src/CPPFORT/lcrdr.cc | ||
./src/CPPFORT/lcrdrrep.cc | ||
./src/CPPFORT/lcrel.cc | ||
./src/CPPFORT/lcrhd.cc | ||
./src/CPPFORT/lcrnv.cc | ||
./src/CPPFORT/lcsch.cc | ||
./src/CPPFORT/lcsth.cc | ||
./src/CPPFORT/lctph.cc | ||
./src/CPPFORT/lctrh.cc | ||
./src/CPPFORT/lctrk.cc | ||
./src/CPPFORT/lcvec.cc | ||
./src/CPPFORT/lcvtx.cc | ||
./src/CPPFORT/lcwrt.cc | ||
) | ||
#---- special flags for cfortran code : -------- | ||
SET_SOURCE_FILES_PROPERTIES( | ||
${LCIO_CPPFORT_SRCS} PROPERTIES | ||
COMPILE_FLAGS "-Df2cFortran -Wno-unused" | ||
) | ||
# ---------------------------------------------------------------------------- | ||
# ------- libraries lcio + lcioF77 ------------------------------------------- | ||
ADD_LIBRARY( lcioF77 STATIC ${LCIO_CPPFORT_SRCS} ) | ||
INSTALL( TARGETS lcioF77 DESTINATION lib ) | ||
TARGET_LINK_LIBRARIES( lcioF77 lcio ) | ||
endif() | ||
|
||
SET( LCIO_IMPL_SRCS | ||
./src/IMPL/AccessChecked.cc | ||
|
@@ -226,7 +237,9 @@ if( LCIO_GENERATE_HEADERS ) | |
SET( IO_AID_HEADERS_DEP_LIST ${AID_HEADERS_LIST};${CXX_HEADERS_LIST} ) | ||
|
||
# make source files depend on generated header files + aid files | ||
SET_SOURCE_FILES_PROPERTIES( ${LCIO_CPPFORT_SRCS} PROPERTIES OBJECT_DEPENDS "${EVENT_AID_HEADERS_DEP_LIST};${IO_AID_HEADERS_DEP_LIST}" ) | ||
if( BUILD_FORTRAN) | ||
SET_SOURCE_FILES_PROPERTIES( ${LCIO_CPPFORT_SRCS} PROPERTIES OBJECT_DEPENDS "${EVENT_AID_HEADERS_DEP_LIST};${IO_AID_HEADERS_DEP_LIST}" ) | ||
endif() | ||
SET_SOURCE_FILES_PROPERTIES( ${LCIO_IMPL_SRCS} PROPERTIES OBJECT_DEPENDS "${EVENT_AID_HEADERS_DEP_LIST}" ) | ||
SET_SOURCE_FILES_PROPERTIES( ${LCIO_IOIMPL_SRCS} PROPERTIES OBJECT_DEPENDS "${IO_AID_HEADERS_DEP_LIST}" ) | ||
# ---------------------------------------------------------------------------- | ||
|
@@ -249,12 +262,7 @@ endif() | |
#ADD_DEFINITIONS( "-Wall -ansi -pedantic" ) | ||
#ADD_DEFINITIONS( "-Wno-long-long -fno-strict-aliasing" ) | ||
|
||
#---- special flags for cfortran code : -------- | ||
SET_SOURCE_FILES_PROPERTIES( | ||
${LCIO_CPPFORT_SRCS} PROPERTIES | ||
COMPILE_FLAGS "-Df2cFortran -Wno-unused" | ||
) | ||
# ---------------------------------------------------------------------------- | ||
|
||
|
||
|
||
|
||
|
@@ -281,9 +289,7 @@ INSTALL_DIRECTORY( ${LCIO_AID_HEADERS_OUTPUT_DIR}/ DESTINATION include ) | |
|
||
|
||
|
||
# ------- libraries lcio + lcioF77 ------------------------------------------- | ||
ADD_LIBRARY( lcioF77 STATIC ${LCIO_CPPFORT_SRCS} ) | ||
INSTALL( TARGETS lcioF77 DESTINATION lib ) | ||
|
||
|
||
ADD_SHARED_LIBRARY( lcio | ||
${LCIO_IMPL_SRCS} | ||
|
@@ -296,9 +302,6 @@ INSTALL_SHARED_LIBRARY( lcio DESTINATION lib ) | |
|
||
TARGET_LINK_LIBRARIES( lcio ${CMAKE_THREAD_LIBS_INIT} ) | ||
TARGET_LINK_LIBRARIES( lcio ${SIO_LIBRARIES} ) | ||
TARGET_LINK_LIBRARIES( lcioF77 lcio ) | ||
|
||
ADD_CUSTOM_TARGET( lib DEPENDS lcio lcioF77 ) | ||
# ---------------------------------------------------------------------------- | ||
|
||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you remove this? It is required
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't find anywhere where you use the sh program