summaryrefslogtreecommitdiff
path: root/indra/cmake/UI.cmake
diff options
context:
space:
mode:
authorNicky <nicky.dasmijn@gmail.com>2022-04-18 18:11:43 +0200
committerNicky <nicky.dasmijn@gmail.com>2022-04-18 18:11:43 +0200
commit2b151e0aefd54671e1be504269f10318d303dccb (patch)
treec1527ef5d23bc946ac8dfcb907d2678a9a96db79 /indra/cmake/UI.cmake
parentdcfb94fbaca3c66ec02e6873cda53b4afd547beb (diff)
Round one to support conan for 3P packages, this allows to build the viewer on Linux again.
Diffstat (limited to 'indra/cmake/UI.cmake')
-rw-r--r--indra/cmake/UI.cmake15
1 files changed, 8 insertions, 7 deletions
diff --git a/indra/cmake/UI.cmake b/indra/cmake/UI.cmake
index 6a2e6f22df..066975a3d0 100644
--- a/indra/cmake/UI.cmake
+++ b/indra/cmake/UI.cmake
@@ -2,13 +2,17 @@
include(Prebuilt)
include(FreeType)
-if (LINUX)
- use_prebuilt_binary(gtk-atk-pango-glib)
-endif (LINUX)
-
add_library( ll::uilibraries INTERFACE IMPORTED )
if (LINUX)
+ target_compile_definitions(ll::uilibraries INTERFACE LL_GTK=1 LL_X11=1 )
+
+ if( USE_CONAN )
+ target_link_libraries( ll::uilibraries INTERFACE CONAN_PKG::gtk )
+ return()
+ endif()
+ use_prebuilt_binary(gtk-atk-pango-glib)
+
target_link_libraries( ll::uilibraries INTERFACE
atk-1.0
gdk-x11-2.0
@@ -67,6 +71,3 @@ target_include_directories( ll::uilibraries SYSTEM INTERFACE
# )
#endforeach(include)
-if (LINUX)
- target_compile_definitions(ll::uilibraries INTERFACE LL_GTK=1 LL_X11=1 )
-endif (LINUX)