doompanning/CMakeLists.txt

20 lines
644 B
CMake

cmake_minimum_required(VERSION 3.12)
project(doompanning)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
## Create binaries in the root of the build directory
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
set(CMAKE_VERBOSE_MAKEFILE ON CACHE BOOL "ON")
add_subdirectory(external)
# Way too much. Have to exclude the imgui implementation files at least. Also
# not sure if the .clang-tidy file is picked up. Probably best to pass it on the
# command line using "${CMAKE_SOURCE_DIR}/.clang-tidy".
#set(CMAKE_C_CLANG_TIDY clang-tidy -p ${CMAKE_BINARY_DIR})
#set(CMAKE_CXX_CLANG_TIDY clang-tidy -p ${CMAKE_BINARY_DIR})
add_subdirectory(src)