| 1 |
include_directories(BEFORE h2data common qcommon) |
| 2 |
|
| 3 |
find_package(OpenGL REQUIRED) |
| 4 |
|
| 5 |
find_package(LibXml2 REQUIRED) |
| 6 |
include_directories(${LIBXML2_INCLUDE_DIR}) |
| 7 |
|
| 8 |
radiant_tool(h2data |
| 9 |
h2data/h2data.rc |
| 10 |
|
| 11 |
common/bspfile.c common/bspfile.h |
| 12 |
common/cmdlib.c common/cmdlib.h |
| 13 |
common/inout.c common/inout.h |
| 14 |
common/l3dslib.c common/l3dslib.h |
| 15 |
common/lbmlib.c common/lbmlib.h |
| 16 |
common/mathlib.c common/mathlib.h |
| 17 |
common/md4.c common/md4.h |
| 18 |
common/path_init.c |
| 19 |
common/polylib.c common/polylib.h |
| 20 |
common/qfiles.c common/qfiles.h |
| 21 |
common/scriplib.c common/scriplib.h |
| 22 |
common/threads.c common/her2_threads.h |
| 23 |
common/token.c common/token.h |
| 24 |
common/trilib.c common/trilib.h |
| 25 |
|
| 26 |
qcommon/angles.h |
| 27 |
qcommon/arrayedlist.h |
| 28 |
qcommon/flex.h |
| 29 |
qcommon/fmodel.h |
| 30 |
qcommon/h2common.h |
| 31 |
qcommon/placement.h |
| 32 |
qcommon/qfiles.h |
| 33 |
qcommon/q_typedef.h |
| 34 |
qcommon/reference.c qcommon/reference.h |
| 35 |
qcommon/resourcemanager.c qcommon/resourcemanager.h |
| 36 |
qcommon/skeletons.c qcommon/skeletons.h |
| 37 |
|
| 38 |
h2data/adpcm.h |
| 39 |
h2data/animcomp.c h2data/animcomp.h |
| 40 |
h2data/anorms.h |
| 41 |
h2data/book.c |
| 42 |
h2data/fmodels.c h2data/qd_fmodel.h |
| 43 |
h2data/images.c |
| 44 |
h2data/jointed.c |
| 45 |
h2data/jointed.h |
| 46 |
h2data/joints.h |
| 47 |
h2data/models.c |
| 48 |
h2data/pics.c |
| 49 |
h2data/qdata.c h2data/qdata.h |
| 50 |
h2data/qd_skeletons.c h2data/qd_skeletons.h |
| 51 |
h2data/resource.h |
| 52 |
h2data/sprites.c |
| 53 |
h2data/svdcmp.c |
| 54 |
h2data/tables.c |
| 55 |
h2data/tmix.c |
| 56 |
h2data/video.c |
| 57 |
) |
| 58 |
|
| 59 |
target_compile_definitions(h2data |
| 60 |
PRIVATE |
| 61 |
) |
| 62 |
|
| 63 |
target_link_libraries(h2data |
| 64 |
${LIBXML2_LIBRARIES} |
| 65 |
l_net |
| 66 |
) |
| 67 |
|
| 68 |
add_custom_target(heretic2) |
| 69 |
add_dependencies(heretic2 h2data q2map) |
| 70 |
|
| 71 |
if (UNIX) |
| 72 |
target_link_libraries(h2data pthread m) |
| 73 |
endif () |