Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KInfoCenter
Commits
7ef1d289
Commit
7ef1d289
authored
Mar 04, 2021
by
Nicolas Fella
Browse files
Use imported target for GL libraries
This is more robust than using variables
parent
11609207
Changes
1
Hide whitespace changes
Inline
Side-by-side
Modules/opengl/CMakeLists.txt
View file @
7ef1d289
# KI18N Translation Domain for this library
add_definitions
(
-DTRANSLATION_DOMAIN=\"kcmopengl\"
)
if
(
KCM_ENABLE_OPENGL
)
include_directories
(
${
OPENGL_INCLUDE_DIR
}
${
OPENGL_GLU_INCLUDE_DIR
}
)
endif
()
if
(
KCM_ENABLE_OPENGLES
)
include_directories
(
${
OPENGLES_INCLUDE_DIR
}
)
endif
()
...
...
@@ -26,7 +22,7 @@ if (DL_LIBRARY)
endif
()
if
(
KCM_ENABLE_OPENGL
)
target_link_libraries
(
kcm_opengl
${
OPENGL_gl_LIBRARY
}
${
OPENGL_glu_LIBRARY
}
)
target_link_libraries
(
kcm_opengl
OpenGL::GL OpenGL::GLU
)
endif
()
if
(
KCM_HAVE_EGL
)
...
...
Write
Preview
Supports
Markdown
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