Skip to content
Snippets Groups Projects
Commit cde6dcb5 authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

modified: CMakeLists.txt

	modified:   src/CMakeLists.txt
parent 155151bb
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,9 @@ project(hcana VERSION 0.90 LANGUAGES CXX) ...@@ -4,6 +4,9 @@ project(hcana VERSION 0.90 LANGUAGES CXX)
option(HCANA_BUILTIN_PODD "Use built-in Podd submodule (default: YES)" OFF) option(HCANA_BUILTIN_PODD "Use built-in Podd submodule (default: YES)" OFF)
find_package(ROOT 6.0 REQUIRED CONFIG)
include(${ROOT_USE_FILE})
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
# Set up Podd and ROOT dependencies # Set up Podd and ROOT dependencies
if(HCANA_BUILTIN_PODD) if(HCANA_BUILTIN_PODD)
...@@ -12,7 +15,6 @@ if(HCANA_BUILTIN_PODD) ...@@ -12,7 +15,6 @@ if(HCANA_BUILTIN_PODD)
${CMAKE_MODULE_PATH} ${CMAKE_MODULE_PATH}
) )
include(PoddCMakeEnv) include(PoddCMakeEnv)
find_package(ROOT 5.10 REQUIRED)
else() else()
# Find Podd and register it as a dependency # Find Podd and register it as a dependency
# This will also automatically set up ROOT # This will also automatically set up ROOT
...@@ -22,13 +24,13 @@ else() ...@@ -22,13 +24,13 @@ else()
endif() endif()
# Register ROOT dependency - it's in our public interface # Register ROOT dependency - it's in our public interface
config_add_dependency(ROOT 5.10) #config_add_dependency(ROOT 5.10)
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
# Set up the compiler flags # Set up the compiler flags
set_compiler_flags("${ROOT_CXX_FLAGS}") #set_compiler_flags("${ROOT_CXX_FLAGS}")
set_diagnostic_flags(WALL WEXTRA) #set_diagnostic_flags(WALL WEXTRA)
report_build_info() #report_build_info()
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
# Install in GNU-style directory layout # Install in GNU-style directory layout
......
...@@ -89,11 +89,12 @@ install(TARGETS ${LIBNAME} ...@@ -89,11 +89,12 @@ install(TARGETS ${LIBNAME}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
) )
install(FILES ${allheaders} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) install(FILES ${allheaders} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
install(DIRECTORY nlohmann DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) #install(DIRECTORY nlohmann DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
# libHallCDict # libHallCDict
build_root_dictionary(${LIBNAME} ${headers} build_root_dictionary(${LIBNAME} ${headers}
INCLUDEDIRS -I${CMAKE_CURRENT_SOURCE_DIR}
TARGETS ${LIBNAME} TARGETS ${LIBNAME}
LINKDEF ${linkdef} LINKDEF ${linkdef}
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment