Skip to content

Commit

Permalink
Rename CMAKE_{SOURCE,BIN}_DIR to PROJECT_{SOURCE,BIN}_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Jul 13, 2023
1 parent d8f3af2 commit 48b4b4a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions k4MarlinWrapper/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ gaudi_add_module(k4MarlinWrapperPlugins
)

target_include_directories(k4MarlinWrapperPlugins PUBLIC
${CMAKE_SOURCE_DIR}/k4MarlinWrapper
${PROJECT_SOURCE_DIR}/k4MarlinWrapper
${LCIO_INCLUDE_DIRS}
${Marlin_INCLUDE_DIRS}
)
Expand All @@ -50,7 +50,7 @@ gaudi_add_module(MarlinWrapper
)

target_include_directories(MarlinWrapper PUBLIC
${CMAKE_SOURCE_DIR}/k4MarlinWrapper
${PROJECT_SOURCE_DIR}/k4MarlinWrapper
${Marlin_INCLUDE_DIRS}
${LCIO_INCLUDE_DIRS}
)
Expand All @@ -69,7 +69,7 @@ gaudi_add_module(EDM4hep2Lcio
)

target_include_directories(EDM4hep2Lcio PUBLIC
${CMAKE_SOURCE_DIR}/k4MarlinWrapper
${PROJECT_SOURCE_DIR}/k4MarlinWrapper
${LCIO_INCLUDE_DIRS}
${Marlin_INCLUDE_DIRS}
)
Expand All @@ -86,15 +86,15 @@ gaudi_add_module(Lcio2EDM4hep
)

target_include_directories(Lcio2EDM4hep PUBLIC
${CMAKE_SOURCE_DIR}/k4MarlinWrapper
${PROJECT_SOURCE_DIR}/k4MarlinWrapper
${LCIO_INCLUDE_DIRS}
)

# Copy python parsing file to genConfDir in Gaudi
add_custom_command(
TARGET MarlinWrapper POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_SOURCE_DIR}/k4MarlinWrapper/python/k4MarlinWrapper/parseConstants.py
${PROJECT_SOURCE_DIR}/k4MarlinWrapper/python/k4MarlinWrapper/parseConstants.py
${CMAKE_CURRENT_BINARY_DIR}/genConfDir/k4MarlinWrapper/parseConstants.py)

# Install the example options files to share to make them easily accessible
Expand Down

0 comments on commit 48b4b4a

Please sign in to comment.