Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
xtpcpp
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
Container Registry
Model registry
Operate
Environments
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PAPPSO
xtpcpp
Commits
77bf9821
Commit
77bf9821
authored
4 years ago
by
Langella Olivier
Browse files
Options
Downloads
Patches
Plain Diff
rename cmake find pappso script
parent
507cd8ee
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
CMakeStuff/modules/FindPappsoMSpp.cmake
+13
-16
13 additions, 16 deletions
CMakeStuff/modules/FindPappsoMSpp.cmake
with
13 additions
and
16 deletions
CMakeStuff/modules/FindPappsoMSpp.cmake
+
13
−
16
View file @
77bf9821
...
...
@@ -2,16 +2,16 @@
# License : GPL-3.0+
# Authors : Olivier Langella, Filippo Rusconi
find_path
(
PappsoMSpp_INCLUDE_DIR pappsomspp/types.h
find_path
(
PappsoMSpp_INCLUDE_DIR
S
pappsomspp/types.h
PATHS /usr/local/include /usr/include
PATH_SUFFIXES pappsomspp libpappsomspp ENV PATH
)
find_library
(
PappsoMSpp_LIBRARY NAMES pappsomspp
)
if
(
PappsoMSpp_INCLUDE_DIR AND PappsoMSpp_LIBRARY
)
if
(
PappsoMSpp_INCLUDE_DIR
S
AND PappsoMSpp_LIBRARY
)
mark_as_advanced
(
PappsoMSpp_INCLUDE_DIR
)
mark_as_advanced
(
PappsoMSpp_INCLUDE_DIR
S
)
mark_as_advanced
(
PappsoMSpp_LIBRARY
)
message
(
STATUS
"~~~~~~~~~~~~~
${
PappsoMSpp_LIBRARY
}
~~~~~~~~~~~~~~~"
)
...
...
@@ -21,7 +21,6 @@ if(PappsoMSpp_INCLUDE_DIR AND PappsoMSpp_LIBRARY)
endif
()
if
(
PappsoMSpp_FOUND
)
# show which CppUnit was found only if not quiet
if
(
NOT PappsoMSpp_FIND_QUIETLY
)
message
(
STATUS
"Found PappsoMSpp_LIBRARY:
${
PappsoMSpp_LIBRARY
}
"
)
...
...
@@ -33,44 +32,42 @@ if(PappsoMSpp_FOUND)
set_target_properties
(
PappsoMSpp::Core PROPERTIES
IMPORTED_LOCATION
"
${
PappsoMSpp_LIBRARY
}
"
INTERFACE_INCLUDE_DIRECTORIES
"
${
PappsoMSpp_INCLUDE_DIR
}
"
)
INTERFACE_INCLUDE_DIRECTORIES
"
${
PappsoMSpp_INCLUDE_DIR
S
}
"
)
endif
()
find_library
(
PappsoMSpp
_WIDGET
_LIBRARY NAMES pappsomspp-widget
)
find_library
(
PappsoMSpp
Widget
_LIBRARY NAMES pappsomspp-widget
)
if
(
PappsoMSpp_INCLUDE_DIR AND PappsoMSpp
_WIDGET
_LIBRARY
)
if
(
PappsoMSpp_INCLUDE_DIR
S
AND PappsoMSpp
Widget
_LIBRARY
)
mark_as_advanced
(
PappsoMSpp
_WIDGET
_LIBRARY
)
mark_as_advanced
(
PappsoMSpp
Widget
_LIBRARY
)
message
(
STATUS
"~~~~~~~~~~~~~
${
PappsoMSpp
_WIDGET
_LIBRARY
}
~~~~~~~~~~~~~~~"
)
message
(
STATUS
"~~~~~~~~~~~~~
${
PappsoMSpp
Widget
_LIBRARY
}
~~~~~~~~~~~~~~~"
)
set
(
PappsoMSpp
_WIDGET
_FOUND TRUE
)
set
(
PappsoMSpp
Widget
_FOUND TRUE
)
if
(
NOT TARGET PappsoMSpp::Widget
)
add_library
(
PappsoMSpp::Widget UNKNOWN IMPORTED
)
set_target_properties
(
PappsoMSpp::Widget PROPERTIES
IMPORTED_LOCATION
"
${
PappsoMSpp
_WIDGET
_LIBRARY
}
"
INTERFACE_INCLUDE_DIRECTORIES
"
${
PappsoMSpp_INCLUDE_DIR
}
"
)
IMPORTED_LOCATION
"
${
PappsoMSpp
Widget
_LIBRARY
}
"
INTERFACE_INCLUDE_DIRECTORIES
"
${
PappsoMSpp_INCLUDE_DIR
S
}
"
)
endif
()
endif
()
# show which CppUnit was found only if not quiet
if
(
NOT PappsoMSpp_FIND_QUIETLY
)
message
(
STATUS
"Found PappsoMSpp
_WIDGET
_LIBRARY:
${
PappsoMSpp
_WIDGET
_LIBRARY
}
"
)
message
(
STATUS
"Found PappsoMSpp
Widget
_LIBRARY:
${
PappsoMSpp
Widget
_LIBRARY
}
"
)
endif
()
else
()
# fatal error if CppUnit is required but not found
if
(
PappsoMSpp_FIND_REQUIRED
)
message
(
FATAL_ERROR
"Could not find libpappsomspp. Please do specify the
PappsoMSpp_INCLUDE_DIR and PappsoMSpp_LIBRARY variables using cmake!"
)
PappsoMSpp_INCLUDE_DIR
S
and PappsoMSpp_LIBRARY variables using cmake!"
)
endif
()
...
...
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