diff options
author | halcanary <halcanary@google.com> | 2015-09-01 10:11:44 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-01 10:11:44 -0700 |
commit | 2a4a4219aa8b9a44358dbff5ff7c220950601387 (patch) | |
tree | 5aac7709ba25e0f2e12a4010cf0def7df5b2a76d /cmake | |
parent | 219f18f30df465beeee8114febe52fa50454a804 (diff) |
Cmake: fix to make linking work on Ubuntu
Review URL: https://codereview.chromium.org/1320443009
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index e83a2b0a86..df88487730 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -196,6 +196,9 @@ if (APPLE) list (APPEND libs ${APPLICATION_SERVICES_FRAMEWORK}) endif() +find_package(OpenGL REQUIRED) +list (APPEND libs ${OPENGL_LIBRARIES}) + # This is our main output, libskia.so. # We mostly build an .so here because it helps test we've linked everything, # not so much that we think Skia is a good candidate to ship as a shared library. @@ -220,6 +223,5 @@ set_target_properties(skia PROPERTIES VISIBILITY_INLINES_HIDDEN true) # Now build a simple example app that uses Skia via libskia.so. -find_package(OpenGL REQUIRED) add_executable(example example.cpp) target_link_libraries(example skia ${OPENGL_LIBRARIES}) |