Skip to content
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

fix: install IActsGeoSvc.h into <prefix>/include/k4ActsTracking/IActsGeoSvc.h #18

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,11 @@ include(CTest)

add_subdirectory(k4ActsTracking)
add_subdirectory(test)

install(EXPORT ${PROJECT_NAME}Targets
NAMESPACE ${PROJECT_NAME}::
FILE "${PROJECT_NAME}Targets.cmake"
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}/"
)

gaudi_install(CMAKE cmake/${PROJECT_NAME}Config.cmake)
19 changes: 19 additions & 0 deletions k4ActsTracking/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
]]

gaudi_add_header_only_library(k4ActsTracking
LINK
k4FWCore::k4FWCore
)
install(TARGETS k4ActsTracking
EXPORT k4ActsTrackingTargets
INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
)

file(GLOB _plugin_sources src/components/*.cpp)
gaudi_add_module(k4ActsTrackingPlugins
SOURCES ${_plugin_sources}
Expand All @@ -26,6 +36,15 @@ gaudi_add_module(k4ActsTrackingPlugins
DD4hep::DDCore DD4hep::DDRec
ActsCore ActsPluginDD4hep
)
target_include_directories(k4ActsTrackingPlugins PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)

install(TARGETS k4ActsTrackingPlugins
EXPORT k4ActsTrackingTargets
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT bin
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" COMPONENT shlib
COMPONENT dev)

set(GAUDI_GENCONF_DIR "genConfDir")

Expand Down
2 changes: 1 addition & 1 deletion k4ActsTracking/src/components/ActsGeoSvc.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include "GaudiKernel/MsgStream.h"
#include "GaudiKernel/Service.h"
#include "GaudiKernel/ServiceHandle.h"
#include "IActsGeoSvc.h"
#include "k4ActsTracking/IActsGeoSvc.h"

class ActsGeoSvc : public extends<Service, IActsGeoSvc> {
public:
Expand Down
Loading