Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Trip Event Logger Config
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MSK-SW
Low-Level Radio Frequency
Trip Event Logger
Trip Event Logger Config
Commits
6e30de2a
Commit
6e30de2a
authored
5 years ago
by
Martin Christoph Hierholzer
Browse files
Options
Downloads
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/Modules/FindDOOCS.cmake
+8
-1
8 additions, 1 deletion
cmake/Modules/FindDOOCS.cmake
with
8 additions
and
1 deletion
cmake/Modules/FindDOOCS.cmake
+
8
−
1
View file @
6e30de2a
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment