Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
hpp-gui
Commits
2a86c056
Commit
2a86c056
authored
Feb 12, 2018
by
Joseph Mirabel
Committed by
Joseph Mirabel
Feb 12, 2018
Browse files
Write Qt version into pkg config file.
parent
061cc2a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
2a86c056
...
...
@@ -52,12 +52,14 @@ MESSAGE(STATUS "Looking for Qt ${DESIRED_QT_VERSION_MAJOR}.")
SET
(
CMAKE_INCLUDE_CURRENT_DIR ON
)
IF
(
USE_QT4
)
FIND_PACKAGE
(
Qt4 REQUIRED QtCore QtGui QtOpenGl QtNetwork
)
SET
(
PKG_CONFIG_EXTRA
"qtversion:
${
QT_VERSION_MAJOR
}
.
${
QT_VERSION_MINOR
}
.
${
QT_VERSION_PATCH
}
"
)
ELSE
(
USE_QT4
)
FOREACH
(
component
"Core"
"Widgets"
"Gui"
"OpenGL"
"Concurrent"
"Network"
)
FIND_PACKAGE
(
"Qt5
${
component
}
"
REQUIRED
)
LIST
(
APPEND QT_INCLUDE_DIRS
${
Qt5
${
component
}
_INCLUDE_DIRS
}
)
LIST
(
APPEND QT_LIBRARIES
${
Qt5
${
component
}
_LIBRARIES
}
)
ENDFOREACH
(
component
"Core"
"Widgets"
"Gui"
"OpenGL"
"Network"
)
SET
(
PKG_CONFIG_EXTRA
"qtversion=
${
Qt5Core_VERSION
}
"
)
ENDIF
(
USE_QT4
)
SET
(
BOOST_COMPONENTS thread regex
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment