|
@ -50,7 +50,37 @@ set(MODULE_INSTALL_DIR "${CMAKE_BINARY_DIR}/modules/install") |
|
|
# Include ExternalProject_Add macro |
|
|
# Include ExternalProject_Add macro |
|
|
include(${CMAKE_ROOT}/Modules/ExternalProject.cmake) |
|
|
include(${CMAKE_ROOT}/Modules/ExternalProject.cmake) |
|
|
|
|
|
|
|
|
# Build vmq module |
|
|
|
|
|
|
|
|
# Build SDL2 module |
|
|
|
|
|
ExternalProject_Add(SDL2 |
|
|
|
|
|
SOURCE_DIR ${MODULE_SOURCE_DIR}/SDL2 |
|
|
|
|
|
BINARY_DIR ${MODULE_BUILD_DIR}/SDL2 |
|
|
|
|
|
INSTALL_DIR ${MODULE_INSTALL_DIR} |
|
|
|
|
|
CMAKE_ARGS |
|
|
|
|
|
"-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}" |
|
|
|
|
|
"-DCMAKE_INSTALL_PREFIX=${MODULE_INSTALL_DIR}" |
|
|
|
|
|
"-DSDL_ATOMIC=OFF" |
|
|
|
|
|
"-DSDL_AUDIO=OFF" |
|
|
|
|
|
"-DSDL_CPUINFO=ON" |
|
|
|
|
|
"-DSDL_DLOPEN=ON" |
|
|
|
|
|
"-DSDL_EVENTS=ON" |
|
|
|
|
|
"-DSDL_FILE=OFF" |
|
|
|
|
|
"-DSDL_FILESYSTEM=OFF" |
|
|
|
|
|
"-DSDL_HAPTIC=ON" |
|
|
|
|
|
"-DSDL_JOYSTICK=ON" |
|
|
|
|
|
"-DSDL_LOADSO=ON" |
|
|
|
|
|
"-DSDL_POWER=ON" |
|
|
|
|
|
"-DSDL_RENDER=OFF" |
|
|
|
|
|
"-DSDL_SHARED=ON" |
|
|
|
|
|
"-DSDL_STATIC=OFF" |
|
|
|
|
|
"-DSDL_STATIC_PIC=OFF" |
|
|
|
|
|
"-DSDL_TEST=OFF" |
|
|
|
|
|
"-DSDL_THREADS=OFF" |
|
|
|
|
|
"-DSDL_TIMERS=ON" |
|
|
|
|
|
"-DSDL_VIDEO=ON" |
|
|
|
|
|
"-DVIDEO_VULKAN=OFF" |
|
|
|
|
|
BUILD_ALWAYS 0) |
|
|
|
|
|
|
|
|
|
|
|
# Build VMQ module |
|
|
ExternalProject_Add(vmq |
|
|
ExternalProject_Add(vmq |
|
|
SOURCE_DIR ${MODULE_SOURCE_DIR}/vmq |
|
|
SOURCE_DIR ${MODULE_SOURCE_DIR}/vmq |
|
|
BINARY_DIR ${MODULE_BUILD_DIR}/vmq |
|
|
BINARY_DIR ${MODULE_BUILD_DIR}/vmq |
|
@ -59,11 +89,21 @@ ExternalProject_Add(vmq |
|
|
"-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}" |
|
|
"-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}" |
|
|
"-DCMAKE_INSTALL_PREFIX=${MODULE_INSTALL_DIR}" |
|
|
"-DCMAKE_INSTALL_PREFIX=${MODULE_INSTALL_DIR}" |
|
|
"-DBUILD_EXAMPLES=OFF" |
|
|
"-DBUILD_EXAMPLES=OFF" |
|
|
BUILD_ALWAYS 1) |
|
|
|
|
|
|
|
|
BUILD_ALWAYS 0) |
|
|
|
|
|
|
|
|
|
|
|
# Build EnTT module |
|
|
|
|
|
ExternalProject_Add(entt |
|
|
|
|
|
SOURCE_DIR ${MODULE_SOURCE_DIR}/entt |
|
|
|
|
|
BINARY_DIR ${MODULE_BUILD_DIR}/entt |
|
|
|
|
|
INSTALL_DIR ${MODULE_INSTALL_DIR} |
|
|
|
|
|
CMAKE_ARGS |
|
|
|
|
|
"-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}" |
|
|
|
|
|
"-DCMAKE_INSTALL_PREFIX=${MODULE_INSTALL_DIR}" |
|
|
|
|
|
BUILD_ALWAYS 0) |
|
|
|
|
|
|
|
|
# Build antkeeper-source module |
|
|
# Build antkeeper-source module |
|
|
ExternalProject_Add(antkeeper-source |
|
|
ExternalProject_Add(antkeeper-source |
|
|
DEPENDS vmq |
|
|
|
|
|
|
|
|
DEPENDS vmq entt |
|
|
SOURCE_DIR ${MODULE_SOURCE_DIR}/antkeeper-source |
|
|
SOURCE_DIR ${MODULE_SOURCE_DIR}/antkeeper-source |
|
|
BINARY_DIR ${MODULE_BUILD_DIR}/antkeeper-source |
|
|
BINARY_DIR ${MODULE_BUILD_DIR}/antkeeper-source |
|
|
INSTALL_DIR ${PACKAGE_INSTALL_DIR} |
|
|
INSTALL_DIR ${PACKAGE_INSTALL_DIR} |
|
|