mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
gtk check
This commit is contained in:
parent
06f20a0476
commit
af88962d04
1 changed files with 11 additions and 0 deletions
|
|
@ -10,7 +10,14 @@ elseif (UNIX)
|
||||||
if (TORQUE_USE_ZENITY)
|
if (TORQUE_USE_ZENITY)
|
||||||
set(TORQUE_NFD_SOURCES ${TORQUE_NFD_COMMON_SOURCES} "${TORQUE_NFD_ROOT}/nfd_zenity.c")
|
set(TORQUE_NFD_SOURCES ${TORQUE_NFD_COMMON_SOURCES} "${TORQUE_NFD_ROOT}/nfd_zenity.c")
|
||||||
else()
|
else()
|
||||||
|
find_package(PkgConfig REQUIRED)
|
||||||
|
pkg_check_modules(GTK3 REQUIRED gtk+-3.0)
|
||||||
|
include_directories(${GTK3_INCLUDE_DIRS})
|
||||||
|
link_directories(${GTK3_LIBRARY_DIRS})
|
||||||
|
add_definitions(${GTK3_CFLAGS_OTHER})
|
||||||
|
|
||||||
set(TORQUE_NFD_SOURCES ${TORQUE_NFD_COMMON_SOURCES} "${TORQUE_NFD_ROOT}/nfd_gtk.c")
|
set(TORQUE_NFD_SOURCES ${TORQUE_NFD_COMMON_SOURCES} "${TORQUE_NFD_ROOT}/nfd_gtk.c")
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
elseif (WIN32)
|
elseif (WIN32)
|
||||||
|
|
@ -19,3 +26,7 @@ endif(APPLE)
|
||||||
|
|
||||||
add_library(nativeFileDialogs STATIC ${TORQUE_NFD_SOURCES})
|
add_library(nativeFileDialogs STATIC ${TORQUE_NFD_SOURCES})
|
||||||
target_include_directories(nativeFileDialogs PUBLIC ${TORQUE_NFD_INCLUDE_DIRECTORIES})
|
target_include_directories(nativeFileDialogs PUBLIC ${TORQUE_NFD_INCLUDE_DIRECTORIES})
|
||||||
|
|
||||||
|
if(UNIX)
|
||||||
|
target_link_libraries(nativeFileDialogs ${GTK3_LIBRARIES})
|
||||||
|
endif()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue