]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - libs/gtkutil/CMakeLists.txt
b62098c107940d18c233c6470ecb52a81d640eb7
[xonotic/netradiant.git] / libs / gtkutil / CMakeLists.txt
1 add_library(gtkutil
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 target_include_directories(gtkutil PRIVATE ${GTK${GTK_TARGET}_INCLUDE_DIRS})
31 target_link_libraries(gtkutil PRIVATE ${GTK${GTK_TARGET}_LIBRARIES})
32
33 if (GTK_TARGET EQUAL 2)
34     find_package(GtkGLExt REQUIRED)
35     target_include_directories(gtkutil PRIVATE ${GtkGLExt_INCLUDE_DIRS})
36     target_link_libraries(gtkutil PRIVATE ${GtkGLExt_LIBRARIES})
37 endif ()