Skip to content

Commit

Permalink
Mods to allow to be used in another project
Browse files Browse the repository at this point in the history
  • Loading branch information
wakely committed Aug 20, 2024
1 parent e7bdc89 commit 90280d8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ endif(POLICY CMP0042)
# declare the project name
PROJECT(genfit2)

# SPW Additions
# SPW Mods
message("${BYellow}-- Current ${PROJECT_NAME} Environment --${ColReset}")
message("${BWhite} compiler : ${BCyan}${CMAKE_CXX_COMPILER_ID} v${CMAKE_CXX_COMPILER_VERSION}${ColReset}")
message("${BWhite} standard : ${BCyan}c++${CMAKE_CXX_STANDARD}${ColReset}")
Expand All @@ -17,12 +17,12 @@ message("${BWhite} Type : ${BCyan}${CMAKE_BUILD_TYPE}${ColReset}")
message("${BYellow}-- Current ${PROJECT_NAME} Environment --${ColReset}")
message("")


# set project version:
# NB: this does not seem to be updated by the GenFit maintainers to match their actual release versions
SET( ${PROJECT_NAME}_VERSION_MAJOR 2 )
SET( ${PROJECT_NAME}_VERSION_MINOR 0 )
SET( ${PROJECT_NAME}_VERSION_PATCH 5-hlx )
# End SPW Mods

include(GNUInstallDirs)

Expand Down Expand Up @@ -285,6 +285,11 @@ endif()
ADD_SHARED_LIBRARY( ${PROJECT_NAME} ${library_sources})
INSTALL(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION ${LIBRARY_OUTPUT_DIRECTORY})

#SPW Mods
target_include_directories(${PROJECT_NAME} PUBLIC ${GF_INC_DIRS})
set_target_properties(${PROJECT_NAME} PROPERTIES POSITION_INDEPENDENT_CODE ON)
#End SPW Mods

# link ROOT libraries
if(DEFINED RAVE)
TARGET_LINK_LIBRARIES(
Expand Down

0 comments on commit 90280d8

Please sign in to comment.