summaryrefslogtreecommitdiff
path: root/indra/cmake
diff options
context:
space:
mode:
authorNicky <nicky.dasmijn@gmail.com>2022-04-16 17:28:26 +0200
committerNicky <nicky.dasmijn@gmail.com>2022-04-16 17:28:26 +0200
commit924fa0fa78b41c7e8486c1ed29764afb1e32fd7e (patch)
tree5f13a9c20e73cda7ad3b07f1d620f3812cfcf7e7 /indra/cmake
parentf673b958fe36b19e999ab881255006d1d1d94bc0 (diff)
create target ll::uilibraries to have one common target that defines what each
operation system needs as dependencies on OS gui libraries.
Diffstat (limited to 'indra/cmake')
-rw-r--r--indra/cmake/UI.cmake27
1 files changed, 22 insertions, 5 deletions
diff --git a/indra/cmake/UI.cmake b/indra/cmake/UI.cmake
index ee95547136..03eb1b3fc4 100644
--- a/indra/cmake/UI.cmake
+++ b/indra/cmake/UI.cmake
@@ -6,8 +6,10 @@ if (LINUX)
use_prebuilt_binary(gtk-atk-pango-glib)
endif (LINUX)
+create_target( ll::uilibraries )
+
if (LINUX)
- set(UI_LIBRARIES
+ set_target_libraries( ll::uilibraries
atk-1.0
gdk-x11-2.0
gdk_pixbuf-2.0
@@ -21,12 +23,27 @@ if (LINUX)
pangoft2-1.0
pangox-1.0
pangoxft-1.0
- ${FREETYPE_LIBRARIES}
+ Xinerama
+ ll::freetype
)
endif (LINUX)
+if( WINDOWS )
+ set_target_libraries( ll::uilibraries
+ opengl32
+ comdlg32
+ dxguid
+ kernel32
+ odbc32
+ odbccp32
+ oleaut32
+ shell32
+ Vfw32
+ wer
+ winspool
+ )
+endif()
-include_directories (
- ${LIBS_PREBUILT_DIR}/include
+set_target_include_dirs( ll::uilibraries
${LIBS_PREBUILT_DIR}/include
)
@@ -51,5 +68,5 @@ include_directories (
#endforeach(include)
if (LINUX)
- add_definitions(-DLL_GTK=1 -DLL_X11=1)
+ set_target_properties(ll::uilibraries PROPERTIES COMPILE_DEFINITIONS LL_GTK=1 LL_X11=1 )
endif (LINUX)