mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2024-11-22 11:51:09 +00:00
Replace use of deprecated pkgconfig() macro with find_package()
MD-19678 #time 15m
This commit is contained in:
parent
b6a13d3faa
commit
e55a58e4be
1 changed files with 3 additions and 6 deletions
|
@ -8,18 +8,15 @@ if (UNIX)
|
|||
add_definitions(-Wall -Werror -Wconversion)
|
||||
endif()
|
||||
|
||||
include(UsePkgConfig)
|
||||
pkgconfig(gtk+-2.0 GTK2_INCLUDE_DIR GTK2_LINK_DIR GTK2_LINK_FLAGS GTK2_CFLAGS)
|
||||
|
||||
if (UNIX AND NOT APPLE)
|
||||
set(LINUX TRUE)
|
||||
endif()
|
||||
|
||||
if (LINUX)
|
||||
include_directories(${GTK2_INCLUDE_DIR})
|
||||
add_definitions(${GTK2_CFLAGS})
|
||||
find_package(GTK2 REQUIRED gtk)
|
||||
include_directories(${GTK2_INCLUDE_DIRS})
|
||||
add_library(updatergtk SHARED UpdateDialogGtk.cpp UpdateDialogGtk.h)
|
||||
target_link_libraries(updatergtk ${GTK2_LINK_FLAGS})
|
||||
target_link_libraries(updatergtk ${GTK2_LIBRARIES})
|
||||
endif()
|
||||
|
||||
add_definitions(-DTIXML_USE_STL)
|
||||
|
|
Loading…
Reference in a new issue