CMAKE_MINIMUM_REQUIRED(VERSION 3.2) # Submodules might need pkg-config so include it here FIND_PACKAGE(PkgConfig) ADD_DEFINITIONS("-Wall -Werror -D_GNU_SOURCE") SET(LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib/d20") ADD_DEFINITIONS("-DD20_LIB_DIR=\"${LIB_DIR}\"") ADD_SUBDIRECTORY(d20) ADD_SUBDIRECTORY(dice)