Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Chameleon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
AGULLO Emmanuel
Chameleon
Commits
79cd5ee2
Commit
79cd5ee2
authored
Jun 12, 2017
by
BOUCHERIE Raphael
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor on FindLIBHQR
parent
f3098613
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
cmake_modules/FindLIBHQR.cmake
cmake_modules/FindLIBHQR.cmake
+12
-6
No files found.
cmake_modules/FindLIBHQR.cmake
View file @
79cd5ee2
...
...
@@ -6,30 +6,36 @@
# LIBHQR_DEFINITIONS - Compiler switches required for using LIBHQR
find_package
(
PkgConfig
)
pkg_check_modules
(
PC_LIBHQR QUIET libhqr
)
set
(
LIBHQR_DEFINITIONS
${
PC_LIBHQR_CFLAGS_OTHER
}
)
if
(
PKG_CONFIG_FOUND
)
pkg_check_modules
(
PC_LIBHQR QUIET libhqr
)
endif
()
find_path
(
LIBHQR_INCLUDE_DIR
libhqr.h
HINTS
${
PC_LIBHQR_INCLUDEDIR
}
${
PC_LIBHQR_INCLUDE_DIRS
}
HINTS
${
LIBHQR_DIR
}
${
PC_LIBHQR_INCLUDEDIR
}
${
PC_LIBHQR_INCLUDE_DIRS
}
PATH_SUFFIXES include include/libhqr
)
find_library
(
LIBHQR_LIBRARY
NAMES hqr
HINTS
${
PC_LIBHQR_LIBDIR
}
${
PC_LIBHQR_LIBRARY_DIRS
}
HINTS
${
LIBHQR_DIR
}
${
PC_LIBHQR_LIBDIR
}
${
PC_LIBHQR_LIBRARY_DIRS
}
PATH_SUFFIXES lib lib32 lib64 lib/libhqr lib32/libhqr lib64/libhqr
)
set
(
LIBHQR_DIR
""
CACHE PATH
"Path where LIBHQR was installed"
)
include
(
FindPackageHandleStandardArgs
)
# handle the QUIETLY and REQUIRED arguments
# and set LIBHQR_FOUND to TRUE
# if all listed variables are TRUE
find_package_handle_standard_args
(
LIBHQR
DEFAULT_MSG LIBHQR_LIBRARY LIBHQR_INCLUDE_DIR
)
LIBHQR DEFAULT_MSG LIBHQR_LIBRARY LIBHQR_INCLUDE_DIR
)
mark_as_advanced
(
LIBHQR_INCLUDE_DIR LIBHQR_LIBRARY
)
set
(
LIBHQR_LIBRARIES
${
LIBHQR_LIBRARY
}
)
set
(
LIBHQR_INCLUDE_DIRS
${
LIBHQR_INCLUDE_DIR
}
)
set
(
LIBHQR_DEFINITIONS
${
PC_LIBHQR_CFLAGS_OTHER
}
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment