Порядок аргументов

This commit is contained in:
Andrei Astafev 2021-07-05 10:54:13 +03:00
parent beb7bfa001
commit 397c6d2b1b
12 changed files with 60 additions and 72 deletions

View File

@ -6,15 +6,14 @@ 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}
BYPRODUCTS ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/libcgal-widget.a BUILD_BYPRODUCTS ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/libcgal-widget.a
CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS} CMAKE_ARGS ${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
INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} cgal-widget-install-headers) INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} cgal-widget-install-headers)
endif() endif()
ExternalProject_Add(${_ext_project_args}) ExternalProject_Add(${_ext_project_args} <SOURCE_DIR>)
unset(_ext_project_args) unset(_ext_project_args)
set(CGAL_WIDGET_IS_EXTERNAL_PROJECT ON CACHE BOOL "" FORCE) set(CGAL_WIDGET_IS_EXTERNAL_PROJECT ON CACHE BOOL "" FORCE)

View File

@ -6,14 +6,13 @@ 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}
CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS} CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS})
<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
INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} fc-protocol-install-headers) INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} fc-protocol-install-headers)
endif() endif()
ExternalProject_Add(${_ext_project_args}) ExternalProject_Add(${_ext_project_args} <SOURCE_DIR>)
unset(_ext_project_args) unset(_ext_project_args)
set(FC_PROTOCOL_IS_EXTERNAL_PROJECT ON CACHE BOOL "" FORCE) set(FC_PROTOCOL_IS_EXTERNAL_PROJECT ON CACHE BOOL "" FORCE)

View File

@ -7,18 +7,17 @@ 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}
BYPRODUCTS ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/libfsp.a BUILD_BYPRODUCTS ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/libfsp.a
CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS} 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})
<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
INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} fsp-install-headers) INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} fsp-install-headers)
endif() endif()
ExternalProject_Add(${_ext_project_args}) ExternalProject_Add(${_ext_project_args} <SOURCE_DIR>)
unset(_ext_project_args) unset(_ext_project_args)
set(FSP_IS_EXTERNAL_PROJECT ON CACHE BOOL "" FORCE) set(FSP_IS_EXTERNAL_PROJECT ON CACHE BOOL "" FORCE)

View File

@ -6,15 +6,14 @@ 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}
BYPRODUCTS ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/libionobase.a BUILD_BYPRODUCTS ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/libionobase.a
CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS} CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS})
<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
INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} ionobase-install-headers) INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} ionobase-install-headers)
endif() endif()
ExternalProject_Add(${_ext_project_args}) ExternalProject_Add(${_ext_project_args} <SOURCE_DIR>)
unset(_ext_project_args) unset(_ext_project_args)
set(IONOBASE_IS_EXTERNAL_PROJECT ON CACHE BOOL "" FORCE) set(IONOBASE_IS_EXTERNAL_PROJECT ON CACHE BOOL "" FORCE)

View File

@ -6,15 +6,14 @@ 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}
BYPRODUCTS ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/libmyx-notifications.a BUILD_BYPRODUCTS ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/libmyx-notifications.a
CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS} CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS})
<SOURCE_DIR>)
if(MyxNotificationsThirdparty_FIND_COMPONENTS STREQUAL "headers") if(MyxNotificationsThirdparty_FIND_COMPONENTS STREQUAL "headers")
list(APPEND _ext_project_args list(APPEND _ext_project_args
BUILD_COMMAND true BUILD_COMMAND true
INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} myx-notifications-install-headers) INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} myx-notifications-install-headers)
endif() endif()
ExternalProject_Add(${_ext_project_args}) ExternalProject_Add(${_ext_project_args} <SOURCE_DIR>)
unset(_ext_project_args) unset(_ext_project_args)
set(MYX_NOTIFICATIONS_IS_EXTERNAL_PROJECT ON CACHE BOOL "" FORCE) set(MYX_NOTIFICATIONS_IS_EXTERNAL_PROJECT ON CACHE BOOL "" FORCE)

View File

@ -6,15 +6,14 @@ 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}
BYPRODUCTS ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/libmyx-qping.a BUILD_BYPRODUCTS ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/libmyx-qping.a
CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS} CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS})
<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
INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} myx-qping-install-headers) INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} myx-qping-install-headers)
endif() endif()
ExternalProject_Add(${_ext_project_args}) ExternalProject_Add(${_ext_project_args} <SOURCE_DIR>)
unset(_ext_project_args) unset(_ext_project_args)
set(MYX_QPING_IS_EXTERNAL_PROJECT ON CACHE BOOL "" FORCE) set(MYX_QPING_IS_EXTERNAL_PROJECT ON CACHE BOOL "" FORCE)

View File

@ -6,15 +6,14 @@ 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}
BYPRODUCTS ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/libmyx-redis.a BUILD_BYPRODUCTS ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/libmyx-redis.a
CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS} CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS})
<SOURCE_DIR>)
if(MyxRedisThirdparty_FIND_COMPONENTS STREQUAL "headers") if(MyxRedisThirdparty_FIND_COMPONENTS STREQUAL "headers")
list(APPEND _ext_project_args list(APPEND _ext_project_args
BUILD_COMMAND true BUILD_COMMAND true
INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} myx-redis-install-headers) INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} myx-redis-install-headers)
endif() endif()
ExternalProject_Add(${_ext_project_args}) ExternalProject_Add(${_ext_project_args} <SOURCE_DIR>)
unset(_ext_project_args) unset(_ext_project_args)
set(MYX_REDIS_IS_EXTERNAL_PROJECT ON CACHE BOOL "" FORCE) set(MYX_REDIS_IS_EXTERNAL_PROJECT ON CACHE BOOL "" FORCE)

View File

@ -6,16 +6,15 @@ 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}
BYPRODUCTS ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/libmyx-qt.a BUILD_BYPRODUCTS ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/libmyx-qt.a
${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/libmyx-filesystem.a ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/libmyx-filesystem.a
CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS} CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS})
<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
INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} myxlib-install-headers) INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} myxlib-install-headers)
endif() endif()
ExternalProject_Add(${_ext_project_args}) ExternalProject_Add(${_ext_project_args} <SOURCE_DIR>)
unset(_ext_project_args) unset(_ext_project_args)
set(MYXLIB_IS_EXTERNAL_PROJECT ON CACHE BOOL "" FORCE) set(MYXLIB_IS_EXTERNAL_PROJECT ON CACHE BOOL "" FORCE)

View File

@ -7,16 +7,15 @@ 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}
BYPRODUCTS ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/libpreproc.a BUILD_BYPRODUCTS ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/libpreproc.a
CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS} CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS}
-DPREPROCMATH_PREFIX=${CMAKE_BINARY_DIR} -DPREPROCMATH_PREFIX=${CMAKE_BINARY_DIR})
<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
INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} preproc-install-headers) INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} preproc-install-headers)
endif() endif()
ExternalProject_Add(${_ext_project_args}) ExternalProject_Add(${_ext_project_args} <SOURCE_DIR>)
unset(_ext_project_args) unset(_ext_project_args)
set(PREPROC_IS_EXTERNAL_PROJECT ON CACHE BOOL "" FORCE) set(PREPROC_IS_EXTERNAL_PROJECT ON CACHE BOOL "" FORCE)

View File

@ -6,15 +6,14 @@ 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}
BYPRODUCTS ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/libpreprocmath.a BUILD_BYPRODUCTS ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/libpreprocmath.a
CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS} CMAKE_ARGS ${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
INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} preprocmath-install-headers) INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} preprocmath-install-headers)
endif() endif()
ExternalProject_Add(${_ext_project_args}) ExternalProject_Add(${_ext_project_args} <SOURCE_DIR>)
unset(_ext_project_args) unset(_ext_project_args)
set(PREPROCMATH_IS_EXTERNAL_PROJECT ON CACHE BOOL "" FORCE) set(PREPROCMATH_IS_EXTERNAL_PROJECT ON CACHE BOOL "" FORCE)

View File

@ -7,16 +7,15 @@ 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}
BYPRODUCTS ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/libsignalview.a BUILD_BYPRODUCTS ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/libsignalview.a
CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS} CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS}
-DPREPROCMATH_PREFIX=${CMAKE_BINARY_DIR} -DPREPROCMATH_PREFIX=${CMAKE_BINARY_DIR})
<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
INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} signalview-install-headers) INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} signalview-install-headers)
endif() endif()
ExternalProject_Add(${_ext_project_args}) ExternalProject_Add(${_ext_project_args} <SOURCE_DIR>)
unset(_ext_project_args) unset(_ext_project_args)
set(SIGNALVIEW_IS_EXTERNAL_PROJECT ON CACHE BOOL "" FORCE) set(SIGNALVIEW_IS_EXTERNAL_PROJECT ON CACHE BOOL "" FORCE)

View File

@ -6,14 +6,13 @@ 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}
CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS} CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS})
<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
INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} veer-protocols-install-headers) INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} veer-protocols-install-headers)
endif() endif()
ExternalProject_Add(${_ext_project_args}) ExternalProject_Add(${_ext_project_args} <SOURCE_DIR>)
unset(_ext_project_args) unset(_ext_project_args)
set(VEER_PROTOCOLS_IS_EXTERNAL_PROJECT ON CACHE BOOL "" FORCE) set(VEER_PROTOCOLS_IS_EXTERNAL_PROJECT ON CACHE BOOL "" FORCE)