Debian Codegraph @

lib/glcomp/CMakeLists.txt

raw
1 if(WITH_SMYRNA)
2
3 find_package(Freetype REQUIRED)
4 find_package(GLUT REQUIRED)
5 find_package(GTK2 REQUIRED COMPONENTS gtk glade)
6 find_package(PANGOCAIRO REQUIRED)
7 find_package(PkgConfig REQUIRED)
8 pkg_check_modules(XRENDER REQUIRED xrender)
9
10 add_library(glcomp OBJECT
11 glcompbutton.h
12 glcompdefs.h
13 glcompfont.h
14 glcompimage.h
15 glcomplabel.h
16 glcompmouse.h
17 glcomppanel.h
18 glcompset.h
19 glcomptextpng.h
20 glcomptexture.h
21 glpangofont.h
22 glutils.h
23 opengl.h
24
25 glcompbutton.c
26 glcompfont.c
27 glcompimage.c
28 glcomplabel.c
29 glcompmouse.c
30 glcomppanel.c
31 glcompset.c
32 glcomptextpng.c
33 glcomptexture.c
34 glpangofont.c
35 glutils.c
36 )
37
38 target_include_directories(glcomp PRIVATE
39 ..
40 ../common
41 )
42
43 target_include_directories(glcomp SYSTEM PRIVATE
44 ${FREETYPE_INCLUDE_DIRS}
45 ${GLUT_INCLUDE_DIR}
46 ${GTK2_INCLUDE_DIRS}
47 ${PANGOCAIRO_INCLUDE_DIRS}
48 ${XRENDER_INCLUDE_DIRS}
49 )
50
51 if(WIN32 AND NOT MINGW)
52 target_include_directories(glcomp PRIVATE ../../windows/include/unistd)
53 endif()
54
55 target_link_libraries(glcomp PRIVATE
56 ${FREETYPE_LIBRARIES}
57 ${GLUT_LIBRARIES}
58 ${GTK2_LIBRARIES}
59 ${PANGOCAIRO_LINK_LIBRARIES}
60 ${XRENDER_LIBRARIES}
61 )
62
63 endif()