CMakeLists: add preliminary CMake build system
This commit is contained in:
parent
2d5ea4fe73
commit
bab955103e
|
|
@ -0,0 +1,80 @@
|
||||||
|
cmake_minimum_required (VERSION 2.6)
|
||||||
|
project (tyrutils)
|
||||||
|
|
||||||
|
include_directories(
|
||||||
|
"${PROJECT_SOURCE_DIR}/include")
|
||||||
|
|
||||||
|
set(LIGHT_SOURCES
|
||||||
|
light/entities.c
|
||||||
|
light/litfile.c
|
||||||
|
light/ltface.c
|
||||||
|
light/trace.c
|
||||||
|
light/light.c
|
||||||
|
common/bspfile.c
|
||||||
|
common/cmdlib.c
|
||||||
|
common/mathlib.c
|
||||||
|
common/log.c
|
||||||
|
common/threads.c)
|
||||||
|
|
||||||
|
set(VIS_SOURCES
|
||||||
|
vis/flow.c
|
||||||
|
vis/vis.c
|
||||||
|
vis/soundpvs.c
|
||||||
|
vis/state.c
|
||||||
|
common/cmdlib.c
|
||||||
|
common/mathlib.c
|
||||||
|
common/bspfile.c
|
||||||
|
common/log.c
|
||||||
|
common/threads.c)
|
||||||
|
|
||||||
|
set(BSPINFO_SOURCES
|
||||||
|
bspinfo/bspinfo.c
|
||||||
|
common/cmdlib.c
|
||||||
|
common/bspfile.c
|
||||||
|
common/log.c
|
||||||
|
common/threads.c)
|
||||||
|
|
||||||
|
set(BSPUTIL_SOURCES
|
||||||
|
bsputil/bsputil.c
|
||||||
|
common/cmdlib.c
|
||||||
|
common/bspfile.c
|
||||||
|
common/log.c
|
||||||
|
common/threads.c)
|
||||||
|
|
||||||
|
set(QBSP_SOURCES
|
||||||
|
common/threads.c
|
||||||
|
common/log.c
|
||||||
|
qbsp/brush.c
|
||||||
|
qbsp/bspfile.c
|
||||||
|
qbsp/cmdlib.c
|
||||||
|
qbsp/csg4.c
|
||||||
|
qbsp/file.c
|
||||||
|
qbsp/globals.c
|
||||||
|
qbsp/map.c
|
||||||
|
qbsp/mathlib.c
|
||||||
|
qbsp/merge.c
|
||||||
|
qbsp/outside.c
|
||||||
|
qbsp/parser.c
|
||||||
|
qbsp/portals.c
|
||||||
|
qbsp/qbsp.c
|
||||||
|
qbsp/solidbsp.c
|
||||||
|
qbsp/surfaces.c
|
||||||
|
qbsp/tjunc.c
|
||||||
|
qbsp/util.c
|
||||||
|
qbsp/wad.c
|
||||||
|
qbsp/winding.c
|
||||||
|
qbsp/writebsp.c)
|
||||||
|
|
||||||
|
find_package (Threads)
|
||||||
|
|
||||||
|
add_executable(light ${LIGHT_SOURCES})
|
||||||
|
add_executable(vis ${VIS_SOURCES})
|
||||||
|
add_executable(bspinfo ${BSPINFO_SOURCES})
|
||||||
|
add_executable(bsputil ${BSPUTIL_SOURCES})
|
||||||
|
add_executable(qbsp ${QBSP_SOURCES})
|
||||||
|
|
||||||
|
target_link_libraries (light ${CMAKE_THREAD_LIBS_INIT})
|
||||||
|
|
||||||
|
if (CMAKE_USE_PTHREADS_INIT)
|
||||||
|
add_definitions(-DUSE_PTHREADS)
|
||||||
|
endif (CMAKE_USE_PTHREADS_INIT)
|
||||||
Loading…
Reference in New Issue