Skip to content
Snippets Groups Projects
Commit 94bc0abd authored by Christopher Dilks's avatar Christopher Dilks
Browse files

build: cleanup

parent bea6dcdc
Branches
No related tags found
2 merge requests!309Irt algo,!293feat: dRICH benchmarks
This commit is part of merge request !293. Comments created here will be created in the context of that merge request.
cmake_minimum_required(VERSION 3.0.0 FATAL_ERROR)
project(reconstruction_benchmarks
LANGUAGES CXX
)
project(reconstruction_benchmarks LANGUAGES CXX)
cmake_policy(SET CMP0074 NEW) # use `<PackageName>_ROOT` variables
include(GNUInstallDirs)
# dependencies
#------------------------
# ROOT
find_package(ROOT 6 REQUIRED COMPONENTS Core RIO Hist)
list(APPEND CMAKE_PREFIX_PATH $ENV{ROOTSYS})
include(${ROOT_USE_FILE})
# data model
......@@ -25,5 +19,4 @@ find_package(spdlog REQUIRED)
add_compile_definitions(SPDLOG_FMT_EXTERNAL)
# benchmarks
#------------------------
add_subdirectory(benchmarks/rich)
......@@ -9,8 +9,8 @@ list(REMOVE_ITEM algo_sources ${algo_exe_source})
# library
set(algo_lib ${PROJECT_NAME})
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
add_library(${algo_lib} SHARED ${algo_sources})
target_include_directories(${algo_lib} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
target_compile_options(${algo_lib} PRIVATE -Wall -Wno-misleading-indentation)
# executable
......@@ -30,14 +30,5 @@ target_link_libraries(${algo_exe}
)
# installation
install(FILES
${algo_headers}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}
)
install(TARGETS ${algo_exe} ${algo_lib}
EXPORT ${PROJECT_NAME}Targets
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${CMAKE_PROJECT_NAME}
)
install(FILES ${algo_headers} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME})
install(TARGETS ${algo_exe} ${algo_lib})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment