| 1 |
add_library(gtkutil STATIC |
| 2 |
accelerator.cpp accelerator.h |
| 3 |
button.cpp button.h |
| 4 |
clipboard.cpp clipboard.h |
| 5 |
closure.h |
| 6 |
container.h |
| 7 |
cursor.cpp cursor.h |
| 8 |
dialog.cpp dialog.h |
| 9 |
entry.cpp entry.h |
| 10 |
filechooser.cpp filechooser.h |
| 11 |
frame.cpp frame.h |
| 12 |
glfont.cpp glfont.h |
| 13 |
glwidget.cpp glwidget.h |
| 14 |
idledraw.h |
| 15 |
image.cpp image.h |
| 16 |
menu.cpp menu.h |
| 17 |
messagebox.cpp messagebox.h |
| 18 |
nonmodal.cpp nonmodal.h |
| 19 |
paned.cpp paned.h |
| 20 |
pointer.h |
| 21 |
toolbar.cpp toolbar.h |
| 22 |
widget.cpp widget.h |
| 23 |
window.cpp window.h |
| 24 |
xorrectangle.cpp xorrectangle.h |
| 25 |
) |
| 26 |
|
| 27 |
target_include_directories(gtkutil PRIVATE uilib) |
| 28 |
target_link_libraries(gtkutil PRIVATE uilib) |
| 29 |
|
| 30 |
find_package(GTK${GTK_TARGET} REQUIRED) |
| 31 |
target_include_directories(gtkutil PRIVATE ${GTK${GTK_TARGET}_INCLUDE_DIRS}) |
| 32 |
target_link_libraries(gtkutil PRIVATE ${GTK${GTK_TARGET}_LIBRARIES}) |
| 33 |
|
| 34 |
if (GTK_TARGET EQUAL 2) |
| 35 |
find_package(GtkGLExt REQUIRED) |
| 36 |
target_include_directories(gtkutil PRIVATE ${GtkGLExt_INCLUDE_DIRS}) |
| 37 |
target_link_libraries(gtkutil PRIVATE ${GtkGLExt_LIBRARIES}) |
| 38 |
endif () |