Instruction stringlengths 14 778 | input_code stringlengths 0 4.24k | output_code stringlengths 1 5.44k |
|---|---|---|
Update FW, for depthai-shared to match with depthai-core | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "c5303ecec4c30a752a7f362589239b9d1784a0d3")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
| # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "a61df0cda79ec82a665dbf236de74b9aa2c096e4")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Update FW with multi instance support | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "bf0a337613d82ad97f13b1cf2b6e99e4d8ae7032")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
| # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "99b34ec1ca0635bb9e55c570b907a67eafa5fe19")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Fix to FFTW cmake to build on cx2 | # FFTW
OPTION(NEKTAR_USE_FFTW
"Use FFTW routines for performing the Fast Fourier Transform." OFF)
CMAKE_DEPENDENT_OPTION(THIRDPARTY_BUILD_FFTW
"Build FFTW from ThirdParty" OFF
"NEKTAR_USE_FFTW" OFF)
IF( NEKTAR_USE_FFTW )
IF (THIRDPARTY_BUILD_FFTW)
INCLUDE(ExternalProject)
EXTE... | # FFTW
OPTION(NEKTAR_USE_FFTW
"Use FFTW routines for performing the Fast Fourier Transform." OFF)
CMAKE_DEPENDENT_OPTION(THIRDPARTY_BUILD_FFTW
"Build FFTW from ThirdParty" OFF
"NEKTAR_USE_FFTW" OFF)
IF( NEKTAR_USE_FFTW )
IF (THIRDPARTY_BUILD_FFTW)
INCLUDE(ExternalProject)
EXTE... |
Remove -pthread option on Cygwin | if(${MSVC})
# Enable debug info in Release.
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /Zi")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /Zi")
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /debug")
elseif(${UNIX})
# These are all required on Xcode 4.5.1 + i... | if(${MSVC})
# Enable debug info in Release.
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /Zi")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /Zi")
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /debug")
elseif(${UNIX})
if(${CYGWIN})
set(CMAKE_C_FLAGS "-g... |
Update FW: fix overriding useHomographyRectification behaviour specified in docs when custom mesh is provided | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "7f7e0e7aa2d705d8e618605800fd3c2447a866dd")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
| # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "d1086bf51f6aa5a75c9afcda34c74c62e4e9a53b")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Use Python 3 venv in the superbuild | #---------------------------------------------------------------------------
# Get a Python with the itk package installed on Windows or create a
# virtualenv to install the ITK package on Linux or Mac
if(WIN32)
# python.org 64 bit Windows Python with the itk and sphinx packages installed
# Todo: needs update
me... | find_package(PythonInterp 3 REQUIRED)
set(_itk_venv "${CMAKE_CURRENT_BINARY_DIR}/itkpython")
if(WIN32)
set(ITKPYTHON_EXECUTABLE "${_itk_venv}/python.exe" CACHE FILEPATH "Python executable with the ITK package installed" FORCE)
else()
set(ITKPYTHON_EXECUTABLE "${_itk_venv}/bin/python" CACHE FILEPATH "Python executa... |
Support both debug and release versions of GTest | if (NOT EXISTS ${CMAKE_BINARY_DIR}/external/googletest)
message("--googletest not found. Installing")
ExternalProject_Add(googletest
GIT_REPOSITORY "https://github.com/google/googletest.git"
GIT_TAG "release-1.8.0"
PREFIX external/googletest
BUILD_IN_SOURCE
UPDATE_COMMAND ""
CMAKE_CACHE_ARGS... | if (NOT EXISTS ${CMAKE_BINARY_DIR}/external/googletest)
message("--googletest not found. Installing")
ExternalProject_Add(googletest-release
GIT_REPOSITORY "https://github.com/google/googletest.git"
GIT_TAG "release-1.8.0"
PREFIX external/googletest
BUILD_IN_SOURCE
UPDATE_COMMAND ""
CMAKE_C... |
Fix QT4_GENERATE_MOCS by referencing the moc'ed file with its absolute path |
# QT4_GENERATE_MOCS(inputfiles ... )
macro (QT4_GENERATE_MOCS)
foreach (fileIt ${ARGN})
QT4_GENERATE_MOC( ${fileIt} moc_${fileIt})
macro_add_file_dependencies(${fileIt} moc_${fileIt})
endforeach()
endmacro()
|
# QT4_GENERATE_MOCS(inputfile1 [inputfile2 ...])
macro(QT4_GENERATE_MOCS)
foreach(file ${ARGN})
set(moc_file moc_${file})
QT4_GENERATE_MOC(${file} ${moc_file})
macro_add_file_dependencies(${file} ${CMAKE_CURRENT_BINARY_DIR}/${moc_file})
endforeach()
endmacro()
|
Check for population before finding package | include(FetchContent)
FetchContent_Declare(range-v3
GIT_REPOSITORY https://github.com/ericniebler/range-v3.git
GIT_SHALLOW True)
find_package(range-v3 0.3.6 QUIET)
if(NOT range-v3_FOUND)
FetchContent_GetProperties(range-v3)
if(NOT range-v3_POPULATED)
FetchContent_Populate(range-v3)
add... | include(FetchContent)
FetchContent_Declare(range-v3
GIT_REPOSITORY https://github.com/ericniebler/range-v3.git
GIT_SHALLOW True)
FetchContent_GetProperties(range-v3)
if(NOT range-v3_POPULATED)
find_package(range-v3 0.3.6 QUIET)
if(NOT range-v3_FOUND)
FetchContent_Populate(range-v3)
add... |
Fix referring to debug version libraries for ccd and assimp on Windows | # Find FCL
#
# This sets the following variables:
# FCL_FOUND
# FCL_INCLUDE_DIRS
# FCL_LIBRARIES
find_package(PkgConfig QUIET)
pkg_check_modules(PC_FCL fcl)
find_path(FCL_INCLUDE_DIR fcl/collision.h
HINTS ${PC_FCL_INCLUDEDIR}
PATHS "${CMAKE_INSTALL_PREFIX}/include")
set(FCL_INCLUDE_DIRS ${FCL_INCLUDE_DIR})
... | # Find FCL
#
# This sets the following variables:
# FCL_FOUND
# FCL_INCLUDE_DIRS
# FCL_LIBRARIES
find_package(PkgConfig QUIET)
pkg_check_modules(PC_FCL fcl)
find_path(FCL_INCLUDE_DIR fcl/collision.h
HINTS ${PC_FCL_INCLUDEDIR}
PATHS "${CMAKE_INSTALL_PREFIX}/include")
set(FCL_INCLUDE_DIRS ${FCL_INCLUDE_DIR})
... |
Allow location of OSMesa install to be specified | # Try to find Mesa off-screen library and include dir.
# Once done this will define
#
# OSMESA_FOUND - true if OSMesa has been found
# OSMESA_INCLUDE_DIR - where the GL/osmesa.h can be found
# OSMESA_LIBRARY - Link this to use OSMesa
if(NOT OSMESA_INCLUDE_DIR)
find_path(OSMESA_INCLUDE_DIR GL/osmesa.h
... | # Try to find Mesa off-screen library and include dir.
# Once done this will define
#
# OSMESA_FOUND - true if OSMesa has been found
# OSMESA_INCLUDE_DIR - where the GL/osmesa.h can be found
# OSMESA_LIBRARY - Link this to use OSMesa
if(NOT OSMESA_INCLUDE_DIR)
# If we have a root defined look there fi... |
Reduce CAmkES per-component heap allocation. | set(CAMKES_APP "system" CACHE STRING "The one and only CAmkES application in this project")
#set(CAPDL_LOADER_APP "capdl-loader-app" CACHE STRING "")
set(CAPDL_LOADER_APP "kata-os-rootserver" CACHE STRING "")
set(PLATFORM "sparrow" CACHE STRING "The one and only seL4 platform for Sparrow")
set(RUST_TARGET "riscv32imac... | set(CAMKES_APP "system" CACHE STRING "The one and only CAmkES application in this project")
#set(CAPDL_LOADER_APP "capdl-loader-app" CACHE STRING "")
set(CAPDL_LOADER_APP "kata-os-rootserver" CACHE STRING "")
set(PLATFORM "sparrow" CACHE STRING "The one and only seL4 platform for Sparrow")
set(RUST_TARGET "riscv32imac... |
Fix gcc link error on Solaris. | include(bde_interface_target)
include(bde_package)
include(bde_struct)
bde_prefixed_override(bdls process_package)
function(bdls_process_package retPackage)
process_package_base("" package ${ARGN})
bde_struct_get_field(interfaceTarget ${package} INTERFACE_TARGET)
bde_interface_target_link_libraries(
... | include(bde_interface_target)
include(bde_package)
include(bde_struct)
bde_prefixed_override(bdls process_package)
function(bdls_process_package retPackage)
process_package_base("" package ${ARGN})
if(${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
bde_struct_get_field(interfaceTarget ${package} INTERFACE_TARGE... |
Revert "update git tag for GRM" | #Contact: Pierre Lassalle <lassallepierre34@gmail.com>
otb_fetch_module(otbGRM
"This module provides the GRM OTB application to perform multiscale
region-merging segmentation on satellite images. Three local homogeneity
criteria are available: the Baatz & Schäpe criterion, the Full Lambda Schedule
criterion and the ... | #Contact: Pierre Lassalle <lassallepierre34@gmail.com>
otb_fetch_module(otbGRM
"This module provides the GRM OTB application to perform multiscale
region-merging segmentation on satellite images. Three local homogeneity
criteria are available: the Baatz & Schäpe criterion, the Full Lambda Schedule
criterion and the ... |
Add tcamprop to Libs list | prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: Tcam
Description: Camera control and image acquisition library
Version: @TCAM_VERSION@
Requires: @tcam_pkgconfig_dependencies@
Libs: -L${libdir} -ltcam
Cflags: -I${includedir}/
| prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: Tcam
Description: Camera control and image acquisition library
Version: @TCAM_VERSION@
Requires: @tcam_pkgconfig_dependencies@
Libs: -L${libdir} -ltcam -ltcamprop
Cflags: -I${includedir}/
|
Rename generic NAME variable to the more specific CMSIS_NAME | function(adopt_subprojects)
# Add subprojects for CMSIS
set(NAME "CMSIS")
if (";${SUBPROJECTS};" MATCHES ";${NAME};")
list(REMOVE_ITEM SUBPROJECTS ${NAME})
list(APPEND SUBPROJECTS
CMSIS/BasicMathFunctions
CMSIS/CommonTables
CMSIS/ComplexMathFu... | function(adopt_subprojects)
# Add subprojects for CMSIS
set(CMSIS_NAME "CMSIS")
if (";${SUBPROJECTS};" MATCHES ";${CMSIS_NAME};")
list(REMOVE_ITEM SUBPROJECTS ${CMSIS_NAME})
list(APPEND SUBPROJECTS
CMSIS/BasicMathFunctions
CMSIS/CommonTables
C... |
Fix failure regex to include when plays are run on 0 hosts because of mismatching hosts | # This CMake file is responsible for functionality tied to running vagrant and ansible
# from CTest.
set(ANSIBLE_INVENTORY "${PROJECT_SOURCE_DIR}/.vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory" CACHE FILEPATH "")
set(ANSIBLE_PRIVATE_KEY "${PROJECT_SOURCE_DIR}/.vagrant/machines/girder/virtualbox/priva... | # This CMake file is responsible for functionality tied to running vagrant and ansible
# from CTest.
set(ANSIBLE_INVENTORY "${PROJECT_SOURCE_DIR}/.vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory" CACHE FILEPATH "")
set(ANSIBLE_PRIVATE_KEY "${PROJECT_SOURCE_DIR}/.vagrant/machines/girder/virtualbox/priva... |
Make sure ADOLC is recent enough by searching for adtl.h |
if (ADOLC_INCLUDES AND ADOLC_LIBRARIES)
set(ADOLC_FIND_QUIETLY TRUE)
endif (ADOLC_INCLUDES AND ADOLC_LIBRARIES)
find_path(ADOLC_INCLUDES
NAMES
adolc/adouble.h
PATHS
$ENV{ADOLCDIR}
${INCLUDE_INSTALL_DIR}
)
find_library(ADOLC_LIBRARIES adolc PATHS $ENV{ADOLCDIR} ${LIB_INSTALL_DIR})
include(FindPackageHand... |
if (ADOLC_INCLUDES AND ADOLC_LIBRARIES)
set(ADOLC_FIND_QUIETLY TRUE)
endif (ADOLC_INCLUDES AND ADOLC_LIBRARIES)
find_path(ADOLC_INCLUDES
NAMES
adolc/adtl.h
PATHS
$ENV{ADOLCDIR}
${INCLUDE_INSTALL_DIR}
)
find_library(ADOLC_LIBRARIES adolc PATHS $ENV{ADOLCDIR} ${LIB_INSTALL_DIR})
include(FindPackageHandleS... |
Fix ASIO setup for Jenkins | set(LABEL_EXPR "$ENV{label_exp}")
if ("${LABEL_EXPR}" MATCHES "gcc")
message(STATUS "Set CXX to g++ based on label_expr content")
set(CMAKE_C_COMPILER "gcc" CACHE PATH "c++ compiler option")
set(CMAKE_CXX_COMPILER "g++" CACHE PATH "c++ compiler option")
elseif ("${LABEL_EXPR}" MATCHES "clang")
message(STATUS "S... | set(LABEL_EXPR "$ENV{label_exp}")
if ("${LABEL_EXPR}" MATCHES "gcc")
message(STATUS "Set CXX to g++ based on label_expr content")
set(CMAKE_C_COMPILER "gcc" CACHE PATH "c++ compiler option")
set(CMAKE_CXX_COMPILER "g++" CACHE PATH "c++ compiler option")
elseif ("${LABEL_EXPR}" MATCHES "clang")
message(STATUS "S... |
Add missing quotes around variable | list(APPEND CMAKE_MODULE_PATH
"${CMAKE_SOURCE_DIR}"
"${CMAKE_SOURCE_DIR}/cmake/Modules"
)
if(${CMAKE_C_COMPILER_ID} STREQUAL "Clang" OR ${CMAKE_C_COMPILER_ID} STREQUAL "Intel")
set(CMAKE_COMPILER_IS_GNUCC TRUE)
endif()
if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "Intel")
set(C... | # This file is included only if sampgdk is built as a root project (i.e. not
# as a subdirectory).
list(APPEND CMAKE_MODULE_PATH
"${CMAKE_SOURCE_DIR}"
"${CMAKE_SOURCE_DIR}/cmake/Modules"
)
if("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR
"${CMAKE_C_COMPILER_ID}" STREQUAL "Intel")
set(CMAKE_COMPILER_IS_GNUCC T... |
Add Newbase_USE_STATIC_LIBS option only for other projects | get_filename_component(INSTALLED_PREFIX ${Newbase_DIR} DIRECTORY)
get_filename_component(INSTALLED_PREFIX ${INSTALLED_PREFIX} DIRECTORY)
get_filename_component(INSTALLED_PREFIX ${INSTALLED_PREFIX} DIRECTORY)
set(Newbase_INCLUDE_DIRS ${INSTALLED_PREFIX}/include)
set(Newbase_INSTALLED_INCLUDE_DIRS ${INSTALLED_PREFIX}/inc... | get_filename_component(INSTALLED_PREFIX ${Newbase_DIR} DIRECTORY)
get_filename_component(INSTALLED_PREFIX ${INSTALLED_PREFIX} DIRECTORY)
get_filename_component(INSTALLED_PREFIX ${INSTALLED_PREFIX} DIRECTORY)
set(Newbase_INCLUDE_DIRS ${INSTALLED_PREFIX}/include)
set(Newbase_INSTALLED_INCLUDE_DIRS ${INSTALLED_PREFIX}/inc... |
Fix dependency for easy_install module | # Macro support for python easy_install modules.
if (NOT easy_install)
if (NOT FLYEM_BUILD_DIR)
message (FATAL_ERROR "ERROR: FlyEM build directory (for all downloads & builds) should be specified via -DFLYEM_BUILD_DIR=<path> on cmake command line.")
endif ()
macro (easy_install PKG_NAME)
include (python)
... | # Macro support for python easy_install modules.
if (NOT easy_install)
if (NOT FLYEM_BUILD_DIR)
message (FATAL_ERROR "ERROR: FlyEM build directory (for all downloads & builds) should be specified via -DFLYEM_BUILD_DIR=<path> on cmake command line.")
endif ()
macro (easy_install PKG_NAME)
include (python)
... |
Update FW with OpenVino FW fix | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "1087403e3407a40a3342d27b3169b9a8e042b2ad")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
| # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "5e256e60d6c3552f9ce24a1df364abd3a11045ef")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Update device FW: fix X,Y,Z calc on NN bounding box | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "f9df8e9f3115e796682ff3499068b04f782f888f")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
| # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "808326d10e913968d18316f6fb9c6d18175231ae")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Clone head of master branch | #-----------------------------------------------------------------------------
# MITK Data
#-----------------------------------------------------------------------------
# Sanity checks
if(DEFINED MITK_DATA_DIR AND NOT EXISTS ${MITK_DATA_DIR})
message(FATAL_ERROR "MITK_DATA_DIR variable is defined but corresponds to... | #-----------------------------------------------------------------------------
# MITK Data
#-----------------------------------------------------------------------------
# Sanity checks
if(DEFINED MITK_DATA_DIR AND NOT EXISTS ${MITK_DATA_DIR})
message(FATAL_ERROR "MITK_DATA_DIR variable is defined but corresponds to... |
Remove OpenCV module related message. | #/// @file FindTbagOpenCV.cmake
#/// @brief Find the OpenCV library.
#/// @author zer0
#/// @date 2016-05-31
#///
#/// @remarks
#/// The following variables are optionally searched for defaults:
#/// - ${OpenCV_ROOT}
if (NOT DEFINED OpenCV_ROOT)
if (IS_DIRECTORY "${THIRD_PREFIX}")
set (OpenCV_ROOT... | #/// @file FindTbagOpenCV.cmake
#/// @brief Find the OpenCV library.
#/// @author zer0
#/// @date 2016-05-31
#///
#/// @remarks
#/// The following variables are optionally searched for defaults:
#/// - ${OpenCV_ROOT}
if (NOT DEFINED OpenCV_ROOT)
if (IS_DIRECTORY "${THIRD_PREFIX}")
set (OpenCV_ROOT... |
Update exclude from all and module dependencies | # the top-level README is used for describing this module, just
# re-used it for documentation here
get_filename_component( MY_CURENT_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
file( READ "${MY_CURENT_DIR}/README" DOCUMENTATION )
# itk_module() defines the module dependencies in ITKStreamingSinc
# ITKStreamingSinc depends... | # the top-level README is used for describing this module, just
# re-used it for documentation here
get_filename_component( MY_CURENT_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
file( READ "${MY_CURENT_DIR}/README" DOCUMENTATION )
# ITK version 4.5 changed it from EXCLUDE_FROM_ALL to EXCLUDE_FROM_DEFAULT
set( _EXCLUDE "EXC... |
Remove GMM meta example if LAPACK is not available | function(find_meta_examples)
FILE(GLOB_RECURSE META_EXAMPLE_LISTINGS ${CMAKE_SOURCE_DIR}/examples/meta/src/*.sg)
# temporary hacks to exclude certain meta examples that have dependencies
IF(NOT HAVE_NLOPT)
LIST(REMOVE_ITEM META_EXAMPLE_LISTINGS ${CMAKE_SOURCE_DIR}/examples/meta/src/gaussian_processes/gaussian_pr... | function(find_meta_examples)
FILE(GLOB_RECURSE META_EXAMPLE_LISTINGS ${CMAKE_SOURCE_DIR}/examples/meta/src/*.sg)
# temporary hacks to exclude certain meta examples that have dependencies
IF(NOT HAVE_NLOPT)
LIST(REMOVE_ITEM META_EXAMPLE_LISTINGS ${CMAKE_SOURCE_DIR}/examples/meta/src/gaussian_processes/gaussian_pr... |
Update libtbag cmake library path. | ## Find the libtbag library.
#
# The following variables are optionally searched for defaults
# Tbag_ROOT
#
# The following are set after configuration is done:
# Tbag_FOUND
# Tbag_INCLUDE_DIRS
# Tbag_LIBRARIES
if (Tbag_FOUND)
return ()
endif ()
set (__headers "libtbag/config.h")
set (__libs "tbag")
if (I... | ## Find the libtbag library.
#
# The following variables are optionally searched for defaults
# Tbag_ROOT
#
# The following are set after configuration is done:
# Tbag_FOUND
# Tbag_INCLUDE_DIRS
# Tbag_LIBRARIES
if (Tbag_FOUND)
return ()
endif ()
set (__headers "libtbag/config.h")
set (__libs "tbag")
if (I... |
Use ITK compiled with Intel | # client maintainer: simon.rit@creatis.insa-lyon.fr
set(CTEST_SITE "shiitake.clb")
set(CTEST_BUILD_NAME "Linux-64bit-intel")
set(CTEST_BUILD_CONFIGURATION Release)
set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
set(dashboard_binary_name "RTK_lin64_intel")
set(ENV{ITK_DIR} "/home/srit/src/itk/lin64")
# Set intel compiler
... | # client maintainer: simon.rit@creatis.insa-lyon.fr
set(CTEST_SITE "shiitake.clb")
set(CTEST_BUILD_NAME "Linux-64bit-intel")
set(CTEST_BUILD_CONFIGURATION Release)
set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
set(dashboard_binary_name "RTK_lin64_intel")
set(ENV{ITK_DIR} "/home/srit/src/itk/lin64-intel")
# Set intel com... |
Use env.variable G4APPLICATION_DIR in cmake | # This is an example cmake that defines two important variables:
# - G4Application_INCLUDE_DIR: what you have specify as include path
# - G4Application_LIBRARY: what you have to libraries for the target
#
# It requires you to set the G4APPLICATION_DIR to point to the
# g4Application root directory.
if (NOT G4APPLICA... | # This is an example cmake that defines two important variables:
# - G4Application_INCLUDE_DIR: what you have specify as include path
# - G4Application_LIBRARY: what you have to libraries for the target
#
# It requires you to set the G4APPLICATION_DIR to point to the
# g4Application root directory.
if (NOT DEFINED E... |
Allow the Qt directory to be set from the command line. | # Prepare everything for using FindQt5 and building a Qt5 target.
macro(setup_qt)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
# Search for 64bit Qt
set(QT_ROOT $ENV{QT_ROOT_64})
else()
# Search for 32bit Qt
set(QT_ROOT $ENV{QT_ROOT_32})
endif()
list(APPEND CMAKE_PREFIX_PATH ${QT_ROO... | # Prepare everything for using FindQt5 and building a Qt5 target.
macro(setup_qt)
if(NOT QT_ROOT)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
# Search for 64bit Qt
set(QT_ROOT $ENV{QT_ROOT_64})
else()
# Search for 32bit Qt
set(QT_ROOT $ENV{QT_ROOT_32})
end... |
Remove dependency to boost_chrono for boost version less than 1.49 | ## Copyright (c) 2012 Aldebaran Robotics. All rights reserved.
## Use of this source code is governed by a BSD-style license that can be
## found in the COPYING file.
#get the root folder of this sdk
get_filename_component(_ROOT_DIR ${CMAKE_CURRENT_LIST_FILE} PATH)
include("${_ROOT_DIR}/boostutils.cmake")
boost_flib(... | ## Copyright (c) 2012 Aldebaran Robotics. All rights reserved.
## Use of this source code is governed by a BSD-style license that can be
## found in the COPYING file.
#get the root folder of this sdk
get_filename_component(_ROOT_DIR ${CMAKE_CURRENT_LIST_FILE} PATH)
include("${_ROOT_DIR}/boostutils.cmake")
boost_flib(... |
Disable test vc-swizzles_avx for Xcode 7. | #---Custom CTest settings---------------------------------------------------
set(CTEST_CUSTOM_TESTS_IGNORE ${CTEST_CUSTOM_TESTS_IGNORE} test-stressgui test-stressproof)
if(WIN32)
set(CTEST_CUSTOM_TESTS_IGNORE ${CTEST_CUSTOM_TESTS_IGNORE} test-tcollex)
endif()
if(CTEST_BUILD_NAME MATCHES icc) # sse tests of vc fa... | #---Custom CTest settings---------------------------------------------------
set(CTEST_CUSTOM_TESTS_IGNORE ${CTEST_CUSTOM_TESTS_IGNORE} test-stressgui test-stressproof)
if(WIN32)
set(CTEST_CUSTOM_TESTS_IGNORE ${CTEST_CUSTOM_TESTS_IGNORE} test-tcollex)
endif()
if(CTEST_BUILD_NAME MATCHES icc) # sse tests of vc fa... |
Implement QUIET for UDT finder | find_path(_udt_INCLUDE_DIR udt.h
HINTS ${UDT_ROOT}/include
PATHS /usr/include /usr/local/include /opt/local/include /usr/include/udt)
find_library(_udt_LIBRARY NAMES udt
HINTS ${UDT_ROOT}/lib
PATHS /usr/lib /usr/local/lib /opt/local/lib)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS... |
find_path(_udt_INCLUDE_DIR udt.h
HINTS ${UDT_ROOT}/include
PATHS /usr/include /usr/local/include /opt/local/include /usr/include/udt)
find_library(_udt_LIBRARY NAMES udt
HINTS ${UDT_ROOT}/lib
PATHS /usr/lib /usr/local/lib /opt/local/lib)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARG... |
Fix mrpt build in non-Intel archs (disable SSE2 in libcvd) | include(ExternalProject)
ExternalProject_Add(libcvd
SOURCE_DIR ${MRPT_SOURCE_DIR}/otherlibs/libcvd
CMAKE_ARGS
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
-DCVD_SSE2=${CMAKE_MRPT_HAS_SSE2}
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-DCVD_TESTS=OFF
-DCVD_PROGS=OFF
-DCVD_EXAMPLES=OFF
INSTALL_COMMAND ""
)
set(CVD_DIR... | include(ExternalProject)
ExternalProject_Add(libcvd
SOURCE_DIR ${MRPT_SOURCE_DIR}/otherlibs/libcvd
CMAKE_ARGS
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
# No SSE2: Gives problems in non Intel archs, and anyway we don't exploit libcvd CPU-intensive ops from mrpt
-DCVD_SSE2=OFF
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}... |
Increment minor version to 1.2.4 | #
# ONLY MODIFY TO CHANGE VERSION
#
# The number of commits since last this file has changed is used to
# define "dev" and "post", modification of this file will reset that
# version.
#
# Version info
set(SimpleITK_VERSION_MAJOR 1)
set(SimpleITK_VERSION_MINOR 2)
set(SimpleITK_VERSION_PATCH 3)
#set(SimpleITK_VERSION_T... | #
# ONLY MODIFY TO CHANGE VERSION
#
# The number of commits since last this file has changed is used to
# define "dev" and "post", modification of this file will reset that
# version.
#
# Version info
set(SimpleITK_VERSION_MAJOR 1)
set(SimpleITK_VERSION_MINOR 2)
set(SimpleITK_VERSION_PATCH 4)
#set(SimpleITK_VERSION_T... |
Use Release configuration for ctest scripting. |
find_program(CTEST_COVERAGE_COMMAND NAMES gcov)
find_program(CTEST_MEMORYCHECK_COMMAND NAMES valgrind)
find_program(CTEST_GIT_COMMAND NAMES git)
set(CTEST_SITE "bigeye")
if(WIN32)
set(CTEST_DASHBOARD_ROOT "C:/tmp/us")
else()
set(CTEST_DASHBOARD_ROOT "/tmp/us")
set(CTEST_BUILD_FLAGS "-j")
#set(CTEST_COMPILER "... |
find_program(CTEST_COVERAGE_COMMAND NAMES gcov)
find_program(CTEST_MEMORYCHECK_COMMAND NAMES valgrind)
find_program(CTEST_GIT_COMMAND NAMES git)
set(CTEST_SITE "bigeye")
if(WIN32)
set(CTEST_DASHBOARD_ROOT "C:/tmp/us")
else()
set(CTEST_DASHBOARD_ROOT "/tmp/us")
set(CTEST_BUILD_FLAGS "-j")
#set(CTEST_COMPILER "... |
Rework output filename of tarballs | # Packaging configuration
SET(CPACK_PACKAGE_NAME "allpix-squared")
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Generic Pixel Detector Simulation Framework")
SET(CPACK_PACKAGE_VENDOR "The Allpix Squared Authors")
SET(CPACK_PACKAGE_CONTACT "The Allpix Squared Authors <allpix.squared@cern.ch>")
SET(CPACK_PACKAGE_ICON "doc/logo... | # Packaging configuration
SET(CPACK_PACKAGE_NAME "allpix-squared")
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Generic Pixel Detector Simulation Framework")
SET(CPACK_PACKAGE_VENDOR "The Allpix Squared Authors")
SET(CPACK_PACKAGE_CONTACT "The Allpix Squared Authors <allpix.squared@cern.ch>")
SET(CPACK_PACKAGE_ICON "doc/logo... |
Add Quicktime prebuilt to the list of used libs; Quicktime never got downloaded and the plugin never got build properly if no QT SDK was installed | # -*- cmake -*-
include(Prebuilt)
if (NOT STANDALONE)
use_prebuilt_binary(libhunspell)
use_prebuilt_binary(nd_hacdConvexDecomposition)
use_prebuilt_binary(libuuid)
use_prebuilt_binary(slvoice)
use_prebuilt_binary(fontconfig)
endif(NOT STANDALONE)
if(VIEWER AND NOT STANDALONE)
if(EXISTS ${CMAKE_SOURCE_DIR}... | # -*- cmake -*-
include(Prebuilt)
if (NOT STANDALONE)
use_prebuilt_binary(libhunspell)
use_prebuilt_binary(nd_hacdConvexDecomposition)
use_prebuilt_binary(libuuid)
use_prebuilt_binary(slvoice)
use_prebuilt_binary(fontconfig)
use_prebuilt_binary(quicktime)
endif(NOT STANDALONE)
if(VIEWER AND NOT STANDALONE... |
Add extra cmake args for Python |
add_external_project_or_use_system(python
CONFIGURE_COMMAND <SOURCE_DIR>/configure
--prefix=<INSTALL_DIR>
--enable-unicode=ucs4
--enable-shared
PROCESS_ENVIRONMENT CFLAGS -I${CMAKE_OSX_SYSROOT}/usr/include
)
set (pv_python_executable "${install_location... |
add_external_project_or_use_system(python
CONFIGURE_COMMAND <SOURCE_DIR>/configure
--prefix=<INSTALL_DIR>
--enable-unicode=ucs4
--enable-shared
PROCESS_ENVIRONMENT CFLAGS -I${CMAKE_OSX_SYSROOT}/usr/include
)
set (pv_python_executable "${install_location... |
Make sure gbenchmark always defined | # Defines the following variables
#
# - GBENCHMARK_FOUND if the library is found
# - GBENCHMARK_LIBRARY is the path to the library
# - GBENCHMARK_INCLUDE_DIR is the path to the include directory
if(GBENCHMARK_FOUND)
return()
endif()
find_library(GBENCHMARK_LIBRARY benchmark DOC "Path to the google benchmark library"... | # Defines the following variables
#
# - GBENCHMARK_FOUND if the library is found
# - GBENCHMARK_LIBRARY is the path to the library
# - GBENCHMARK_INCLUDE_DIR is the path to the include directory
if(NOT GBENCHMARK_FOUND)
find_library(GBENCHMARK_LIBRARY benchmark DOC "Path to the google benchmark library")
find_path(... |
Update LesionSizingToolkit for external build and style test failures. | itk_fetch_module(LesionSizingToolkit
"Framework for determining the sizes of lesions in medical images."
GIT_REPOSITORY ${git_protocol}://public.kitware.com/LesionSizingToolkit.git
GIT_TAG fd9cfcef3bb4f7678bc50ecbe6ad51c6998cc3db
)
| itk_fetch_module(LesionSizingToolkit
"Framework for determining the sizes of lesions in medical images."
GIT_REPOSITORY http://public.kitware.com/LesionSizingToolkit.git
GIT_TAG 100ec226866cca13a6ed0f5c2d3520f45750424d
)
|
Add library directories if needed when using an ITK module | # target_use_itk
#
# This function has the following form:
# sitk_target_use_itk(<target>
# <PRIVATE|PUBLIC|INTERFACE>
# [itk_module [itk_module [...]]])
#
# It configures the target, with the require include directories and
# link libraries to use the list of itk modules... | # target_use_itk
#
# This function has the following form:
# sitk_target_use_itk(<target>
# <PRIVATE|PUBLIC|INTERFACE>
# [itk_module [itk_module [...]]])
#
# It configures the target, with the require include directories and
# link libraries to use the list of itk modules... |
Update FW with error reporting for DetectionNetwork | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "73f5dfe7a318e713481dd00d134c2c597112afff")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
| # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "bfb509700962dc4d8d78de9be30a49efa98e25f8")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Declare a project dependency to force correct build order of externals. | include(ExternalProject)
FIND_PACKAGE(Boost)
if(Boost-NOTFOUND)
include(BoostMinimal)
endif()
if(ENABLE_TESTS)
include(GTest-1.6)
endif()
include(Redis)
include(JavaScriptCore)
include(JSObjects)
include(SwigJS)
include(RedisDocStore)
| include(ExternalProject)
FIND_PACKAGE(Boost)
if(Boost-NOTFOUND)
include(BoostMinimal)
endif()
if(ENABLE_TESTS)
include(GTest-1.6)
endif()
include(Redis)
include(JavaScriptCore)
include(JSObjects)
include(SwigJS)
include(RedisDocStore)
add_dependencies(store_external swig_js)
|
Use anonymous http clone for MITK testing data | #-----------------------------------------------------------------------------
# MITK Data
#-----------------------------------------------------------------------------
# Sanity checks
IF(DEFINED MITK_DATA_DIR AND NOT EXISTS ${MITK_DATA_DIR})
MESSAGE(FATAL_ERROR "MITK_DATA_DIR variable is defined but corresponds to... | #-----------------------------------------------------------------------------
# MITK Data
#-----------------------------------------------------------------------------
# Sanity checks
IF(DEFINED MITK_DATA_DIR AND NOT EXISTS ${MITK_DATA_DIR})
MESSAGE(FATAL_ERROR "MITK_DATA_DIR variable is defined but corresponds to... |
Fix for ROOT-7650 - Complete the 'hdfs' option with CMake | # - Locate hdfs (from hadoop) library
# Defines:
#
# HDFS_FOUND
# HDFS_INCLUDE_DIR
# HDFS_INCLUDE_DIRS (not cached)
# HDFS_LIBRARIES
find_path(HDFS_INCLUDE_DIR NAMES hdfs.h HINTS ${HDFS_DIR}/include $ENV{HDFS_DIR}/include /usr/include/hadoop)
find_library(HDFS_LIBRARY NAMES hdfs HINTS ${HDFS_DIR}/lib/native $ENV{... | # - Locate hdfs (from hadoop) library
# Defines:
#
# HDFS_FOUND
# HDFS_INCLUDE_DIR
# HDFS_INCLUDE_DIRS (not cached)
# HDFS_LIBRARIES
find_path(HDFS_INCLUDE_DIR NAMES hdfs.h HINTS ${HDFS_DIR}/include $ENV{HDFS_DIR}/include /usr/include/hadoop)
find_library(HDFS_LIBRARY NAMES hdfs PATH_SUFFIXES native HINTS ${HDFS_... |
Add stackprotector flag and check for fourtify source. | # define system dependent compiler flags
include(CheckCXXCompilerFlag)
if (UNIX AND NOT WIN32)
# with -fPIC
if (CMAKE_SIZEOF_VOID_P MATCHES "8")
check_cxx_compiler_flag("-fPIC" WITH_FPIC)
if (WITH_FPIC)
add_definitions(-fPIC)
endif (WITH_FPIC)
# with large file support
execute_process(
... | # define system dependent compiler flags
include(CheckCXXCompilerFlag)
if (UNIX AND NOT WIN32)
# with -fPIC
if (CMAKE_SIZEOF_VOID_P MATCHES "8")
check_cxx_compiler_flag("-fPIC" WITH_FPIC)
if (WITH_FPIC)
add_definitions(-fPIC)
endif (WITH_FPIC)
# with large file support
execute_process(
... |
Set default plugins variable to empty string. | function(mitkFunctionEnablePlugins)
if(MITK_WHITELIST STREQUAL "None")
return()
endif()
string(FIND "${MITK_WHITELIST}" " (external)" index REVERSE)
if(${index} EQUAL -1)
set(whitelistFile "${MITK_WHITELISTS_PATH}/${MITK_WHITELIST}.cmake")
else()
string(SUBSTRING "${MITK_WHITELIST}" 0 ${index} w... | function(mitkFunctionEnablePlugins)
if(MITK_WHITELIST STREQUAL "None")
return()
endif()
string(FIND "${MITK_WHITELIST}" " (external)" index REVERSE)
if(${index} EQUAL -1)
set(whitelistFile "${MITK_WHITELISTS_PATH}/${MITK_WHITELIST}.cmake")
else()
string(SUBSTRING "${MITK_WHITELIST}" 0 ${index} w... |
Stop the presses if triangle is not found | include(FindPackageHandleStandardArgs)
find_library (TRIANGLE_LIBRARY NAMES triangle TRIANGLE DOC "Location of the Triangle package")
find_path (TRIANGLE_INCLUDE_DIR triangle.h PATH_SUFFIXES triangle)
# TODO: Fail if triangle is not found, or perhaps compile without TriangularDecompositions
if (TRIANGLE_LIBRARY AND TR... | include(FindPackageHandleStandardArgs)
find_library (TRIANGLE_LIBRARY NAMES triangle TRIANGLE DOC "Location of the Triangle package")
find_path (TRIANGLE_INCLUDE_DIR triangle.h PATH_SUFFIXES triangle)
# TODO: Fail if triangle is not found, or perhaps compile without TriangularDecompositions
if (TRIANGLE_LIBRARY AND TR... |
Set min OSX SDK to 10.8 | SET(SDK_MIN "10.9")
SET(SDK "10.9")
SET(DEV_SDK "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX${SDK}.sdk")
ADD_DEFINITIONS(
-DMAC
-DGCC_VISIBILITY
-mmacosx-version-min=${SDK_MIN}
)
SET(CMAKE_OSX_SYSROOT ${DEV_SDK})
| SET(SDK_MIN "10.8")
SET(SDK "10.8")
SET(DEV_SDK "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX${SDK}.sdk")
ADD_DEFINITIONS(
-DMAC
-DGCC_VISIBILITY
-mmacosx-version-min=${SDK_MIN}
)
SET(CMAKE_OSX_SYSROOT ${DEV_SDK})
|
Add possible PORTLIBS override env variable | # the name of the target operating system
SET(CMAKE_SYSTEM_NAME Generic)
# which compilers to use for C and C++
SET(CMAKE_C_COMPILER ${DEVKITARM}/bin/arm-none-eabi-gcc)
SET(CMAKE_CXX_COMPILER ${DEVKITARM}/bin/arm-none-eabi-g++)
SET(CMAKE_SIZE ${DEVKITARM}/bin/arm-none-eabi-size)
SET(CMAKE_OBJCOPY ${DEVKITARM}/bin/arm-... | # the name of the target operating system
SET(CMAKE_SYSTEM_NAME Generic)
# which compilers to use for C and C++
SET(CMAKE_C_COMPILER ${DEVKITARM}/bin/arm-none-eabi-gcc)
SET(CMAKE_CXX_COMPILER ${DEVKITARM}/bin/arm-none-eabi-g++)
SET(CMAKE_SIZE ${DEVKITARM}/bin/arm-none-eabi-size)
SET(CMAKE_OBJCOPY ${DEVKITARM}/bin/arm-... |
Update FW with stereo confidence runtime config fix | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "c4b3d00943fc95edac6e51602e74ce506f72b191")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
| # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "998500e9b6cd25679bfacf54c085e4d6c494d944")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Add TSP_CONFIGURE_FILE_AUTOTOOLS_COMPAT macro for previously configure-generated files src/scripts/tsp_dev.login src/scripts/tsp_dev.login.sh src/scripts/tsp.pc src/doxy/tsp src/core/include/tsp_prjcfg.h | SET(XSCRIPT_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/exec/${CMAKE_SYSTEM_NAME}/${CMAKE_BUILD_TYPE}/scripts)
MAKE_DIRECTORY(${XSCRIPT_OUTPUT_PATH})
# define TSP_XSCRIPT MACRO
MACRO(TSP_XSCRIPT)
FOREACH(SCRIPT_FILE ${ARGV})
GET_FILENAME_COMPONENT(FN ${SCRIPT_FILE} NAME)
CONFIGURE_FILE(${SCRIPT_FILE} ${XSCRIPT_OUTPUT_PAT... | SET(XSCRIPT_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/exec/${CMAKE_SYSTEM_NAME}/${CMAKE_BUILD_TYPE}/scripts)
MAKE_DIRECTORY(${XSCRIPT_OUTPUT_PATH})
# define TSP_XSCRIPT MACRO
MACRO(TSP_XSCRIPT)
FOREACH(SCRIPT_FILE ${ARGV})
GET_FILENAME_COMPONENT(FN ${SCRIPT_FILE} NAME)
CONFIGURE_FILE(${SCRIPT_FILE} ${XSCRIPT_OUTPUT_PAT... |
Set CMake Policy version up to 3.20 | set(SITK_CMAKE_MINIMUM_REQUIRED_VERSION "3.16.3")
set(SITK_CMAKE_POLICY_VERSION "3.16.3")
if("${CMAKE_VERSION}" VERSION_LESS_EQUAL "${SITK_CMAKE_POLICY_VERSION}")
set(SITK_CMAKE_POLICY_VERSION "${CMAKE_VERSION}")
endif()
| set(SITK_CMAKE_MINIMUM_REQUIRED_VERSION "3.16.3")
set(SITK_CMAKE_POLICY_VERSION "${SITK_CMAKE_MINIMUM_REQUIRED_VERSION}...3.20")
|
Add EXCLUDE_FROM_ALL to the CMake macro mimosa_test | add_custom_target(check)
macro(mimosa_test MODULE)
add_executable(tst-${MODULE} ${ARGN})
target_link_libraries(tst-${MODULE} gtest_main gtest mimosa)
add_custom_target(run-tst-${MODULE} ./tst-${MODULE} DEPENDS tst-${MODULE})
add_dependencies(check run-tst-${MODULE})
endmacro(mimosa_test)
| add_custom_target(check)
macro(mimosa_test MODULE)
add_executable(tst-${MODULE} EXCLUDE_FROM_ALL ${ARGN})
target_link_libraries(tst-${MODULE} gtest_main gtest mimosa)
add_custom_target(run-tst-${MODULE} ./tst-${MODULE} DEPENDS tst-${MODULE})
add_dependencies(check run-tst-${MODULE})
endmacro(mimosa_test)
|
Fix sos on window's build. | # Contains the dac build specific definitions. Included by the leaf dac cmake files.
remove_definitions(-DPROFILING_SUPPORTED)
add_definitions(-DDACCESS_COMPILE)
if(WIN32)
add_definitions(-MT)
endif(WIN32) | # Contains the dac build specific definitions. Included by the leaf dac cmake files.
add_definitions(-DDACCESS_COMPILE)
if(WIN32)
remove_definitions(-DPROFILING_SUPPORTED)
add_definitions(-DPROFILING_SUPPORTED_DATA)
add_definitions(-MT)
endif(WIN32)
|
Use Requires.private instead of Requires, patch by Rex Dieter | prefix=${CMAKE_INSTALL_PREFIX}
exec_prefix=${EXEC_INSTALL_PREFIX}
libdir=${LIB_INSTALL_DIR}
includedir=${INCLUDE_INSTALL_DIR}
Name: ${PROJECT_NAME}
Description: The Musicbrainz Client Library.
URL: http://musicbrainz.org/doc/libmusicbrainz
Version: ${PROJECT_VERSION}
Requires: neon >= 0.25, libdiscid
Libs: -L${LIB_INS... | prefix=${CMAKE_INSTALL_PREFIX}
exec_prefix=${EXEC_INSTALL_PREFIX}
libdir=${LIB_INSTALL_DIR}
includedir=${INCLUDE_INSTALL_DIR}
Name: ${PROJECT_NAME}
Description: The Musicbrainz Client Library.
URL: http://musicbrainz.org/doc/libmusicbrainz
Version: ${PROJECT_VERSION}
Requires.private: neon >= 0.25, libdiscid
Libs: -L$... |
Update MGHIO to be shared lib | itk_fetch_module(MGHIO
"MGHIO ImageIO plugin for ITK"
GIT_REPOSITORY https://github.com/Slicer/itkMGHImageIO.git
GIT_TAG 662e79fe283ed7ee85fb6d80dab3739fc75eb763
)
| itk_fetch_module(MGHIO
"MGHIO ImageIO plugin for ITK"
GIT_REPOSITORY https://github.com/Slicer/itkMGHImageIO.git
GIT_TAG dc1f16c73d497ca2d1d7e1c77096817f8a82eb21
)
|
Add workaround for stereo subpixel/extended mode crash at the expense of system performance | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "a858d35dbe1574fc02e590ae04524ade7b5bf0ba")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
| # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "a2baa42ba41f7b79dcbee987b34f24da075de196")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Revert "USB bootloader with support for missing 24MHz USB osc (OAK-D Pro-PoE initial flashing)" | # Maturity level "snapshot" / "release"
#set(DEPTHAI_BOOTLOADER_MATURITY "release")
set(DEPTHAI_BOOTLOADER_MATURITY "snapshot")
# "version if applicable"
#set(DEPTHAI_BOOTLOADER_VERSION "0.0.15")
set(DEPTHAI_BOOTLOADER_VERSION "bb9e4c86ce3c22da0aeb92dc18c8b28458bed4af")
| # Maturity level "snapshot" / "release"
set(DEPTHAI_BOOTLOADER_MATURITY "release")
#set(DEPTHAI_BOOTLOADER_MATURITY "snapshot")
# "version if applicable"
set(DEPTHAI_BOOTLOADER_VERSION "0.0.15")
#set(DEPTHAI_BOOTLOADER_VERSION "870bec4ca0ef026ddb9c490a38dfe9d097614554")
|
Build statically when used as subproject | message(STATUS "QtSsh subdir: ${CMAKE_CURRENT_LIST_DIR}")
add_subdirectory(${CMAKE_CURRENT_LIST_DIR})
include_directories(${CMAKE_CURRENT_LIST_DIR}/qtssh)
| message(STATUS "QtSsh subdir: ${CMAKE_CURRENT_LIST_DIR}")
set(BUILD_STATIC ON)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR})
include_directories(${CMAKE_CURRENT_LIST_DIR}/qtssh)
|
Update SCIFIO for KWStyke failures | itk_fetch_module(SCIFIO
"SCIFIO (Bioformats) ImageIO plugin for ITK"
GIT_REPOSITORY https://github.com/scifio/scifio-imageio.git
GIT_TAG 789c08071bbcd4341eba76fda10582a8d5fb7626
)
| itk_fetch_module(SCIFIO
"SCIFIO (Bioformats) ImageIO plugin for ITK"
GIT_REPOSITORY https://github.com/scifio/scifio-imageio.git
GIT_TAG 9346dbbf30b64645ebd9546fbf82f5438dc88a48
)
|
Add matchpoint to workbench release config | include(${CMAKE_CURRENT_LIST_DIR}/Default.cmake)
set(MITK_VTK_DEBUG_LEAKS OFF CACHE BOOL "Enable VTK Debug Leaks" FORCE)
# Ensure that the in-application help can be build
set(BLUEBERRY_QT_HELP_REQUIRED ON CACHE BOOL "Required Qt help documentation in plug-ins" FORCE)
| include(${CMAKE_CURRENT_LIST_DIR}/Default.cmake)
set(MITK_CONFIG_PACKAGES ${MITK_CONFIG_PACKAGES}
MatchPoint
)
set(MITK_CONFIG_PLUGINS ${MITK_CONFIG_PLUGINS}
org.mitk.gui.qt.multilabelsegmentation
org.mitk.matchpoint.core.helper
org.mitk.gui.qt.matchpoint.algorithm.browser
org.mitk.gui.qt.matchpoint.algorit... |
Check cmake version and warn user if lower than required | get_filename_component(STM32_CMAKE_DIR ${CMAKE_CURRENT_LIST_FILE} DIRECTORY)
list(APPEND CMAKE_MODULE_PATH ${STM32_CMAKE_DIR})
include(stm32/common)
include(stm32/devices)
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
find_program(CMAKE_C_COMPILER NAMES ${STM32_TARGET_TRIPLET}-gcc HINTS ${TOOLCHAIN_BIN_P... | if(${CMAKE_VERSION} VERSION_LESS "3.16.0")
message(WARNING "Current CMake verision is ${CMAKE_VERSION}. stm32-cmake requires CMake 3.16 or greater")
endif()
get_filename_component(STM32_CMAKE_DIR ${CMAKE_CURRENT_LIST_FILE} DIRECTORY)
list(APPEND CMAKE_MODULE_PATH ${STM32_CMAKE_DIR})
include(stm32/common)
... |
Fix Python install rules on OsX. | include(tomviz.bundle.common)
set(CPACK_GENERATOR DragNDrop)
include(CPack)
install(CODE "
file(INSTALL DESTINATION \"\${CMAKE_INSTALL_PREFIX}\" USE_SOURCE_PERMISSIONS TYPE DIRECTORY FILES
\"${install_location}/Applications/TomViz.app\")
file(WRITE \"\${CMAKE_INSTALL_PREFIX}/TomViz.app/Contents/R... | include(tomviz.bundle.common)
set(CPACK_GENERATOR DragNDrop)
include(CPack)
install(CODE "
file(INSTALL DESTINATION \"\${CMAKE_INSTALL_PREFIX}\" USE_SOURCE_PERMISSIONS TYPE DIRECTORY FILES
\"${install_location}/Applications/tomviz.app\")
file(WRITE \"\${CMAKE_INSTALL_PREFIX}/tomviz.app/Contents/R... |
Use specific instruction sets for extra CPU features | set(CAPABS "-march=native -mfpmath=sse")
message(STATUS "Using native CPU features. CAPABS = ${CAPABS}")
| set(CAPABS "-mavx2 -maes -mfpmath=sse")
message(STATUS "Using native CPU features. CAPABS = ${CAPABS}")
|
Update MGHImageIO for header guarder style | itk_fetch_module(MGHIO
"MGHIO ImageIO plugin for ITK"
GIT_REPOSITORY https://github.com/Slicer/itkMGHImageIO.git
GIT_TAG f4e475c47f5c246b1ebf0529e052f65b73c7d13d
)
| itk_fetch_module(MGHIO
"MGHIO ImageIO plugin for ITK"
GIT_REPOSITORY https://github.com/Slicer/itkMGHImageIO.git
GIT_TAG a7fe91bbc8f06e57c3d988862ae02ba313049042
)
|
Add -fno-omit-frame-pointer by default on RK1108 | set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR arm)
set(CMAKE_SYSTEM_VERSION 1)
set(BUILD_ARM 1)
set(BUILD_RK1108 1)
set(RK1108_TOOLCHAIN_ROOT /opt/rk1108_toolchain)
set(RK1108_COMMON_FLAGS " --sysroot=${RK1108_TOOLCHAIN_ROOT}/usr/arm-rkcvr-linux-uclibcgnueabihf/sysroot -D__RK1108__")
set(CMAKE_C_COMPILER ${... | set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR arm)
set(CMAKE_SYSTEM_VERSION 1)
set(BUILD_ARM 1)
set(BUILD_RK1108 1)
set(RK1108_TOOLCHAIN_ROOT /opt/rk1108_toolchain)
set(RK1108_COMMON_FLAGS " --sysroot=${RK1108_TOOLCHAIN_ROOT}/usr/arm-rkcvr-linux-uclibcgnueabihf/sysroot -D__RK1108__ -fno-omit-frame-pointer")
... |
Add NDEBUG to release flags | # Copyright (c) 2014, Ruslan Baratov
# All rights reserved.
if(DEFINED POLLY_FLAGS_SANITIZE_ADDRESS_CMAKE_)
return()
else()
set(POLLY_FLAGS_SANITIZE_ADDRESS_CMAKE_ 1)
endif()
include(polly_add_cache_flag)
polly_add_cache_flag(CMAKE_CXX_FLAGS "-fsanitize=address")
polly_add_cache_flag(CMAKE_CXX_FLAGS "-g")
set(
... | # Copyright (c) 2014, Ruslan Baratov
# All rights reserved.
if(DEFINED POLLY_FLAGS_SANITIZE_ADDRESS_CMAKE_)
return()
else()
set(POLLY_FLAGS_SANITIZE_ADDRESS_CMAKE_ 1)
endif()
include(polly_add_cache_flag)
polly_add_cache_flag(CMAKE_CXX_FLAGS "-fsanitize=address")
polly_add_cache_flag(CMAKE_CXX_FLAGS "-g")
set(
... |
Fix the hardcoded Debian package dependencies | #Tweaks for the different package types
if (${CPACK_GENERATOR} STREQUAL "DEB")
#set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6 (>=2.7-18), openssl (>=1.0.1f), zlib (>=1.2.8), czmq (>=1.4.1), apr-accre (>= 1.5.0), apr-util-ACCRE (>=1.5.3), zeromq (=>4.0.1)")
elseif (${CPACK_GENERAT... | #Tweaks for the different package types
if (${CPACK_GENERATOR} STREQUAL "DEB")
#set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6 (>=2.7-18), openssl (>=1.0.1f), zlib1g (>= 1:1.1.4), czmq (>=1.4.1), libapr-accre1 (>= 1.5.0), libapr-accre-util1 (>=1.5.3), libzmq3 (>=4.0.1)")
elseif ($... |
Add ${INCLUDE_INSTALL_DIR} to the include dirs, not ${INCLUDE_INSTALL_DIR}/qjson | # Find QJSON - JSON handling library for Qt
#
# This module defines
# QJSON_FOUND - whether the qsjon library was found
# QJSON_LIBRARIES - the qjson library
# QJSON_INCLUDE_DIR - the include path of the qjson library
#
if (QJSON_INCLUDE_DIR AND QJSON_LIBRARIES)
# Already in cache
set (QJSON_FOUND TRUE)
else ... | # Find QJSON - JSON handling library for Qt
#
# This module defines
# QJSON_FOUND - whether the qsjon library was found
# QJSON_LIBRARIES - the qjson library
# QJSON_INCLUDE_DIR - the include path of the qjson library
#
if (QJSON_INCLUDE_DIR AND QJSON_LIBRARIES)
# Already in cache
set (QJSON_FOUND TRUE)
else ... |
Fix typo in CMake boiler plate | include("${CMAKE_CURRENT_LIST_DIR}/ix86_energyTargets.cmake")
set(x86_energy_FOUND TRUE)
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
get_filename_component(_IMPO... | include("${CMAKE_CURRENT_LIST_DIR}/x86_energyTargets.cmake")
set(x86_energy_FOUND TRUE)
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
get_filename_component(_IMPOR... |
Fix yum conf file name | SET(CPACK_RPM_PACKAGE_REQUIRES "libstdc++ >= 4.8, httpd >= 2.4")
SET(CPACK_RPM_PACKAGE_URL "https://github.com/matiu2/cdnalizer")
SET(CPACK_RPM_PACKAGE_LICENSE "ASL 2.0")
set(YUM_DIR packages/redhat)
file(COPY ${YUM_DIR}/01-cdnalizer.conf ${YUM_DIR}/postrm DESTINATION .)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/cdna... | SET(CPACK_RPM_PACKAGE_REQUIRES "libstdc++ >= 4.8, httpd >= 2.4")
SET(CPACK_RPM_PACKAGE_URL "https://github.com/matiu2/cdnalizer")
SET(CPACK_RPM_PACKAGE_LICENSE "ASL 2.0")
set(YUM_DIR packages/redhat)
file(COPY ${YUM_DIR}/01-cdnalizer.conf ${YUM_DIR}/postrm DESTINATION .)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/01-c... |
Set additional CPACK variables for RPM generator | set(CPACK_GENERATOR
TGZ
ZIP
)
set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY 0)
set(CPACK_INSTALL_CMAKE_PROJECTS
"${CMAKE_BINARY_DIR}"
"${PROJECT_NAME}"
ALL
.
)
set(CPACK_PROJECT_URL "https://github.com/gabime/spdlog")
set(CPACK_PACKAGE_VENDOR "Gabi Melman")
set(CPACK_PACKAGE_CONTACT "Gabi Melma... | set(CPACK_GENERATOR
TGZ
ZIP
)
set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY 0)
set(CPACK_INSTALL_CMAKE_PROJECTS
"${CMAKE_BINARY_DIR}"
"${PROJECT_NAME}"
ALL
.
)
set(CPACK_PROJECT_URL "https://github.com/gabime/spdlog")
set(CPACK_PACKAGE_VENDOR "Gabi Melman")
set(CPACK_PACKAGE_CONTACT "Gabi Melma... |
Clean make up for correct variable names | include(CheckCXXSourceCompiles)
include(CMakeCheckCompilerFlagCommonPatterns)
include(compiler-flags.cmake)
macro(check_supported_flags OUTPUT_VAR)
CHECK_COMPILER_FLAG_COMMON_PATTERNS(_CheckCXXCompilerFlag_COMMON_PATTERNS)
foreach(flag ${GCC_EXTRA_WARNINGS} ${CLANG_EXTRA_WARNINGS})
set(CMAKE_REQUIRED_DEFINITI... | include(CheckCXXSourceCompiles)
include(CMakeCheckCompilerFlagCommonPatterns)
include(cmake/compiler-flags.cmake)
macro(check_supported_flags OUTPUT_VAR)
CHECK_COMPILER_FLAG_COMMON_PATTERNS(_CheckCXXCompilerFlag_COMMON_PATTERNS)
foreach(flag ${GCC_EXTRA_WARNINGS} ${CLANG_EXTRA_WARNINGS})
set(CMAKE_REQUIRED_DE... |
Put warning when using old PGI compiler on 64-bit macOS | if (NOT PLIBSYS_SIZEOF_VOID_P EQUAL 4)
message (FATAL_ERROR
"
PGI compiler doesn't support 64-bit shared libraries on
macOS. Use 32-bit version of the compiler instead.
")
endif()
set (PLIBSYS_THREAD_MODEL posix)
set (PLIBSYS_IPC_MODEL posix)... | if (NOT PLIBSYS_SIZEOF_VOID_P EQUAL 4)
if (CMAKE_VERSION VERSION_LESS 2.8.10)
message (WARNING
"
Unable to detect PGI compiler version. Beware that old
PGI versions doesn't support shared libraries on 64-bit
... |
Drop <boost/current_function.hpp> from the list of required headers when TriBITS looks for Boost | GLOBAL_SET(BoostOrg_INCLUDE_DIRS "${Boost_INCLUDE_DIRS}")
GLOBAL_SET(BoostOrg_LIBRARY_DIRS "${Boost_LIBRARY_DIRS}")
TRIBITS_TPL_FIND_INCLUDE_DIRS_AND_LIBRARIES(
BoostOrg
REQUIRED_HEADERS boost/property_tree/json_parser.hpp
boost/property_tree/ptree.hpp
boost/math/tools/polynom... | GLOBAL_SET(BoostOrg_INCLUDE_DIRS "${Boost_INCLUDE_DIRS}")
GLOBAL_SET(BoostOrg_LIBRARY_DIRS "${Boost_LIBRARY_DIRS}")
TRIBITS_TPL_FIND_INCLUDE_DIRS_AND_LIBRARIES(
BoostOrg
REQUIRED_HEADERS boost/property_tree/json_parser.hpp
boost/property_tree/ptree.hpp
boost/math/tools/polynom... |
Update IsotropicWavelets module for Doxygen build | # Contact: Pablo Hernandez-Cerdan <pablo.hernandez.cerdan@outlook.com>
itk_fetch_module(IsotropicWavelets
"An ITK-based implementation of steerable isotropic wavelet transforms for multiscale phase analysis.
A more detailed description can be found in the Insight Journal article::
Cerdan, P.H. \"Steerable Isotropic Wa... | # Contact: Pablo Hernandez-Cerdan <pablo.hernandez.cerdan@outlook.com>
itk_fetch_module(IsotropicWavelets
"An ITK-based implementation of steerable isotropic wavelet transforms for multiscale phase analysis.
A more detailed description can be found in the Insight Journal article::
Cerdan, P.H. \"Steerable Isotropic Wa... |
Add JLink support for flash, as per nucleo_f070rb | include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
| set_ifndef(STLINK_FW stlink)
if(STLINK_FW STREQUAL jlink)
board_runner_args(jlink "--device=stm32f429zi" "--speed=4000")
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
elseif(STLINK_FW STREQUAL stlink)
include($ENV{ZEPHYR_BASE}/boards/common/openocd.board.cmake)
endif()
|
Fix bug that prevented mac os x builds from running in the build directory | macro(fix_cudart_rpath target)
if (ENABLE_CUDA AND APPLE)
get_target_property(_target_exe ${target} LOCATION)
add_custom_command(TARGET ${target} POST_BUILD
COMMAND install_name_tool ARGS -change @rpath/libcudart.dylib ${CUDA_CUDART_LIBRARY} ${_target_exe})
add_custom_command(TARGET ${target} ... | macro(fix_cudart_rpath target)
if (ENABLE_CUDA AND APPLE)
get_target_property(_target_exe ${target} LOCATION)
add_custom_command(TARGET ${target} POST_BUILD
COMMAND install_name_tool ARGS -change @rpath/libcudart.dylib ${CUDA_CUDART_LIBRARY} ${_target_exe})
add_custom_command(TARGET ${target} ... |
Remove trailing references to VolumeOpenGLNew | if (Module_vtkRenderingVolumeOpenGLNEW AND
NOT (VTK_RENDERING_BACKEND STREQUAL "OpenGL2"))
set(VTK_RENDERING_VOLUME_BACKEND
"vtkRenderingVolumeOpenGLNew")
else ()
set (VTK_RENDERING_VOLUME_BACKEND "")
endif()
vtk_module(vtkRenderingVolume
GROUPS
Rendering
DEPENDS
vtkImagingCore
vtkRendering... | vtk_module(vtkRenderingVolume
GROUPS
Rendering
DEPENDS
vtkImagingCore
vtkRenderingCore
TEST_DEPENDS
vtkFiltersModeling
vtkTestingCore
vtkTestingRendering
vtkRenderingVolume${VTK_RENDERING_BACKEND}
vtkRenderingFreeType
vtkIOXML
vtkImagingSources
vtkImagingGeneral
vtk... |
Use functions instead of macros for better scope control. | macro(addTestTargetToLibavgPythonPackage testTarget)
add_custom_target(copy_${testTarget} ALL)
add_dependencies(copy_${testTarget} ${testTarget})
add_custom_command(TARGET copy_${testTarget}
COMMAND ${CMAKE_COMMAND} -E copy
"${CMAKE_CURRENT_BINARY_DIR}/${testTarget}"
"${CMAKE_BINARY_... | function(addTestTargetToLibavgPythonPackage testTarget)
add_custom_target(copy_${testTarget} ALL)
add_dependencies(copy_${testTarget} ${testTarget})
add_custom_command(TARGET copy_${testTarget}
COMMAND ${CMAKE_COMMAND} -E copy
"${CMAKE_CURRENT_BINARY_DIR}/${testTarget}"
"${CMAKE_BINA... |
Remove some imt tutorials from the test batteries for classic builds | #---Custom CTest settings---------------------------------------------------
set(CTEST_CUSTOM_TESTS_IGNORE ${CTEST_CUSTOM_TESTS_IGNORE} tutorial-pyroot-zdemo)
if("$ENV{COMPILER}" STREQUAL "classic") # TTreeProcessorM{T,P} are not available
list(APPEND CTEST_CUSTOM_TESTS_IGNORE tutorial-multicore-mp102_readNtuplesF... | #---Custom CTest settings---------------------------------------------------
set(CTEST_CUSTOM_TESTS_IGNORE ${CTEST_CUSTOM_TESTS_IGNORE} tutorial-pyroot-zdemo)
if("$ENV{COMPILER}" STREQUAL "classic")
# TTreeProcessorM{T,P} are not available
list(APPEND CTEST_CUSTOM_TESTS_IGNORE tutorial-multicore-mp102_readNtupl... |
Remove encoder test for now | CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
include (ExternalProject)
include (BuildSupport)
external_git_repo (emdata
HEAD
http://github.com/janelia-flyem/emdata.git)
message ("Installing ${emdata_NAME} into FlyEM build area: ${BUILDEM_DIR} ...")
ExternalProject_Add(${emdata_NAME}
DEPENDS ${python_N... | CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
include (ExternalProject)
include (BuildSupport)
external_git_repo (emdata
HEAD
http://github.com/janelia-flyem/emdata.git)
message ("Installing ${emdata_NAME} into FlyEM build area: ${BUILDEM_DIR} ...")
ExternalProject_Add(${emdata_NAME}
DEPENDS ${python_N... |
Update RTK for future proofing. | # Contact: Simon Rit <simon.rit@creatis.insa-lyon.fr>
itk_fetch_module(RTK
"Reconstruction Toolkit (RTK) http://www.openrtk.org/"
GIT_REPOSITORY ${git_protocol}://github.com/SimonRit/RTK.git
GIT_TAG 3fc00efadef8324aba31f77390c3e562f9af5147
)
| # Contact: Simon Rit <simon.rit@creatis.insa-lyon.fr>
itk_fetch_module(RTK
"Reconstruction Toolkit (RTK) http://www.openrtk.org/"
GIT_REPOSITORY ${git_protocol}://github.com/SimonRit/RTK.git
GIT_TAG f0451dafae314c142d2ead540b8fde5f1f8a51d8
)
|
Remove FiltersParallelImaging from Imaging group | vtk_module(vtkFiltersParallelImaging
GROUPS
Imaging
DEPENDS
vtkImagingCore
vtkFiltersImaging
vtkFiltersParallel
vtkParallelCore
)
| vtk_module(vtkFiltersParallelImaging
DEPENDS
vtkImagingCore
vtkFiltersImaging
vtkFiltersParallel
vtkParallelCore
)
|
Disable test-stressproof for the time being | #---Custom CTest settings---------------------------------------------------
set(CTEST_CUSTOM_TESTS_IGNORE ${CTEST_CUSTOM_TESTS_IGNORE} test-stressgui)
if(WIN32)
set(CTEST_CUSTOM_TESTS_IGNORE ${CTEST_CUSTOM_TESTS_IGNORE} test-tcollex)
endif()
| #---Custom CTest settings---------------------------------------------------
set(CTEST_CUSTOM_TESTS_IGNORE ${CTEST_CUSTOM_TESTS_IGNORE} test-stressgui test-stressproof)
if(WIN32)
set(CTEST_CUSTOM_TESTS_IGNORE ${CTEST_CUSTOM_TESTS_IGNORE} test-tcollex)
endif()
|
Remove HAVE_XSHM because it is not used |
/* Define if you have valgrind.h installed */
#cmakedefine HAVE_VALGRIND_H 1
/* Define if you have xmms libraries and header files. */
#cmakedefine HAVE_XMMS 1
/* Define to compile with GSM SMS support */
/* #undef INCLUDE_SMSGSM */
/* TODO */
/* #undef HAVE_XSHM */
/* Define to 1 if you have the <inttypes.h> head... |
/* Define if you have valgrind.h installed */
#cmakedefine HAVE_VALGRIND_H 1
/* Define if you have xmms libraries and header files. */
#cmakedefine HAVE_XMMS 1
/* Define to compile with GSM SMS support */
/* #undef INCLUDE_SMSGSM */
/* Define to 1 if you have the <inttypes.h> header file. */
#cmakedefine HAVE_INTTY... |
Update superbuild googletest version to 1.11 | # Make sure this file is included only once
get_filename_component(CMAKE_CURRENT_LIST_FILENAME ${CMAKE_CURRENT_LIST_FILE} NAME_WE)
if(${CMAKE_CURRENT_LIST_FILENAME}_FILE_INCLUDED)
return()
endif()
set(${CMAKE_CURRENT_LIST_FILENAME}_FILE_INCLUDED 1)
set(proj GTest)
set(GTEST_GIT_REPOSITORY "${git_protocol}://github.... | # Make sure this file is included only once
get_filename_component(CMAKE_CURRENT_LIST_FILENAME ${CMAKE_CURRENT_LIST_FILE} NAME_WE)
if(${CMAKE_CURRENT_LIST_FILENAME}_FILE_INCLUDED)
return()
endif()
set(${CMAKE_CURRENT_LIST_FILENAME}_FILE_INCLUDED 1)
set(proj GTest)
set(GTEST_GIT_REPOSITORY "${git_protocol}://github.... |
Update FW: disparity (U8) aligning to RGB works. TODO depth and subpixel (U16) | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "0f1ac77644d6fd0ce75485e9fa20d7e34ae23ce7")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
| # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "51da5cf23ce7f05ff8466193dbe76758c4668c69")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Fix which corrects that Linux founds needed python package. | # Find, include and link Python
# Find is already called in the top-level CMakeLists
macro (FIND_PYTHON)
if (UNIX)
find_package (PkgConfig)
pkg_search_module (python python)
if (NOT python_INCLUDE_DIRS AND NOT python_LIBRARIES)
message (FATAL_ERROR "Python not found by pkg-config")
en... | # Find, include and link Python
# Find is already called in the top-level CMakeLists
macro (FIND_PYTHON)
if (UNIX)
find_package(PythonLibs)
if (NOT PYTHON_LIBRARIES OR NOT_PYTHON_INCLUDE_PATH)
message (FATAL_ERROR "Python not found by pkg-config")
endif()
endif()
endmacro (FIND_PYT... |
Disable many weird libcurl features when bundling | macro(buildCurl)
include(ExternalProject)
set(SECURE_TRANSPORT_FLAGS "")
if(APPLE)
set(SECURE_TRANSPORT_FLAGS "--with-secure-transport")
endif()
ExternalProject_Add(BuildCurlBundled
SOURCE_DIR "${CMAKE_SOURCE_DIR}/deps/curl"
PREFIX "${CMAKE_BINARY_DIR}/curl"
BUILD_IN_SOURCE 1
CON... | macro(buildCurl)
include(ExternalProject)
set(SECURE_TRANSPORT_FLAGS "")
if(APPLE)
set(SECURE_TRANSPORT_FLAGS "--with-secure-transport")
endif()
ExternalProject_Add(BuildCurlBundled
SOURCE_DIR "${CMAKE_SOURCE_DIR}/deps/curl"
PREFIX "${CMAKE_BINARY_DIR}/curl"
BUILD_IN_SOURCE 1
CON... |
Install symlinks relative, not absolute |
# Creates a FROM->TO symlink during installation
function(INSTALL_SYMLINK FROM TO COMPONENT)
if (MSVC)
install(CODE
"get_filename_component(FROM_ABSOLUTE ${CMAKE_INSTALL_PREFIX}/${FROM}
ABSOLUTE)
file(TO_NATIVE_PATH \${FROM_ABSOLUTE} FROM_ABSOLUTE)
file(TO_NATIVE_PATH \${CMAKE_INSTAL... |
# Creates a FROM->TO symlink during installation
function(INSTALL_SYMLINK)
cmake_parse_arguments(THIS "" "" "FROM;TO;WORKING_DIRECTORY;COMPONENT" ${ARGN})
if(MSVC)
install(CODE
"message(\"mklink /j \${THIS_TO} \${THIS_FROM}\")
execute_process(COMMAND mklink /j \${THIS_TO} \${THIS_FROM}
... |
Add Video label for _fetchData tests | # Include the midas script
include(${Video-Core-Common_SOURCE_DIR}/MIDAS.cmake)
# Macro to add a midas test with the "Video" label
macro(add_video_test)
midas_add_test(${ARGV})
set_property(TEST ${ARGV1} PROPERTY LABELS Video)
endmacro(add_video_test)
| # Include the midas script
include(${Video-Core-Common_SOURCE_DIR}/MIDAS.cmake)
# Macro to add a midas test with the "Video" label
macro(add_video_test)
midas_add_test(${ARGV})
set_property(TEST ${ARGV1} PROPERTY LABELS Video)
set_property(TEST ${ARGV1}_fetchData PROPERTY LABELS Video)
endmacro(add_video_test)
|
Add support for http submit | # Dashboard is opened for submissions for a 24 hour period starting at
# the specified NIGHLY_START_TIME. Time is specified in 24 hour format.
SET (NIGHTLY_START_TIME "0:30:00 EDT")
# Dart server to submit results (used by client)
SET (DROP_SITE "public.kitware.com")
SET (DROP_LOCATION "/incoming")
SET (DROP_SITE_USER... | # Dashboard is opened for submissions for a 24 hour period starting at
# the specified NIGHLY_START_TIME. Time is specified in 24 hour format.
SET (NIGHTLY_START_TIME "0:30:00 EDT")
# Dart server to submit results (used by client)
IF(DROP_METHOD MATCHES http)
SET (DROP_SITE "public.kitware.com")
SET (DROP_LOCATION... |
Remove registration from default and release configuration | set(MITK_CONFIG_PACKAGES
ACVD
QT
BLUEBERRY
)
set(MITK_CONFIG_PLUGINS
org.mitk.gui.qt.datamanager
org.mitk.gui.qt.stdmultiwidgeteditor
org.mitk.gui.qt.dicom
org.mitk.gui.qt.imagenavigator
org.mitk.gui.qt.measurementtoolbox
org.mitk.gui.qt.properties
org.mitk.gui.qt.segmentation
org.mitk.gui.qt.vol... | set(MITK_CONFIG_PACKAGES
ACVD
QT
BLUEBERRY
)
set(MITK_CONFIG_PLUGINS
org.mitk.gui.qt.datamanager
org.mitk.gui.qt.stdmultiwidgeteditor
org.mitk.gui.qt.dicom
org.mitk.gui.qt.imagenavigator
org.mitk.gui.qt.measurementtoolbox
org.mitk.gui.qt.properties
org.mitk.gui.qt.segmentation
org.mitk.gui.qt.vol... |
Fix the error of 'Target names may not contain a slash'. | #/// @file TbagObjectProtobufPython.cmake
#/// @brief Google-protocol-buffers python object module.
#/// @author zer0
#/// @date 2016-06-01
if (NOT PROTOBUF_FOUND)
find_package (TbagProtobuf)
endif ()
if (PROTOBUF_FOUND)
tbag_protobuf__generate_py (__proto_srcs __proto_headers "${TBAG_OBJECT_CONST_SOURCE... | #/// @file TbagObjectProtobufPython.cmake
#/// @brief Google-protocol-buffers python object module.
#/// @author zer0
#/// @date 2016-06-01
if (NOT PROTOBUF_FOUND)
find_package (TbagProtobuf)
endif ()
if (PROTOBUF_FOUND)
tbag_protobuf__generate_py (__proto_srcs __proto_headers "${TBAG_OBJECT_CONST_SOURCE... |
Update smiley in hnc cmake module | # Copyright © 2012 Lénaïc Bagnères, hnc@singularity.fr
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | # Copyright © 2012 Lénaïc Bagnères, hnc@singularity.fr
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.