UI.cmake
上传用户:king477883
上传日期:2021-03-01
资源大小:9553k
文件大小:1k
源码类别:

游戏引擎

开发平台:

C++ Builder

  1. # -*- cmake -*-
  2. include(Prebuilt)
  3. if (STANDALONE)
  4.   include(FindPkgConfig)
  5.     
  6.   if (LINUX)
  7.     set(PKGCONFIG_PACKAGES
  8.         atk
  9.         cairo
  10.         gdk-2.0
  11.         gdk-pixbuf-2.0
  12.         glib-2.0
  13.         gmodule-2.0
  14.         gtk+-2.0
  15.         gthread-2.0
  16.         libpng
  17.         pango
  18.         pangoft2
  19.         pangox
  20.         pangoxft
  21.         sdl
  22.         )
  23.   endif (LINUX)
  24.   foreach(pkg ${PKGCONFIG_PACKAGES})
  25.     pkg_check_modules(${pkg} REQUIRED ${pkg})
  26.     include_directories(${${pkg}_INCLUDE_DIRS})
  27.     link_directories(${${pkg}_LIBRARY_DIRS})
  28.     list(APPEND UI_LIBRARIES ${${pkg}_LIBRARIES})
  29.     add_definitions(${${pkg}_CFLAGS_OTHERS})
  30.   endforeach(pkg)
  31. else (STANDALONE)
  32.   use_prebuilt_binary(gtk-atk-pango-glib)
  33.   if (LINUX)
  34.     set(UI_LIBRARIES
  35.         atk-1.0
  36.         gdk-x11-2.0
  37.         gdk_pixbuf-2.0
  38.         Xinerama
  39.         glib-2.0
  40.         gmodule-2.0
  41.         gobject-2.0
  42.         gthread-2.0
  43.         gtk-x11-2.0
  44.         pango-1.0
  45.         pangoft2-1.0
  46.         pangox-1.0
  47.         pangoxft-1.0
  48.         )
  49.   endif (LINUX)
  50.   include_directories (
  51.       ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include
  52.       ${LIBS_PREBUILT_DIR}/include
  53.       )
  54.   foreach(include ${${LL_ARCH}_INCLUDES})
  55.       include_directories(${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/${include})
  56.   endforeach(include)
  57. endif (STANDALONE)
  58. if (LINUX)
  59.   add_definitions(-DLL_GTK=1 -DLL_X11=1)
  60. endif (LINUX)