Commit 5041324d authored by Stezowski Olivier's avatar Stezowski Olivier
Browse files

add find dcod

parent 2a2e1543
......@@ -45,9 +45,14 @@ set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
#
# Where to look first for cmake modules
#
if(DEFINED ENV{AGATASOFTWARE_TOP_DIR})
set(CMAKE_MODULE_PATH $ENV{AGATASOFTWARE_TOP_DIR}/scripts/cmake/Modules ${CMAKE_MODULE_PATH})
if(DEFINED ENV{G_RAYSOFTWARE_TOP_DIR})
set(CMAKE_MODULE_PATH $ENV{G_RAYSOFTWARE_TOP_DIR}/scripts/cmake/Modules ${CMAKE_MODULE_PATH})
else()
if(DEFINED ENV{AGATASOFTWARE_TOP_DIR})
set(CMAKE_MODULE_PATH $ENV{AGATASOFTWARE_TOP_DIR}/scripts/cmake/Modules ${CMAKE_MODULE_PATH})
endif()
endif()
message("PATH to search for cmake modules ${CMAKE_MODULE_PATH}")
#
# define format for libraries (force .so for macos)
......@@ -98,6 +103,8 @@ find_package(ADF REQUIRED)
#
find_package(ROOT)
find_package(MFM)
find_package(DCOD)
# Find module using simple test
include(AGAPROMacroUtilities)
include(AGAPROSearchInstalledSoftware)
......
......@@ -7,6 +7,7 @@
#cmakedefine HAS_C11
#cmakedefine HAS_ROOT
#cmakedefine HAS_MFM
#cmakedefine HAS_DCOD
//////////////////////////////
......
......@@ -57,6 +57,13 @@ else()
message("[AGAPRO] + Configured with MFM disabled")
endif()
if (DCOD_FOUND)
SET(HAS_DCOD ON)
message("[AGAPRO] + Configured with DCOD enabled")
else()
message("[AGAPRO] + Configured with DCOD disabled")
endif()
#
#
configure_file (
......
......@@ -16,7 +16,7 @@ if (ROOT_FOUND)
endif()
if (MFM_FOUND)
set( EXTRA_EXTERNAL_LIBRARIES ${MFM_LIBRARY})
set(EXTRA_EXTERNAL_LIBRARIES ${EXTRA_EXTERNAL_LIBRARIES} ${MFM_LIBRARY})
endif()
# headers / sources
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment