26 lines
436 B
CMake
26 lines
436 B
CMake
cmake_minimum_required(VERSION 3.15)
|
|
|
|
project(dmtools
|
|
LANGUAGES CXX
|
|
)
|
|
|
|
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
|
|
|
|
include(Policies)
|
|
include(CompilerFlags)
|
|
include(ProjectFuncs)
|
|
|
|
# required system dependencies
|
|
find_package(PkgConfig REQUIRED)
|
|
find_package(Threads REQUIRED)
|
|
|
|
|
|
dmtools_set_alternate_linker()
|
|
|
|
# libraries
|
|
add_subdirectory(lib/base)
|
|
add_subdirectory(lib/dmbmx)
|
|
|
|
# programs
|
|
add_subdirectory(progs/zalgo)
|