# larwirecell/CMakeLists.txt # # David Adams # June 2016 # # CMake instructions for the larwirecell package. # # ====================================================================== # Old build instructions: # cd .../path/to/build/directory # source .../path/to/dune_extensions/ups/setup_for_development <-d|-p> # cmake [-DCMAKE_INSTALL_PREFIX=/install/path] # -DCMAKE_BUILD_TYPE=$CETPKG_TYPE # $CETPKG_SOURCE # make # make test # make install # make package (builds distribution tarfile) # ====================================================================== # use cmake 2.8 or later cmake_minimum_required (VERSION 2.8) project(larwirecell) # cetbuildtools contains our cmake modules SET ( CETBUILDTOOLS_VERSION $ENV{CETBUILDTOOLS_VERSION} ) IF (NOT CETBUILDTOOLS_VERSION) MESSAGE (FATAL_ERROR "ERROR: setup cetbuildtools to get the cmake modules") ENDIF() set(CMAKE_MODULE_PATH $ENV{ART_DIR}/Modules $ENV{CETBUILDTOOLS_DIR}/Modules ${CMAKE_MODULE_PATH}) include(CetCMakeEnv) cet_cmake_env() set_install_root() cet_set_compiler_flags(DIAGS CAUTIOUS WERROR NO_UNDEFINED EXTRA_FLAGS -pedantic -Wno-unused-local-typedefs ) cet_report_compiler_flags() # these are minimum required versions, not the actual product versions find_ups_product( larcore ) find_ups_product( lardata ) find_ups_product( larevt ) find_ups_product( lardataobj ) find_ups_product( lardataalg ) find_ups_product( larcoreobj ) find_ups_product( larcorealg ) find_ups_product( art ) find_ups_product(art_root_io) find_ups_product( cetbuildtools ) find_ups_product( jsoncpp ) find_ups_product( jsonnet ) find_ups_product( eigen ) find_ups_product( wirecell ) cet_find_library( WIRECELL_SIGPROC_LIB NAMES WireCellSigProc PATHS ENV WIRECELL_LIB NO_DEFAULT_PATH ) cet_find_library( WIRECELL_GEN_LIB NAMES WireCellGen PATHS ENV WIRECELL_LIB NO_DEFAULT_PATH ) cet_find_library( WIRECELL_IFACE_LIB NAMES WireCellIface PATHS ENV WIRECELL_LIB NO_DEFAULT_PATH ) cet_find_library( WIRECELL_UTIL_LIB NAMES WireCellUtil PATHS ENV WIRECELL_LIB NO_DEFAULT_PATH ) cet_find_library( WIRECELL_APPS_LIB NAMES WireCellApps PATHS ENV WIRECELL_LIB NO_DEFAULT_PATH ) set(WIRECELL_LIBS ${WIRECELL_APPS_LIB} ${WIRECELL_SIGPROC_LIB} ${WIRECELL_IFACE_LIB} ${WIRECELL_UTIL_LIB} ${WIRECELL_GEN_LIB}) cet_find_library( JSONCPP NAMES jsoncpp PATHS ENV JSONCPP_LIB NO_DEFAULT_PATH ) # macros for dictionary and simple_plugin include(ArtDictionary) include(ArtMake) include(BuildPlugins) # sources add_subdirectory(larwirecell) # ups - table and config files add_subdirectory(ups) # packaging utility include(UseCPack)