21 lines
541 B
CMake
21 lines
541 B
CMake
cmake_minimum_required(VERSION 3.10)
|
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
|
|
|
|
if(NOT DEFINED CMAKE_BUILD_TYPE)
|
|
set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo" FORCE)
|
|
endif()
|
|
|
|
project(dethrace C)
|
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
|
|
|
find_package(SDL2 REQUIRED)
|
|
|
|
add_subdirectory(lib/libsmacker)
|
|
add_subdirectory(lib/miniposix)
|
|
|
|
add_subdirectory(src/harness)
|
|
add_subdirectory(src/BRSRC13)
|
|
add_subdirectory(src/DETHRACE)
|