|
@ -222,20 +222,22 @@ ExternalProject_Add(antkeeper-source |
|
|
"-DCMAKE_CXX_FLAGS_RELEASE='${CMAKE_CXX_FLAGS_RELEASE}'" |
|
|
"-DCMAKE_CXX_FLAGS_RELEASE='${CMAKE_CXX_FLAGS_RELEASE}'" |
|
|
BUILD_ALWAYS 1) |
|
|
BUILD_ALWAYS 1) |
|
|
|
|
|
|
|
|
# Build antkeeper-data module |
|
|
|
|
|
ExternalProject_Add(antkeeper-data |
|
|
|
|
|
DEPENDS antkeeper-source |
|
|
|
|
|
SOURCE_DIR ${MODULE_SOURCE_DIR}/antkeeper-data |
|
|
|
|
|
BINARY_DIR ${MODULE_BUILD_DIR}/antkeeper-data |
|
|
|
|
|
INSTALL_DIR ${PACKAGE_INSTALL_DIR} |
|
|
|
|
|
CMAKE_ARGS |
|
|
|
|
|
"-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}" |
|
|
|
|
|
"-DCMAKE_INSTALL_PREFIX=${PACKAGE_INSTALL_DIR}" |
|
|
|
|
|
"-DPACKAGE_PLATFORM=${PACKAGE_PLATFORM}" |
|
|
|
|
|
"-DCMAKE_PREFIX_PATH=${MODULE_INSTALL_DIR}" |
|
|
|
|
|
"-DBLENDER=${BLENDER}" |
|
|
|
|
|
"-DINKSCAPE=${INKSCAPE}" |
|
|
|
|
|
BUILD_ALWAYS 1) |
|
|
|
|
|
|
|
|
# Build antkeeper-data module (if exists) |
|
|
|
|
|
if(IS_DIRECTORY ${MODULE_SOURCE_DIR}/antkeeper-data) |
|
|
|
|
|
ExternalProject_Add(antkeeper-data |
|
|
|
|
|
DEPENDS antkeeper-source |
|
|
|
|
|
SOURCE_DIR ${MODULE_SOURCE_DIR}/antkeeper-data |
|
|
|
|
|
BINARY_DIR ${MODULE_BUILD_DIR}/antkeeper-data |
|
|
|
|
|
INSTALL_DIR ${PACKAGE_INSTALL_DIR} |
|
|
|
|
|
CMAKE_ARGS |
|
|
|
|
|
"-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}" |
|
|
|
|
|
"-DCMAKE_INSTALL_PREFIX=${PACKAGE_INSTALL_DIR}" |
|
|
|
|
|
"-DPACKAGE_PLATFORM=${PACKAGE_PLATFORM}" |
|
|
|
|
|
"-DCMAKE_PREFIX_PATH=${MODULE_INSTALL_DIR}" |
|
|
|
|
|
"-DBLENDER=${BLENDER}" |
|
|
|
|
|
"-DINKSCAPE=${INKSCAPE}" |
|
|
|
|
|
BUILD_ALWAYS 1) |
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
# Create install target |
|
|
# Create install target |
|
|
install(DIRECTORY "${PACKAGE_INSTALL_DIR}/" DESTINATION . COMPONENT "package" USE_SOURCE_PERMISSIONS FILES_MATCHING PATTERN "*") |
|
|
install(DIRECTORY "${PACKAGE_INSTALL_DIR}/" DESTINATION . COMPONENT "package" USE_SOURCE_PERMISSIONS FILES_MATCHING PATTERN "*") |
|
|