Skip to content
Snippets Groups Projects
Commit 6e30de2a authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

Merge branch 'master' of github.com:ChimeraTK/project-template

parents 78bd96c9 4683927e
No related branches found
No related tags found
No related merge requests found
...@@ -65,6 +65,13 @@ if (";${DOOCS_FIND_COMPONENTS};" MATCHES ";ddaq;") ...@@ -65,6 +65,13 @@ if (";${DOOCS_FIND_COMPONENTS};" MATCHES ";ddaq;")
set(DOOCS_LIBRARIES ${DOOCS_LIBRARIES} DOOCSddaq timinginfo daqevstat DAQFSM TTF2XML xerces-c BM TTF2evutl) set(DOOCS_LIBRARIES ${DOOCS_LIBRARIES} DOOCSddaq timinginfo daqevstat DAQFSM TTF2XML xerces-c BM TTF2evutl)
endif() endif()
if (";${DOOCS_FIND_COMPONENTS};" MATCHES ";daqreader;")
FIND_PATH(DOOCS_DIR_SERVER libDOOCSdaqreader.so
${DOOCS_DIR}
)
set(DOOCS_LIBRARIES ${DOOCS_LIBRARIES} DAQReader TTF2evutl TTF2XML lzo2 DAQsvrutil)
endif()
set(DOOCS_LIBRARIES ${DOOCS_LIBRARIES} DOOCSapi nsl dl pthread m rt ldap gul) set(DOOCS_LIBRARIES ${DOOCS_LIBRARIES} DOOCSapi nsl dl pthread m rt ldap gul)
# now set the required variables based on the determined DOOCS_DIR # now set the required variables based on the determined DOOCS_DIR
...@@ -77,7 +84,7 @@ set(DOOCS_LINK_FLAGS "${DOOCS_LINKER_FLAGS}") ...@@ -77,7 +84,7 @@ set(DOOCS_LINK_FLAGS "${DOOCS_LINKER_FLAGS}")
# extract DOOCS version from librar so symlink. Note: This is platform dependent and only works # extract DOOCS version from librar so symlink. Note: This is platform dependent and only works
# if DOOCS was installed from the Debian pagackes. Find a better version detection scheme! # if DOOCS was installed from the Debian pagackes. Find a better version detection scheme!
execute_process(COMMAND bash -c "readelf -d ${DOOCS_DIR}/libDOOCSapi.so | grep SONAME | sed -e 's/^.*Library soname: \\[libDOOCSapi\\.so\\.//' -e 's/\\]$//'" execute_process(COMMAND bash -c "env LANG=C readelf -d ${DOOCS_DIR}/libDOOCSapi.so | grep SONAME | sed -e 's/^.*Library soname: \\[libDOOCSapi\\.so\\.//' -e 's/\\]$//'"
OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE DOOCS_VERSION) OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE DOOCS_VERSION)
# use a macro provided by CMake to check if all the listed arguments are valid and set DOOCS_FOUND accordingly # use a macro provided by CMake to check if all the listed arguments are valid and set DOOCS_FOUND accordingly
......
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