ericw-tools/qbsp3/CMakeLists.txt

45 lines
814 B
CMake

cmake_minimum_required (VERSION 2.8)
project (qbsp3 C)
add_definitions(-DDOUBLEVEC_T)
include_directories("${CMAKE_SOURCE_DIR}/common")
set(QBSP3_HEADERS
common/bspfile.h
common/cmdlib.h
common/mathlib.h
common/polylib.h
common/qfiles.h
common/scriplib.h
common/threads.h
qbsp.h)
set(QBSP3_SOURCES
brushbsp.c
faces.c
nodraw.c
glfile.c
leakfile.c
map.c
portals.c
prtfile.c
qbsp3.c
tree.c
textures.c
writebsp.c
csg.c
common/cmdlib.c
common/mathlib.c
common/polylib.c
common/scriplib.c
common/threads.c
common/bspfile.c)
find_package (Threads)
add_executable(qbsp3 ${QBSP3_SOURCES} ${QBSP3_HEADERS})
target_link_libraries(qbsp3 ${CMAKE_THREAD_LIBS_INIT})
install(TARGETS qbsp3 RUNTIME DESTINATION bin)