Skip to content

Commit

Permalink
build: require GTK3 for non-Apple Unix at build time
Browse files Browse the repository at this point in the history
Closes #254
  • Loading branch information
bk138 committed Jan 6, 2025
1 parent 3a7f5ee commit e94d586
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@ add_library(MultiVNCgui STATIC ${MultiVNCgui_SRCS})
#
# dependencies
#
FIND_PACKAGE(PkgConfig)
PKG_CHECK_MODULES(GTK3 gtk+-3.0)
include_directories(${GTK3_INCLUDE_DIRS})
target_link_directories(MultiVNCgui INTERFACE ${GTK3_LIBRARY_DIRS})
target_link_libraries(MultiVNCgui ${GTK3_LIBRARIES})

if(UNIX AND NOT APPLE)
FIND_PACKAGE(PkgConfig)
PKG_CHECK_MODULES(GTK3 REQUIRED gtk+-3.0)
include_directories(${GTK3_INCLUDE_DIRS})
target_link_directories(MultiVNCgui INTERFACE ${GTK3_LIBRARY_DIRS})
target_link_libraries(MultiVNCgui ${GTK3_LIBRARIES})
endif()


#original Makefile.am contents follow:
Expand Down

0 comments on commit e94d586

Please sign in to comment.