Skip to content

Commit

Permalink
fix: install IActsGeoSvc.h into <prefix>/include/k4ActsTracking/IActs…
Browse files Browse the repository at this point in the history
…GeoSvc.h
  • Loading branch information
wdconinc committed Dec 19, 2023
1 parent 500a5aa commit 56cce3a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
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)

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

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
File renamed without changes.
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

0 comments on commit 56cce3a

Please sign in to comment.