ref: bd8f0e81e774c8241b5bd985fe5563b302834db9
dir: /CMakeLists.txt/
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") cmake_minimum_required(VERSION 3.7.2) project("Chocolate Doom" VERSION 3.0.0 LANGUAGES C) # Autotools variables set(top_srcdir ${CMAKE_CURRENT_SOURCE_DIR}) set(top_builddir ${CMAKE_CURRENT_BINARY_DIR}) # AC_INIT variables set(PACKAGE_NAME "${PROJECT_NAME}") set(PACKAGE_TARNAME "chocolate-doom") set(PACKAGE_VERSION "${PROJECT_VERSION}") set(PACKAGE_STRING "${PROJECT_NAME} ${PROJECT_VERSION}") set(PACKAGE_BUGREPORT "[email protected]") string(REGEX REPLACE " Doom$" "" PACKAGE_SHORTNAME "${PACKAGE_NAME}") set(PACKAGE_COPYRIGHT "Copyright (C) 1993-2017") set(PACKAGE_LICENSE "GNU General Public License, version 2") find_package(SDL2 2.0.1) find_package(SDL2_mixer 2.0.0) find_package(SDL2_net 2.0.0) include(CheckFunctionExists) check_function_exists(strcasecmp HAVE_DECL_STRCASECMP) check_function_exists(strncasecmp HAVE_DECL_STRNCASECMP) set(WINDOWS_RC_VERSION "${PROJECT_VERSION_MAJOR}, ${PROJECT_VERSION_MINOR}, ${PROJECT_VERSION_PATCH}, 0") # Without a hyphen. This is used for the bash-completion scripts. string(TOLOWER "${PACKAGE_SHORTNAME}" PROGRAM_SPREFIX) # With a hyphen, used almost everywhere else. set(PROGRAM_PREFIX "${PROGRAM_SPREFIX}-") configure_file(config.h.cin config.h) configure_file(src/resource.rc.in src/resource.rc) configure_file(src/setup-res.rc.in src/setup-res.rc) configure_file(src/setup/setup-manifest.xml.in src/setup/setup-manifest.xml) foreach(SUBDIR textscreen midiproc opl pcsound src) add_subdirectory("${SUBDIR}") endforeach()