1 include_directories(BEFORE common)
3 set(Q3MAP_VERSION 2.5.17n)
6 set(Q3MAP_VERSION "${Q3MAP_VERSION}-git-${GIT_VERSION}")
9 add_definitions(-DQ3MAP_VERSION="${Q3MAP_VERSION}")
11 find_package(GLIB REQUIRED)
12 include_directories(${GLIB_INCLUDE_DIRS})
14 find_package(JPEG REQUIRED)
15 include_directories(${JPEG_INCLUDE_DIR})
17 find_package(PNG REQUIRED)
18 include_directories(${PNG_INCLUDE_DIR})
20 find_package(WebP REQUIRED)
21 include_directories(${WEBP_INCLUDE_DIR})
23 find_package(LibXml2 REQUIRED)
24 include_directories(${LIBXML2_INCLUDE_DIR})
26 find_package(Minizip REQUIRED)
27 include_directories(${Minizip_INCLUDE_DIRS})
29 include_directories(${CMAKE_SOURCE_DIR}/libs/crnrgba)
32 q3map2/game_darkplaces.h
40 q3map2/game_prophecy.h
44 q3map2/game_quakelive.h
45 q3map2/game_reaction.h
46 q3map2/game_smokinguns.h
48 q3map2/game_tenebrae.h
49 q3map2/game_tremulous.h
50 q3map2/game_unvanquished.h
60 common/cmdlib.c common/cmdlib.h
61 common/imagelib.c common/imagelib.h
62 common/inout.c common/inout.h
64 common/md4.c common/md4.h
65 common/mutex.c common/mutex.h
66 common/polylib.c common/polylib.h
70 common/scriplib.c common/scriplib.h
73 common/vfs.c common/vfs.h
81 q3map2/bspfile_abstract.c
93 ${q3map2_games} q3map2/game__null.h
101 q3map2/lightmaps_ydnar.c
114 q3map2/surface_extra.c
115 q3map2/surface_foliage.c
117 q3map2/surface_meta.c
126 set(OPTIONAL_IMAGE_LIBRARIES crnrgba)
127 set(OPTIONAL_IMAGE_DEFINES BUILD_CRUNCH=1)
130 target_compile_definitions(q3map2
132 ${OPTIONAL_IMAGE_DEFINES}
135 target_link_libraries(q3map2
142 ${OPTIONAL_IMAGE_LIBRARIES}
154 common/aselib.c common/aselib.h
155 common/bspfile.c common/bspfile.h
156 common/cmdlib.c common/cmdlib.h
157 common/imagelib.c common/imagelib.h
158 common/inout.c common/inout.h
159 common/md4.c common/md4.h
160 common/scriplib.c common/scriplib.h
161 common/trilib.c common/trilib.h
162 common/vfs.c common/vfs.h
164 q3data/3dslib.c q3data/3dslib.h
167 q3data/md3lib.c q3data/md3lib.h
169 q3data/p3dlib.c q3data/p3dlib.h
171 q3data/q3data.c q3data/q3data.h
176 target_link_libraries(q3data
186 add_custom_target(quake3)
187 add_dependencies(quake3 q3map2 q3data)
190 target_link_libraries(q3map2 pthread m)
191 target_link_libraries(q3data m)