-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCMakeLists.txt
61 lines (54 loc) · 1.92 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
cmake_minimum_required(VERSION 2.8.12)
project(lsdldoom)
# Add path for custom modules
set(CMAKE_MODULE_PATH
${CMAKE_MODULE_PATH}
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules"
)
find_package(SDL2_mixer)
include(TestBigEndian)
include(CheckIncludeFiles)
include(CheckSymbolExists)
test_big_endian(__BIG_ENDIAN__)
check_include_files("linux/joystick.h" HAVE_LINUX_JOYSTICK_H)
check_include_files("sys/filio.h" HAVE_SYS_FILIO_H)
check_include_files("sys/ioctl.h" HAVE_SYS_IOCTL_H)
check_symbol_exists(strcasecmp strings.h LSDLDOOM_HAVE_STRCASECMP)
check_symbol_exists(socket "sys/socket.h" HAVE_NET)
check_symbol_exists(inet_aton "arpa/inet.h" HAVE_INET_ATON)
if(SDL2_MIXER_FOUND)
set(HAVE_MIXER True)
endif()
set(DOOMWADDIR "${CMAKE_INSTALL_PREFIX}/share/games/doom")
set(SNDSERV_PATH "")
if (NOT "${SNDSERV_PATH}" MATCHES "")
set(HAVE_SNDSERV_PATH True)
endif()
set(MUSSERV_PATH "")
if (NOT "${MUSSERV_PATH}" MATCHES "")
set(HAVE_MUSSERV_PATH True)
endif()
set(LSDLDOOM_VERSION_MAJOR 1)
set(LSDLDOOM_VERSION_MINOR 5)
set(LSDLDOOM_VERSION_TWEAK "")
set(
CPACK_PACKAGE_VERSION
"${LSDLDOOM_VERSION_MAJOR}.${LSDLDOOM_VERSION_MINOR}${LSDLDOOM_VERSION_TWEAK}")
option(DEHACKED "Dehacked file support" On)
option(CONFIG_FILE_SUPPORT "Config file support" On)
option(DEBUG_PRINT_SUPPORT "Debug printing support" On)
option(HIGHRES "High resolution support" On)
option(RANGECHECK "Internal range checking" Off)
option(INSTRUMENTED "Real-time memory allocation statistics" Off)
option(CHECKHEAP "Exhaustively run memory checks" Off)
option(ZONEIDCHECK "Perform id checks on zone blocks" On)
option(SIMPLECHECKS "Quick checks" On)
option(TIMEDIAG "Lumps locked for long periods of time are reported" Off)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/config.h.in
${CMAKE_CURRENT_BINARY_DIR}/config.h)
add_subdirectory(data)
add_subdirectory(src)
add_subdirectory(doc)
install(FILES AUTHORS COPYING README DESTINATION share/doc/lsdldoom)
include(CPack)