Обновлены скрипты для подключения подпроектов

This commit is contained in:
Andrei Astafev 2021-07-03 09:43:29 +03:00
parent 29faeeae1a
commit 465ad38cb8
13 changed files with 65 additions and 92 deletions

View File

@ -6,11 +6,9 @@ list(APPEND _ext_project_args
cgal-widget cgal-widget
SOURCE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/cgal-widget SOURCE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/cgal-widget
INSTALL_DIR ${CMAKE_BINARY_DIR} INSTALL_DIR ${CMAKE_BINARY_DIR}
DOWNLOAD_COMMAND "" BYPRODUCTS <INSTALL_DIR>/${CMAKE_INSTALL_LIBDIR}/libcgal-widget.a
CONFIGURE_COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS}
-DCMLIB_MAIN_DIR=${CMLIB_MAIN_DIR} <SOURCE_DIR>)
${CMLIB_EXT_PROJ_DEFAULT_ARGS} <SOURCE_DIR>)
if(CgalWidgetThirdparty_FIND_COMPONENTS STREQUAL "headers") if(CgalWidgetThirdparty_FIND_COMPONENTS STREQUAL "headers")
list(APPEND _ext_project_args list(APPEND _ext_project_args
BUILD_COMMAND true BUILD_COMMAND true

View File

@ -6,12 +6,8 @@ list(APPEND _ext_project_args
fc-protocol fc-protocol
SOURCE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/fc-protocol SOURCE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/fc-protocol
INSTALL_DIR ${CMAKE_BINARY_DIR} INSTALL_DIR ${CMAKE_BINARY_DIR}
DOWNLOAD_COMMAND "" CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS}
CONFIGURE_COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}"
-DCMLIB_MAIN_DIR=${CMLIB_MAIN_DIR}
${CMLIB_EXT_PROJ_DEFAULT_ARGS}
<SOURCE_DIR>) <SOURCE_DIR>)
if(FcProtocolThirdparty_FIND_COMPONENTS STREQUAL "headers") if(FcProtocolThirdparty_FIND_COMPONENTS STREQUAL "headers")
list(APPEND _ext_project_args list(APPEND _ext_project_args
BUILD_COMMAND true BUILD_COMMAND true

View File

@ -7,13 +7,12 @@ list(APPEND _ext_project_args
DEPENDS libpreprocmath libionobase myxlib DEPENDS libpreprocmath libionobase myxlib
SOURCE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/libfsp SOURCE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/libfsp
INSTALL_DIR ${CMAKE_BINARY_DIR} INSTALL_DIR ${CMAKE_BINARY_DIR}
DOWNLOAD_COMMAND "" BYPRODUCTS <INSTALL_DIR>/${CMAKE_INSTALL_LIBDIR}/libfsp.a
CONFIGURE_COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS}
-DPREPROCMATH_PREFIX=${CMAKE_BINARY_DIR} -DPREPROCMATH_PREFIX=${CMAKE_BINARY_DIR}
-DIONOBASE_PREFIX=${CMAKE_BINARY_DIR} -DIONOBASE_PREFIX=${CMAKE_BINARY_DIR}
-DMYXLIB_PREFIX=${CMAKE_BINARY_DIR} -DMYXLIB_PREFIX=${CMAKE_BINARY_DIR}
-DCMLIB_MAIN_DIR=${CMLIB_MAIN_DIR} <SOURCE_DIR>)
${CMLIB_EXT_PROJ_DEFAULT_ARGS} <SOURCE_DIR>)
if(FspThirdparty_FIND_COMPONENTS STREQUAL "headers") if(FspThirdparty_FIND_COMPONENTS STREQUAL "headers")
list(APPEND _ext_project_args list(APPEND _ext_project_args
BUILD_COMMAND true BUILD_COMMAND true

View File

@ -6,12 +6,9 @@ list(APPEND _ext_project_args
libionobase libionobase
SOURCE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/libionobase SOURCE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/libionobase
INSTALL_DIR ${CMAKE_BINARY_DIR} INSTALL_DIR ${CMAKE_BINARY_DIR}
DOWNLOAD_COMMAND "" BYPRODUCTS <INSTALL_DIR>/${CMAKE_INSTALL_LIBDIR}/libionobase.a
CONFIGURE_COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS}
-DCMLIB_MAIN_DIR=${CMLIB_MAIN_DIR}
${CMLIB_EXT_PROJ_DEFAULT_ARGS}
<SOURCE_DIR>) <SOURCE_DIR>)
if(IonobaseThirdparty_FIND_COMPONENTS STREQUAL "headers") if(IonobaseThirdparty_FIND_COMPONENTS STREQUAL "headers")
list(APPEND _ext_project_args list(APPEND _ext_project_args
BUILD_COMMAND true BUILD_COMMAND true

View File

@ -6,8 +6,7 @@ if(MPFR_FOUND)
mpfrcpp mpfrcpp
SOURCE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/mpreal SOURCE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/mpreal
INSTALL_DIR ${CMAKE_BINARY_DIR}/include INSTALL_DIR ${CMAKE_BINARY_DIR}/include
DOWNLOAD_COMMAND "" CONFIGURE_COMMAND true
CONFIGURE_COMMAND ""
BUILD_COMMAND true BUILD_COMMAND true
INSTALL_COMMAND ${CMAKE_COMMAND} -E copy <SOURCE_DIR>/mpreal.h <INSTALL_DIR>) INSTALL_COMMAND ${CMAKE_COMMAND} -E copy <SOURCE_DIR>/mpreal.h <INSTALL_DIR>)
endif() endif()

View File

@ -6,10 +6,8 @@ list(APPEND _ext_project_args
myx-notifications myx-notifications
SOURCE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/myx-notifications SOURCE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/myx-notifications
INSTALL_DIR ${CMAKE_BINARY_DIR} INSTALL_DIR ${CMAKE_BINARY_DIR}
DOWNLOAD_COMMAND "" BYPRODUCTS <INSTALL_DIR>/${CMAKE_INSTALL_LIBDIR}/libmyx-notifications.a
CONFIGURE_COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS}
-DCMLIB_MAIN_DIR=${CMLIB_MAIN_DIR}
${CMLIB_EXT_PROJ_DEFAULT_ARGS}
<SOURCE_DIR>) <SOURCE_DIR>)
if(MyxNotificationsThirdparty_FIND_COMPONENTS STREQUAL "headers") if(MyxNotificationsThirdparty_FIND_COMPONENTS STREQUAL "headers")
list(APPEND _ext_project_args list(APPEND _ext_project_args

View File

@ -6,12 +6,9 @@ list(APPEND _ext_project_args
myx-qping myx-qping
SOURCE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/myx-qping SOURCE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/myx-qping
INSTALL_DIR ${CMAKE_BINARY_DIR} INSTALL_DIR ${CMAKE_BINARY_DIR}
DOWNLOAD_COMMAND "" BYPRODUCTS <INSTALL_DIR>/${CMAKE_INSTALL_LIBDIR}/libmyx-qping.a
CONFIGURE_COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS}
-DCMLIB_MAIN_DIR=${CMLIB_MAIN_DIR}
${CMLIB_EXT_PROJ_DEFAULT_ARGS}
<SOURCE_DIR>) <SOURCE_DIR>)
if(MyxQPingThirdparty_FIND_COMPONENTS STREQUAL "headers") if(MyxQPingThirdparty_FIND_COMPONENTS STREQUAL "headers")
list(APPEND _ext_project_args list(APPEND _ext_project_args
BUILD_COMMAND true BUILD_COMMAND true

View File

@ -6,10 +6,8 @@ list(APPEND _ext_project_args
myx-redis myx-redis
SOURCE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/myx-redis SOURCE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/myx-redis
INSTALL_DIR ${CMAKE_BINARY_DIR} INSTALL_DIR ${CMAKE_BINARY_DIR}
DOWNLOAD_COMMAND "" BYPRODUCTS <INSTALL_DIR>/${CMAKE_INSTALL_LIBDIR}/libmyx-redis.a
CONFIGURE_COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS}
-DCMLIB_MAIN_DIR=${CMLIB_MAIN_DIR}
${CMLIB_EXT_PROJ_DEFAULT_ARGS}
<SOURCE_DIR>) <SOURCE_DIR>)
if(MyxRedisThirdparty_FIND_COMPONENTS STREQUAL "headers") if(MyxRedisThirdparty_FIND_COMPONENTS STREQUAL "headers")
list(APPEND _ext_project_args list(APPEND _ext_project_args

View File

@ -6,12 +6,10 @@ list(APPEND _ext_project_args
myxlib myxlib
SOURCE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/myxlib SOURCE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/myxlib
INSTALL_DIR ${CMAKE_BINARY_DIR} INSTALL_DIR ${CMAKE_BINARY_DIR}
DOWNLOAD_COMMAND "" BYPRODUCTS <INSTALL_DIR>/${CMAKE_INSTALL_LIBDIR}/libmyx-qt.a
CONFIGURE_COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" <INSTALL_DIR>/${CMAKE_INSTALL_LIBDIR}/libmyx-filesystem.a
-DCMLIB_MAIN_DIR=${CMLIB_MAIN_DIR} CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS}
${CMLIB_EXT_PROJ_DEFAULT_ARGS}
<SOURCE_DIR>) <SOURCE_DIR>)
if(MyxlibThirdparty_FIND_COMPONENTS STREQUAL "headers") if(MyxlibThirdparty_FIND_COMPONENTS STREQUAL "headers")
list(APPEND _ext_project_args list(APPEND _ext_project_args
BUILD_COMMAND true BUILD_COMMAND true

View File

@ -7,11 +7,10 @@ list(APPEND _ext_project_args
DEPENDS libpreprocmath DEPENDS libpreprocmath
SOURCE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/libpreproc SOURCE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/libpreproc
INSTALL_DIR ${CMAKE_BINARY_DIR} INSTALL_DIR ${CMAKE_BINARY_DIR}
DOWNLOAD_COMMAND "" BYPRODUCTS <INSTALL_DIR>/${CMAKE_INSTALL_LIBDIR}/libpreproc.a
CONFIGURE_COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS}
-DPREPROCMATH_PREFIX=${CMAKE_BINARY_DIR} -DPREPROCMATH_PREFIX=${CMAKE_BINARY_DIR}
-DCMLIB_MAIN_DIR=${CMLIB_MAIN_DIR} <SOURCE_DIR>)
${CMLIB_EXT_PROJ_DEFAULT_ARGS} <SOURCE_DIR>)
if(PreprocThirdparty_FIND_COMPONENTS STREQUAL "headers") if(PreprocThirdparty_FIND_COMPONENTS STREQUAL "headers")
list(APPEND _ext_project_args list(APPEND _ext_project_args
BUILD_COMMAND true BUILD_COMMAND true

View File

@ -6,10 +6,9 @@ list(APPEND _ext_project_args
libpreprocmath libpreprocmath
SOURCE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/libpreprocmath SOURCE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/libpreprocmath
INSTALL_DIR ${CMAKE_BINARY_DIR} INSTALL_DIR ${CMAKE_BINARY_DIR}
DOWNLOAD_COMMAND "" BYPRODUCTS <INSTALL_DIR>/${CMAKE_INSTALL_LIBDIR}/libpreprocmath.a
CONFIGURE_COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS}
-DCMLIB_MAIN_DIR=${CMLIB_MAIN_DIR} <SOURCE_DIR>)
${CMLIB_EXT_PROJ_DEFAULT_ARGS} <SOURCE_DIR>)
if(PreprocmathThirdparty_FIND_COMPONENTS STREQUAL "headers") if(PreprocmathThirdparty_FIND_COMPONENTS STREQUAL "headers")
list(APPEND _ext_project_args list(APPEND _ext_project_args
BUILD_COMMAND true BUILD_COMMAND true

View File

@ -7,11 +7,10 @@ list(APPEND _ext_project_args
DEPENDS libpreprocmath DEPENDS libpreprocmath
SOURCE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/libsignalview SOURCE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/libsignalview
INSTALL_DIR ${CMAKE_BINARY_DIR} INSTALL_DIR ${CMAKE_BINARY_DIR}
DOWNLOAD_COMMAND "" BYPRODUCTS <INSTALL_DIR>/${CMAKE_INSTALL_LIBDIR}/libsignalview.a
CONFIGURE_COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS}
-DPREPROCMATH_PREFIX=${CMAKE_BINARY_DIR} -DPREPROCMATH_PREFIX=${CMAKE_BINARY_DIR}
-DCMLIB_MAIN_DIR=${CMLIB_MAIN_DIR} <SOURCE_DIR>)
${CMLIB_EXT_PROJ_DEFAULT_ARGS} <SOURCE_DIR>)
if(SignalViewThirdparty_FIND_COMPONENTS STREQUAL "headers") if(SignalViewThirdparty_FIND_COMPONENTS STREQUAL "headers")
list(APPEND _ext_project_args list(APPEND _ext_project_args
BUILD_COMMAND true BUILD_COMMAND true

View File

@ -6,12 +6,8 @@ list(APPEND _ext_project_args
veer-protocols veer-protocols
SOURCE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/veer-protocols SOURCE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/veer-protocols
INSTALL_DIR ${CMAKE_BINARY_DIR} INSTALL_DIR ${CMAKE_BINARY_DIR}
DOWNLOAD_COMMAND "" CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS}
CONFIGURE_COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}"
-DCMLIB_MAIN_DIR=${CMLIB_MAIN_DIR}
${CMLIB_EXT_PROJ_DEFAULT_ARGS}
<SOURCE_DIR>) <SOURCE_DIR>)
if(VeerProtocolsThirdparty_FIND_COMPONENTS STREQUAL "headers") if(VeerProtocolsThirdparty_FIND_COMPONENTS STREQUAL "headers")
list(APPEND _ext_project_args list(APPEND _ext_project_args
BUILD_COMMAND true BUILD_COMMAND true