Instruction stringlengths 14 778 | input_code stringlengths 0 4.24k | output_code stringlengths 1 5.44k |
|---|---|---|
Add style testing to the Python tests | ###############################################################################
# Copyright Kitware Inc.
#
# 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/lic... | ###############################################################################
# Copyright Kitware Inc.
#
# 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/lic... |
Update FW: OV9282/9782 img orientation per camera, fix sync mode | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "078452d0da8f6518880a8a7be4472e8e1aa94585")
# "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 "d4c86b3b232f37796293cf0c995d61fa276b9837")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Configure ExternalData local object stores for ITK | get_filename_component(_ITKExternalData_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
include(${_ITKExternalData_DIR}/ExternalData.cmake)
set(ExternalData_URL_TEMPLATES "" CACHE STRING
"Additional URL templates for the ExternalData CMake script to look for testing data. E.g.
file:///var/bigharddrive/%(algo)/%(hash)")
mark_a... | get_filename_component(_ITKExternalData_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
include(${_ITKExternalData_DIR}/ExternalData.cmake)
set(ExternalData_OBJECT_STORES "" CACHE STRING
"Semicolon-separated list of local directories holding data objects in the layout %(algo)/%(hash).")
mark_as_advanced(ExternalData_OBJECT_S... |
Update FW: fix OV9782 bayer order | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "c2bf875327990b95a84aaa0e5d5fe05fa68e0592")
# "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 "faf65d29a955cf5b375826437468db0dc33d0fb5")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Update FW/mdk - Optimizing the confidence map alignment(CleanUp - remove global variables) | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "e21bfb96a88d244757aa113ebaf039fa28f3eec5")
# "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 "3aef66802d697e1f5b3c77830455379e46d9d426")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Allow using AR0234/OV5645 (but at degraded image quality) with other sensors enabled at the same time | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "b037f059199f80493e3e081aab4220a5222e218a")
# "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 "e3baa61d440ca6964dc74768140971aac5dc7fca")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Fix description of Plugins in installer. | IF (UNIX AND NOT APPLE)
SET(COMPONENT_PLUGINS "")
ELSEIF(APPLE)
SET(COMPONENT_PLUGINS "BALL${BALL_PACKAGE_VERSION_MAJOR}.${BALL_PACKAGE_VERSION_MINOR}-plugins")
ELSEIF(WIN32)
SET(COMPONENT_PLUGINS "")
ENDIF()
IF (COMPONENT_PLUGINS)
SET_COMPONENT_NAME(${COMPONENT_PLUGINS}
"SpaceNavigator plugin"
"Plugin adding ... | IF (UNIX AND NOT APPLE)
SET(COMPONENT_PLUGINS "")
ELSEIF(APPLE)
SET(COMPONENT_PLUGINS "BALL${BALL_PACKAGE_VERSION_MAJOR}.${BALL_PACKAGE_VERSION_MINOR}-plugins")
ELSEIF(WIN32)
SET(COMPONENT_PLUGINS "")
ENDIF()
IF (COMPONENT_PLUGINS)
SET_COMPONENT_NAME(${COMPONENT_PLUGINS}
"BALLView plugins"
"Plugins extending B... |
Fix incremental builds of the fuzzer | set(PBM_PREFIX protobuf_mutator)
set(PBM_PATH ${CMAKE_CURRENT_BINARY_DIR}/${PBM_PREFIX}/src/${PBM_PREFIX})
set(PBM_LIB_PATH ${PBM_PATH}/src/libprotobuf-mutator.a)
set(PBM_FUZZ_LIB_PATH ${PBM_PATH}/src/libfuzzer/libprotobuf-mutator-libfuzzer.a)
ExternalProject_Add(${PBM_PREFIX}
PREFIX ${PBM_PREFIX}
GIT_REPOSITORY h... | set(PBM_PREFIX protobuf_mutator)
set(PBM_PATH ${CMAKE_CURRENT_BINARY_DIR}/${PBM_PREFIX}/src/${PBM_PREFIX})
set(PBM_LIB_PATH ${PBM_PATH}-build/src/libprotobuf-mutator.a)
set(PBM_FUZZ_LIB_PATH ${PBM_PATH}-build/src/libfuzzer/libprotobuf-mutator-libfuzzer.a)
ExternalProject_Add(${PBM_PREFIX}
PREFIX ${PBM_PREFIX}
GIT_... |
Adjust the GST backend to the way phonon is installed now (see phonon-vlc's related commit) | # Find Phonon
# Copyright (c) 2010, Harald Sitter <sitter@kde.org>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
if (NOT PHONON_BUILDSYSTEM_DIR)
find_program(PC_EXECUTABLE NAMES pkg-config
PATH_SUFFIXES bin ... | # Find Phonon
# Copyright (c) 2010, Harald Sitter <sitter@kde.org>
# Copyright (c) 2011, Alexander Neundorf <neundorf@kde.org>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
find_package(Phonon NO_MODULE)
if(PHONON_FOUND)... |
Append dl library to LUA_LIBRARIES list | #.rst:
#
# Finds Lua
#
# Variables used::
#
# LUA_ROOT
#
# autocmake.yml configuration::
#
# docopt: "--lua=<LUA_ROOT> Specify the path to the Lua installation to use [default: '']."
# define: "'-DLUA_ROOT=\"{0}\"'.format(arguments['--lua'])"
option_with_default(LUA_ROOT "Specify the path to the Lua installation... | #.rst:
#
# Finds Lua
#
# Variables used::
#
# LUA_ROOT
#
# autocmake.yml configuration::
#
# docopt: "--lua=<LUA_ROOT> Specify the path to the Lua installation to use [default: '']."
# define: "'-DLUA_ROOT=\"{0}\"'.format(arguments['--lua'])"
option_with_default(LUA_ROOT "Specify the path to the Lua installation... |
Use VENDOR_SOURCES instead of SOURCES | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(SOURCES ${SOURCES}
${CMAKE_CURRENT_LIST_DIR}/src/plugin.h
${CMAKE_CURRENT_LIST_DIR}/src/core/device.h
${CMAKE_CURRENT_LIST_DIR}/src/core/units.h
${CMAKE_CURRENT_LIST_DIR}/src/plugin.cpp
${CMAKE_CURRENT_... | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(VENDOR_SOURCES ${VENDOR_SOURCES}
${CMAKE_CURRENT_LIST_DIR}/src/plugin.h
${CMAKE_CURRENT_LIST_DIR}/src/core/device.h
${CMAKE_CURRENT_LIST_DIR}/src/core/units.h
${CMAKE_CURRENT_LIST_DIR}/src/plugin.cpp
${... |
Put print_info in the ArrayFire_BINARY_DIR for all Operating systems | # Copyright (c) 2019, ArrayFire
# All rights reserved.
#
# This file is distributed under 3-clause BSD license.
# The complete license agreement can be obtained at:
# http://arrayfire.com/licenses/BSD-3-Clause
set(CTEST_CUSTOM_ERROR_POST_CONTEXT 50)
set(CTEST_CUSTOM_ERROR_PRE_CONTEXT 50)
set(CTEST_CUSTOM_POST_TEST ./t... | # Copyright (c) 2019, ArrayFire
# All rights reserved.
#
# This file is distributed under 3-clause BSD license.
# The complete license agreement can be obtained at:
# http://arrayfire.com/licenses/BSD-3-Clause
set(CTEST_CUSTOM_ERROR_POST_CONTEXT 50)
set(CTEST_CUSTOM_ERROR_PRE_CONTEXT 50)
if(WIN32)
set(CTEST_CUSTOM_P... |
Set the correct branch to use for DiapOTB | #
# Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES)
#
# This file is part of Orfeo Toolbox
#
# https://www.orfeo-toolbox.org/
#
# 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 Licens... | #
# Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES)
#
# This file is part of Orfeo Toolbox
#
# https://www.orfeo-toolbox.org/
#
# 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 Licens... |
Update IMU driver for CM4-POE | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "672d67f85d534f4864bd13e5bc5b81ceb7a63aed")
# "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 "8bed558dd19e25bc4b07f716c0c6a494050e0f81")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Update FW; do subpixel interpolation for extended mode too | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "13c36e636dd00e83b89a5cc1ee76049567657c4b")
# "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 "d616e5354de2d63602fdcbda434628ab071b56a3")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Change the way the self-contained build test is run. | set(CMAKE_GENERATOR "@CMAKE_GENERATOR@")
set(CONFIG_FLAGS @CONFIG_FLAGS@)
set(DIR StandaloneBuild)
execute_process(
COMMAND "${CMAKE_COMMAND}" -E echo "Clearing build..."
COMMAND "${CMAKE_COMMAND}" -E remove_directory "${DIR}"
COMMAND "${CMAKE_COMMAND}" -E make_directory "${DIR}")
execute_process(
COMM... | set(CMAKE_GENERATOR "@CMAKE_GENERATOR@")
set(CONFIG_FLAGS @CONFIG_FLAGS@)
set(DIR "${CMAKE_CURRENT_LIST_DIR}/StandaloneBuild")
macro(run)
execute_process(COMMAND "${CMAKE_COMMAND}" -E echo ${ARGN})
execute_process(
COMMAND ${ARGN}
WORKING_DIRECTORY "${DIR}"
RESULT_VARIABLE RES)
if(N... |
Fix CLANG_TIDY_RUNNER option to have string type | option(
ENABLE_CPPCHECK
"Enable static analysis with cppcheck"
OFF
)
option(
ENABLE_CLANG_TIDY
"Enable static analysis with clang-tidy"
OFF
)
option(
CLANG_TIDY_RUNNER
"Name of clang-tidy runner"
"run-clang-tidy-9"
)
if(ENABLE_CPPCHECK)
find_program(CPPCHECK cppcheck HINTS /usr/local/bin)
if(CPP... | option(
ENABLE_CPPCHECK
"Enable static analysis with cppcheck"
OFF
)
option(
ENABLE_CLANG_TIDY
"Enable static analysis with clang-tidy"
OFF
)
set(CLANG_TIDY_RUNNER
"run-clang-tidy-9"
CACHE STRING "Name of clang-tidy runner"
)
if(ENABLE_CPPCHECK)
find_program(CPPCHECK cppcheck HINTS /usr/local/bin... |
Update FW: openvino 2021.4.2 support | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "9bf030ae0575bcd87b362cd2804c1d8d5e37d251")
# "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 "b5960e1d9054fea932bd74bb200cda710362fdec")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Update device FW after merge with latest `gen2` | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "fd429d5a2bc978616b23dad38d36ddaaeecb0c05")
# "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 "2a09cdb35cbbaedaf91f505bc78c2b3129f93479")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Fix libyaml version in configure. | find_package(PkgConfig)
pkg_check_modules(PC_libyaml libyaml>=2.7)
find_path(libyaml_INCLUDE_DIR yaml.h
HINTS ${PC_libyaml_INCLUDEDIR} ${PC_libyaml_INCLUDE_DIRS})
find_library(libyaml_LIBRARY NAMES libyaml
HINTS ${PC_libyaml_LIBDIR} ${PC_libyaml_LIBRARY_DIRS} )
set(libyaml_LIBRARIES ${libyaml_... | find_package(PkgConfig)
pkg_check_modules(PC_libyaml libyaml>=0.1.6)
find_path(libyaml_INCLUDE_DIR yaml.h
HINTS ${PC_libyaml_INCLUDEDIR} ${PC_libyaml_INCLUDE_DIRS})
find_library(libyaml_LIBRARY NAMES yaml libyaml
HINTS ${PC_libyaml_LIBDIR} ${PC_libyaml_LIBRARY_DIRS} )
set(libyaml_LIBRARIES ${l... |
Add library dependency to superbuild | string(TOLOWER ${PROJECT_NAME} LOWER_PROJECT_NAME)
if(NOT ${PROJECT_NAME}_BUILD_SINGLE_LIBRARY)
add_library(${LOWER_PROJECT_NAME}${KIT}3D ${kit_SRCS3D})
set_target_properties(${LOWER_PROJECT_NAME}${KIT}3D PROPERTIES COMPILE_DEFINITIONS NDIM=3)
if(${PROJECT_NAME}_BUILD_2D_LIBRARY)
add_library(${LOWER_PROJECT... | string(TOLOWER ${PROJECT_NAME} LOWER_PROJECT_NAME)
set(KIT3D ${LOWER_PROJECT_NAME}${KIT}3D)
set(KIT2D ${LOWER_PROJECT_NAME}${KIT}2D)
if(NOT ${PROJECT_NAME}_BUILD_SINGLE_LIBRARY)
add_library(${KIT3D} ${kit_SRCS3D})
set_target_properties(${KIT3D} PROPERTIES COMPILE_DEFINITIONS NDIM=3)
add_dependencies(${KIT3D} I... |
Define protobuf files as GENERATED | #################################################
macro (ign_build_tests)
# Build all the tests
foreach(GTEST_SOURCE_file ${ARGN})
string(REGEX REPLACE ".cc" "" BINARY_NAME ${GTEST_SOURCE_file})
set(BINARY_NAME ${TEST_TYPE}_${BINARY_NAME})
if(USE_LOW_MEMORY_TESTS)
add_definitions(-DUSE_LOW_MEMORY_... | #################################################
macro (ign_build_tests)
# Build all the tests
foreach(GTEST_SOURCE_file ${ARGN})
string(REGEX REPLACE ".cc" "" BINARY_NAME ${GTEST_SOURCE_file})
set(BINARY_NAME ${TEST_TYPE}_${BINARY_NAME})
if(USE_LOW_MEMORY_TESTS)
add_definitions(-DUSE_LOW_MEMORY_... |
Remove verbose debug output in the normal case (shared libs on). |
# BUILD_SHARED_LIBS is a global cmake variable (usually defaults to on)
# that determines the build type of libraries:
# http://www.cmake.org/cmake/help/cmake-2-8-docs.html#variable:BUILD_SHARED_LIBS
# It defaults to shared.
#
# Our only current major use case for static libraries is
# via the mingw cross compiler,... |
# BUILD_SHARED_LIBS is a global cmake variable (usually defaults to on)
# that determines the build type of libraries:
# http://www.cmake.org/cmake/help/cmake-2-8-docs.html#variable:BUILD_SHARED_LIBS
# It defaults to shared.
#
# Our only current major use case for static libraries is
# via the mingw cross compiler,... |
Fix breakage on clang standalone build. | # This file provides information and services to the final user.
set(LLVM_PACKAGE_VERSION @PACKAGE_VERSION@)
set(LLVM_COMMON_DEPENDS @LLVM_COMMON_DEPENDS@)
set(llvm_libs @llvm_libs@)
set(llvm_lib_targets @llvm_lib_targets@)
set(LLVM_ALL_TARGETS @LLVM_ALL_TARGETS@)
set(LLVM_TARGETS_TO_BUILD @LLVM_TARGETS_TO_BUILD@... | # This file provides information and services to the final user.
set(LLVM_PACKAGE_VERSION @PACKAGE_VERSION@)
set(LLVM_COMMON_DEPENDS @LLVM_COMMON_DEPENDS@)
set_property( GLOBAL PROPERTY LLVM_LIBS "@llvm_libs@")
set(llvm_lib_targets @llvm_lib_targets@)
set(LLVM_ALL_TARGETS @LLVM_ALL_TARGETS@)
set(LLVM_TARGETS_TO_B... |
Add support for explicitly cross compiling. | # - Compile and run code to check for C++ features
#
# This functions compiles a source file under the `cmake` folder
# and adds the corresponding `HAVE_[FILENAME]` flag to the CMake
# environment
#
# cxx_feature_check(<FLAG> [<VARIANT>])
#
# - Example
#
# include(CXXFeatureCheck)
# cxx_feature_check(STD_REGEX)
# Requ... | # - Compile and run code to check for C++ features
#
# This functions compiles a source file under the `cmake` folder
# and adds the corresponding `HAVE_[FILENAME]` flag to the CMake
# environment
#
# cxx_feature_check(<FLAG> [<VARIANT>])
#
# - Example
#
# include(CXXFeatureCheck)
# cxx_feature_check(STD_REGEX)
# Requ... |
Exclude ITKGDCM module when system GDCM is ON. | set(DOCUMENTATION "This module contains the third party <a
href=\"http://sourceforge.net/projects/gdcm/\">GDCM</a> library.
Grassroots DiCoM is a C++ library for DICOM medical files.")
itk_module(ITKGDCM
DEPENDS
ITKZLIB
ITKExpat
ITKOpenJPEG
DESCRIPTION
"${DOCUMENTATION}"
)
| set(DOCUMENTATION "This module contains the third party <a
href=\"http://sourceforge.net/projects/gdcm/\">GDCM</a> library.
Grassroots DiCoM is a C++ library for DICOM medical files.")
if(ITK_USE_SYSTEM_GDCM)
itk_module(ITKGDCM
DESCRIPTION
"${DOCUMENTATION}"
EXCLUDE_FROM_ALL
)
else()
itk_module(I... |
Fix Ldap include path in cmake find module. | # - Find Openldap
# This module defines
# LDAP_INCLUDE_DIR, where to find LDAP headers
# LDAP_STATIC_LIBRARY, the LDAP library to use.
# LBER_STATIC_LIBRARY, a support library for LDAP.
# LDAP_FOUND, If false, do not try to use.
set(THIRDPARTY_LDAP thirdparty/openldap-$ENV{IMPALA_OPENLDAP_VERSION})
set (THIRDPART... | # - Find Openldap
# This module defines
# LDAP_INCLUDE_DIR, where to find LDAP headers
# LDAP_STATIC_LIBRARY, the LDAP library to use.
# LBER_STATIC_LIBRARY, a support library for LDAP.
# LDAP_FOUND, If false, do not try to use.
set(THIRDPARTY_LDAP thirdparty/openldap-$ENV{IMPALA_OPENLDAP_VERSION})
set (THIRDPART... |
Disable DESTDIR when moving the headers in the build area (fixes ROOT-6803) | # Arguments:
# PREFIX - Installation prefix
# COMPONENTS - Installation component
set(COMPONENTS ${COMPONENTS})
foreach(component ${COMPONENTS})
execute_process(
COMMAND ${CMAKE_COMMAND} -DCMAKE_INSTALL_PREFIX=${PREFIX}
-DCMAKE_INSTALL_COMPONENT=${component}
... | # Arguments:
# PREFIX - Installation prefix
# COMPONENTS - Installation component
set(COMPONENTS ${COMPONENTS})
set(ENV{DESTDIR} "")
foreach(component ${COMPONENTS})
execute_process(
COMMAND ${CMAKE_COMMAND} -DCMAKE_INSTALL_PREFIX=${PREFIX}
-DCMAKE_INSTALL_COMPONENT=${componen... |
Use `list(APPEND` instead of `set` | set(CMAKE_MODULE_PATH @CMAKE_MODULE_PATH@) # fetch top level CMAKE_MODULE_PATH
message(">:>:>:>:>:>:>:>:>:>:>:>:>:>:>:>:>: ${CMAKE_MODULE_PATH} <:<:<:<:<:<:<:<:<:<:<:<:<:<:<:<:<:<:<:<:<:<:<:")
# possibly import these via CMakeLists.txt: i.e., @is_ios@, etc
string(COMPARE EQUAL "${CMAKE_OSX_SYSROOT}" "iphoneos" is_ios... | list(APPEND CMAKE_MODULE_PATH @CMAKE_MODULE_PATH@) # fetch top level CMAKE_MODULE_PATH
message(">:>:>:>:>:>:>:>:>:>:>:>:>:>:>:>:>: ${CMAKE_MODULE_PATH} <:<:<:<:<:<:<:<:<:<:<:<:<:<:<:<:<:<:<:<:<:<:<:")
# possibly import these via CMakeLists.txt: i.e., @is_ios@, etc
string(COMPARE EQUAL "${CMAKE_OSX_SYSROOT}" "iphoneos... |
Migrate CDash drop site / submission URL | set(CTEST_PROJECT_NAME_SUPERBUILD "MITK-superbuild")
set(CTEST_PROJECT_NAME "MITK")
set(CTEST_NIGHTLY_START_TIME "23:00:00 EDT")
set(CTEST_DROP_METHOD "http")
set(CTEST_DROP_SITE "cdash.mitk.org")
set(CTEST_DROP_LOCATION "/submit.php?project=MITK")
set(CTEST_DROP_SITE_CDASH TRUE)
| set(CTEST_PROJECT_NAME_SUPERBUILD "MITK-superbuild")
set(CTEST_PROJECT_NAME "MITK")
set(CTEST_NIGHTLY_START_TIME "00:00:00 UTC")
set(CTEST_SUBMIT_URL "https://cdash.mitk.org/submit.php?project=MITK")
|
Update VTK Git clone URL | #---------------------------------------------------------------------------
# Get and build vtk
if(NOT VTK_TAG)
set(VTK_TAG "v8.2.0")
endif()
set(PYTHON_EXECUTABLE "${ITKPYTHON_EXECUTABLE}")
ExternalProject_Add(VTK
GIT_REPOSITORY "${git_protocol}://vtk.org/VTK.git"
GIT_TAG "${VTK_TAG}"
SOURCE_DIR VTK
BINA... | #---------------------------------------------------------------------------
# Get and build vtk
if(NOT VTK_TAG)
set(VTK_TAG "v8.2.0")
endif()
set(PYTHON_EXECUTABLE "${ITKPYTHON_EXECUTABLE}")
ExternalProject_Add(VTK
GIT_REPOSITORY "https://gitlab.kitware.com/VTK/VTK.git"
GIT_TAG "${VTK_TAG}"
SOURCE_DIR VTK
... |
Remove tabs and trailing whitespaces | # Copyright (c) 2015, Ruslan Baratov, David Hirvonen
# All rights reserved.
if(DEFINED HUNTER_CMAKE_PROJECTS_HALF_HUNTER_CMAKE_)
return()
else()
set(HUNTER_CMAKE_PROJECTS_HALF_HUNTER_CMAKE_ 1)
endif()
include(hunter_add_version)
include(hunter_download)
include(hunter_pick_scheme)
hunter_add_version(
PACKAGE... | # Copyright (c) 2015, Ruslan Baratov, David Hirvonen
# All rights reserved.
if(DEFINED HUNTER_CMAKE_PROJECTS_HALF_HUNTER_CMAKE_)
return()
else()
set(HUNTER_CMAKE_PROJECTS_HALF_HUNTER_CMAKE_ 1)
endif()
include(hunter_add_version)
include(hunter_download)
include(hunter_pick_scheme)
hunter_add_version(
PACKAGE... |
Add link to the IJ article in the module documentation. | set(DOCUMENTATION "This module implements Anisotropic Diffusion, using Lattice Basis Reduction.")
# itk_module() defines the module dependencies in ITKAnisotropicFastMarchingLBR;
# ITKAnisotropicFastMarchingLBR depends on ITKCommon;
# The testing module in ITKExternalTemplate depends on ITKTestKernel,
# and ITKMetaIO ... | set(DOCUMENTATION "This module implements Anisotropic Diffusion, using Lattice Basis Reduction.
Documentation can be found in the Insight Journal article, 'Anisotropic
Diffusion in ITK', by Mirebeau J., Fehrenbach J., Risser L., Tobji S.
http://insight-journal.org/browse/publication/953
http://hdl.handle.net/10380/35... |
Add lots of warning switches. | SET (CMAKE_C_COMPILER "clang")
SET (CMAKE_CXX_COMPILER "clang++")
SET(CMAKE_C_FLAGS "-pipe -Wall -Wextra -pedantic -std=c99" CACHE STRING "" FORCE)
SET(CMAKE_C_FLAGS_RELEASE "-O2 -fomit-frame-pointer" CACHE STRING "" FORCE)
SET(CMAKE_C_FLAGS_DEBUG "-O0 -ggdb" CACHE STRING "" FORCE)
IF(NOT CMAKE_BUILD_TYPE )
SET(CM... | SET (CMAKE_C_COMPILER "clang")
SET (CMAKE_CXX_COMPILER "clang++")
SET(CMAKE_C_FLAGS "-pipe -Wall -Wextra -Wfloat-equal -Wformat=2 -Wimplicit-atomic-properties -Wmissing-declarations -Wmissing-prototypes -Woverlength-strings -Wshadow -Wstrict-selector-match -Wundeclared-selector -Wunreachable-code -pedantic -std=c99" C... |
Update SCIFIO to latest revision (2017.01.17) | itk_fetch_module(SCIFIO
"SCIFIO (Bioformats) ImageIO plugin for ITK"
GIT_REPOSITORY ${git_protocol}://github.com/scifio/scifio-imageio.git
GIT_TAG 233880a49125afdd980bb8d7ca511cb08aab8dd8
)
| itk_fetch_module(SCIFIO
"SCIFIO (Bioformats) ImageIO plugin for ITK"
GIT_REPOSITORY ${git_protocol}://github.com/scifio/scifio-imageio.git
GIT_TAG 4391143cbf7696dad5c8a15d52dbc46daafe7aaa
)
|
Fix for windows build: cmake doesn't like backslashes :-( | MACRO(SIGN_TARGET target)
IF(WITH_SIGNCODE)
IF(WIN32)
SET(target_file $<TARGET_FILE:${target}>)
IF(EXISTS "C:\tools\sign.bat")
ADD_CUSTOM_COMMAND(TARGET ${target} COMMAND c:\tools\sign.bat ${target_file})
ELSEIF()
ADD_CUSTOM_COMMAND(TARGET ${target} COMMAND signtool ARGS sign ${S... | MACRO(SIGN_TARGET target)
IF(WITH_SIGNCODE)
IF(WIN32)
SET(target_file $<TARGET_FILE:${target}>)
IF(EXISTS "/tools/sign.bat")
ADD_CUSTOM_COMMAND(TARGET ${target} COMMAND /tools/sign.bat ARGS ${target_file})
ELSEIF()
ADD_CUSTOM_COMMAND(TARGET ${target} COMMAND signtool ARGS sign ${... |
Install of export file bis | MACRO (MYPACKAGEEXPORT)
IF (MYPACKAGE_DEBUG)
MESSAGE (STATUS "[${PROJECT_NAME}-EXPORT-DEBUG] Creating target ${PROJECT_NAME}Export with export file ${INCLUDE_OUTPUT_PATH}/${PROJECT_NAME}/export.h")
ENDIF ()
INCLUDE (GenerateExportHeader)
GENERATE_EXPORT_HEADER(${PROJECT_NAME}
BASE_NAME ${PROJECT... | MACRO (MYPACKAGEEXPORT)
IF (MYPACKAGE_DEBUG)
MESSAGE (STATUS "[${PROJECT_NAME}-EXPORT-DEBUG] Creating target ${PROJECT_NAME}Export with export file ${INCLUDE_OUTPUT_PATH}/${PROJECT_NAME}/export.h")
ENDIF ()
INCLUDE (GenerateExportHeader)
GENERATE_EXPORT_HEADER(${PROJECT_NAME}
BASE_NAME ${PROJECT... |
Update FW: allow `StereoDepth` to work with `ColorCamera`s, without having to call `StereoDepth::setInputResolution` | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "e3345e17ac4cc49677480452154985c2682be334")
# "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 "5b4675066b28847d2ffc59f9117263df3fa55fcb")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Use format_code script in cmake 'format' target | include_guard()
add_custom_target(
format
COMMAND find src tests -type f '\(' -iname *.h -o -iname *.hpp -o -iname *.c -o -iname *.cpp '\)' | xargs clang-format -style=file -i
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
)
| include_guard()
set(FORMAT_SCRIPT ${CMAKE_SOURCE_DIR}/scripts/format_code)
add_custom_target(
format
COMMAND ${FORMAT_SCRIPT} "${CMAKE_SOURCE_DIR}/src" "${CMAKE_SOURCE_DIR}/tests"
VERBATIM
)
|
Make Boost libraries use RPATH | message(STATUS "Fixing relative dependencies")
file(GLOB boost_dylibs ./libboost*.dylib)
foreach(in ${boost_dylibs})
foreach(other_boost_dylib ${boost_dylibs})
get_filename_component(from ${other_boost_dylib} NAME)
set(to "@rpath/${from}")
execute_process(COMMAND install_name_tool -change ${from} ${to} ... | message(STATUS "Make Boost libraries use RPATH")
file(GLOB boost_dylibs ./libboost*.dylib)
foreach(boost_dylib ${boost_dylibs})
get_filename_component(boost_dylib ${boost_dylib} NAME)
execute_process(COMMAND install_name_tool -id @rpath/${boost_dylib} ${boost_dylib})
endforeach()
|
Update FW: add OV9282 Strobe output | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "58798a142f85ba55d549444d1d27563532acafb1")
# "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 "7abb047817f58f66395bde1036a56852cc0f8b78")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Update FW with subpixel fix | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "71bfc84bfc06df57a826b0924b2ec0d388565b09")
# "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 "f1e86083efeaf88f9dc6342e51b88cc3eb41a14b")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Add missing ITKIOImageBase dependency for ITKTransformMINC. | set(DOCUMENTATION "This module contains the classes for the input and output
of itkTransform object in MINC format (.xfm).")
itk_module(ITKIOTransformMINC
DEPENDS
ITKIOTransformBase
ITKMINC
PRIVATE_DEPENDS
ITKIOMINC
TEST_DEPENDS
ITKTestKernel
ITKDisplacementField
DESCRIPTION
"${DOCUMENT... | set(DOCUMENTATION "This module contains the classes for the input and output
of itkTransform object in MINC format (.xfm).")
itk_module(ITKIOTransformMINC
DEPENDS
ITKIOTransformBase
ITKMINC
COMPILE_DEPENDS
ITKIOImageBase
PRIVATE_DEPENDS
ITKIOMINC
TEST_DEPENDS
ITKTestKernel
ITKDisplaceme... |
Change env var from ROOTFS to SYSROOT | include(CMakeForceCompiler)
set (CROSSCOMPILE_TARGET_NAME "IMX")
set (CMAKE_SYSTEM_NAME "Linux")
set (CMAKE_SYSROOT ${ROOTFS_PATH})
set (PLAFTFORM_MODULES "IMX_MODULES")
set (CROSS_COMPILE "ON")
# Setup the cross compiling tools
set (TOOLCHAIN_BIN "${TOOLCHAIN_PATH}/bin")
set (CMAKE_C_COMPILER ${TOOLCHAIN_BIN}/arm-l... | include(CMakeForceCompiler)
set (CROSSCOMPILE_TARGET_NAME "IMX")
set (CMAKE_SYSTEM_NAME "Linux")
set (CMAKE_SYSROOT ${SYSROOT_PATH})
set (PLAFTFORM_MODULES "IMX_MODULES")
set (CROSS_COMPILE "ON")
# Setup the cross compiling tools
set (TOOLCHAIN_BIN "${TOOLCHAIN_PATH}/bin")
set (CMAKE_C_COMPILER ${TOOLCHAIN_BIN}/arm-... |
Enable creation of the compile command database by default. | # Always include srcdir and builddir in include path
# This saves typing ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY} in
# about every subdir
# since cmake 2.4.0
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Put the include dirs which are in the source or build tree
# before all other include dirs, so the headers in the ... | # Always include srcdir and builddir in include path
# This saves typing ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY} in
# about every subdir
# since cmake 2.4.0
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Put the include dirs which are in the source or build tree
# before all other include dirs, so the headers in the ... |
Change cl2hpp external project url to KhronosGroup Repository | INCLUDE(ExternalProject)
SET(prefix ${CMAKE_BINARY_DIR}/third_party/cl2hpp)
ExternalProject_Add(
cl2hpp-ext
GIT_REPOSITORY https://github.com/arrayfire/OpenCL-CLHPP.git
GIT_TAG install_targets
PREFIX "${prefix}"
INSTALL_DIR "${prefix}/package"
UPDATE_COMMAND ""
CONFIGURE_COMMAND ${CMAKE_CO... | INCLUDE(ExternalProject)
SET(prefix ${CMAKE_BINARY_DIR}/third_party/cl2hpp)
ExternalProject_Add(
cl2hpp-ext
GIT_REPOSITORY https://github.com/KhronosGroup/OpenCL-CLHPP.git
GIT_TAG 75bb7d0d8b2ffc6aac0a3dcaa22f6622cab81f7c
PREFIX "${prefix}"
INSTALL_DIR "${prefix}/package"
UPDATE_COMMAND ""
... |
Move c++11 check to cmake 2.8 | INCLUDE(CheckCXXSourceCompiles)
set(CMAKE_REQUIRED_DEFINITIONS ${CMAKE_CXX11_STANDARD_COMPILE_OPTION})
CHECK_CXX_SOURCE_COMPILES(
"#include <cstdint>
template <typename T> void Foo();
template<> void Foo<int32_t>() {}
template<> void Foo<int64_t>() {}
int main(int argc, char** argv) {
Foo<lo... | INCLUDE(CheckCXXSourceCompiles)
set(CMAKE_REQUIRED_FLAGS "-std=c++11")
CHECK_CXX_SOURCE_COMPILES(
"#include <cstdint>
template <typename T> void Foo();
template<> void Foo<int32_t>() {}
template<> void Foo<int64_t>() {}
int main(int argc, char** argv) {
Foo<long>();
return 0;
}" C... |
Update FW: improve image resize mechanism (less cropping), for ColorCamera `preview` output and ImageManip setResize | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "37a2c71ec7b87b24fba7d6c018c701acf662c077")
# "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 "4549a0e785f7e3a5d79481c05112e5f78ceb5e4e")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Improve support for `brew install openssl` on OSX | include(CheckLibraryExists)
include(CheckStructHasMember)
# Check which versions of TLS the OpenSSL/ssl library supports
check_library_exists(${OPENSSL_SSL_LIBRARY} "TLSv1_1_method" "" HAVE_TLS_V1_1)
check_library_exists(${OPENSSL_SSL_LIBRARY} "TLSv1_2_method" "" HAVE_TLS_V1_2)
check_struct_has_member ("SSL_CIPHER" a... | include(CheckLibraryExists)
include(CheckStructHasMember)
set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIR})
# Check which versions of TLS the OpenSSL/ssl library supports
check_library_exists(${OPENSSL_SSL_LIBRARY} "TLSv1_1_method" "" HAVE_TLS_V1_1)
check_library_exists(${OPENSSL_SSL_LIBRARY} "TLSv1_2_method" "" HA... |
Optimize QT4_GENERATE_MOCS macro getting moc flags only when needed |
# QT4_GENERATE_MOCS(inputfile1 [inputfile2 ...])
macro(QT4_GENERATE_MOCS)
foreach(file ${ARGN})
set(moc_file moc_${file})
QT4_GENERATE_MOC(${file} ${moc_file})
get_filename_component(source_name ${file} NAME_WE)
get_filename_component(source_ext ${file} EXT)
if(${source_ext} MATCHES "\\.[hH]")
... |
# QT4_GENERATE_MOCS(inputfile1 [inputfile2 ...])
macro(QT4_GENERATE_MOCS)
QT4_GET_MOC_FLAGS(_moc_flags)
foreach(file ${ARGN})
set(moc_file moc_${file})
get_filename_component(source_name ${file} NAME_WE)
get_filename_component(source_ext ${file} EXT)
if(${source_ext} MATCHES "\\.[hH]")
if(... |
Fix the compile error: include could not find load file TbagProjectSQlite3. | ## Tbag CMake subproject.
tbag_modules__include_project (Default)
# Extension.
tbag_modules__include_project (GTest)
tbag_modules__include_project (UV)
tbag_modules__include_project (TinyXML2)
tbag_modules__include_project (Spdlog)
tbag_modules__include_project (SQlite3)
#tbag_modules__include_project (Preview)
| ## Tbag CMake subproject.
tbag_modules__include_project (Default)
# Extension.
tbag_modules__include_project (GTest)
tbag_modules__include_project (UV)
tbag_modules__include_project (TinyXML2)
tbag_modules__include_project (Spdlog)
tbag_modules__include_project (SQLite3)
#tbag_modules__include_project (Preview)
|
Make ITKTestKernel a test dependency | set(DOCUMENTATION "The modules provides filters may be particularly useful for
ultrasound image reconstruction and analysis.")
set(_fft_depends ITKFFT)
if(ITKUltrasound_USE_clFFT)
list(APPEND _fft_depends ITKGPUCommon)
endif()
itk_module(Ultrasound
DEPENDS
ITKAnisotropicSmoothing
ITKImageCompose
ITKIm... | set(DOCUMENTATION "The modules provides filters may be particularly useful for
ultrasound image reconstruction and analysis.")
set(_fft_depends ITKFFT)
if(ITKUltrasound_USE_clFFT)
list(APPEND _fft_depends ITKGPUCommon)
endif()
itk_module(Ultrasound
DEPENDS
ITKAnisotropicSmoothing
ITKImageCompose
ITKIm... |
Add carriage return at the end of the file. | # this one is important
SET (CMAKE_SYSTEM_NAME Linux)
# this one not so much
SET (CMAKE_SYSTEM_VERSION 1)
# Check for Raspberry Pi Tools and bail out if they don't have it
if(DEFINED ENV{PI_TOOLS_HOME} AND DEFINED ENV{PI_TOOL})
message("Using Raspberry Pi Tools found in $ENV{PI_TOOLS_HOME}/$ENV{PI_TOOL}")
else()
m... | # this one is important
SET (CMAKE_SYSTEM_NAME Linux)
# this one not so much
SET (CMAKE_SYSTEM_VERSION 1)
# Check for Raspberry Pi Tools and bail out if they don't have it
if(DEFINED ENV{PI_TOOLS_HOME} AND DEFINED ENV{PI_TOOL})
message("Using Raspberry Pi Tools found in $ENV{PI_TOOLS_HOME}/$ENV{PI_TOOL}")
else()
m... |
Add more compiler warnings as errors | # Copyright 2020 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
include("${ZEPHYR_BASE}/cmake/compiler/clang/compiler_flags.cmake")
# Disable -fno-freestanding.
set_compiler_property(PROPERTY hosted)
check_set_compil... | # Copyright 2020 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
include("${ZEPHYR_BASE}/cmake/compiler/clang/compiler_flags.cmake")
# Disable -fno-freestanding.
set_compiler_property(PROPERTY hosted)
check_set_compil... |
Patch in order to compile when no there is no .svn. |
SET(LIBMV_VERSION_MAJOR 0)
SET(LIBMV_VERSION_MINOR 0)
# The standard GNU version numbering scheme is major.minor.revision
FIND_PACKAGE(Subversion)
IF(Subversion_FOUND)
Subversion_WC_INFO(${CMAKE_CURRENT_SOURCE_DIR} ER)
SET(SUBVERSION_REVISION ${ER_WC_REVISION})
SET(LIBMV_VERSION_PATCH ${SUBVERSION_REVISION})
EL... |
SET(LIBMV_VERSION_MAJOR 0)
SET(LIBMV_VERSION_MINOR 0)
SET(LIBMV_VERSION_PATCH 9) #or the svn revision
# The standard GNU version numbering scheme is major.minor.revision
IF (EXISTS ${LIBMV_SOURCE_DIR}/.svn)
# Probably a SVN workspace, determine revision level
FIND_PACKAGE(Subversion)
IF(Subversion_FOUND)
S... |
Make SmartVolumeMapper available for VolumeAMR | vtk_module(vtkRenderingVolumeAMR
BACKEND
OpenGL
DEPENDS
vtkParallelCore
vtkRenderingVolume
vtkFiltersAMR
KIT
vtkParallel
)
| vtk_module(vtkRenderingVolumeAMR
BACKEND
OpenGL
DEPENDS
vtkParallelCore
vtkRenderingVolumeOpenGL
vtkFiltersAMR
KIT
vtkParallel
)
|
Exclude MICROBIRD_TRACKER and US_TELEMED_SDK from build configuration "All". | set(MITK_CONFIG_PACKAGES )
set(_package_excludes
Python
OpenCL
SYSTEM_Boost
Boost_LIBRARIES
SOFA_PLUGINS
SOFA_PLUGINS_DIR
SUPERBUILD
KWSTYLE
MICRON_TRACKER
OPTITRACK_TRACKER
TOF_KINECT
TOF_KINECTV2
TOF_MESASR4000
TOF_PMDCAMBOARD
TOF_PMDCAMCUBE
)
get_cmake_property(_cache_vars CACHE_VARI... | set(MITK_CONFIG_PACKAGES )
set(_package_excludes
Python
OpenCL
SYSTEM_Boost
Boost_LIBRARIES
SOFA_PLUGINS
SOFA_PLUGINS_DIR
SUPERBUILD
KWSTYLE
MICROBIRD_TRACKER
MICRON_TRACKER
OPTITRACK_TRACKER
TOF_KINECT
TOF_KINECTV2
TOF_MESASR4000
TOF_PMDCAMBOARD
TOF_PMDCAMCUBE
US_TELEMED_SDK
)
get_... |
Add an extra hint for assimp. | ## ---------------------------------------------------------------------
##
## Copyright (C) 2017 by the deal.II authors
##
## This file is part of the deal.II library.
##
## The deal.II library is free software; you can use it, redistribute
## it, and/or modify it under the terms of the GNU Lesser General
## Public Li... | ## ---------------------------------------------------------------------
##
## Copyright (C) 2017 by the deal.II authors
##
## This file is part of the deal.II library.
##
## The deal.II library is free software; you can use it, redistribute
## it, and/or modify it under the terms of the GNU Lesser General
## Public Li... |
Patch ITK to fix LandmarkBasedTransformInitializer | # Called by ITK.cmake (ExternalProject_Add) as a patch for ITK to work witk GDCM 2.0.18
# Updates library dependencies
# read whole file
file(STRINGS CMakeLists.txt sourceCode NEWLINE_CONSUME)
# substitute dependency to gdcmMSFF by dependencies for more libraries
string(REGEX REPLACE "gdcmMSFF" "gdcmMSFF gdcmDICT gdc... | # Called by ITK.cmake (ExternalProject_Add) as a patch for ITK to work witk GDCM 2.0.18
# First patch
# updates library dependencies
# read whole file CMakeLists.txt
file(STRINGS CMakeLists.txt sourceCode NEWLINE_CONSUME)
# substitute dependency to gdcmMSFF by dependencies for more libraries
string(REGEX REPLACE "gdc... |
Add dl to libraries for linux | set(DUKTAPEDIR ${CMAKE_CURRENT_LIST_DIR}/lib/duktape)
include_directories(
${DUKTAPEDIR}/src
)
add_library(duktape STATIC ${DUKTAPEDIR}/src/duktape.c)
if("${CMAKE_SYSTEM_NAME}" MATCHES "Linux")
target_link_libraries(duktape
m
)
endif()
| set(DUKTAPEDIR ${CMAKE_CURRENT_LIST_DIR}/lib/duktape)
include_directories(
${DUKTAPEDIR}/src
)
add_library(duktape STATIC ${DUKTAPEDIR}/src/duktape.c)
if("${CMAKE_SYSTEM_NAME}" MATCHES "Linux")
target_link_libraries(duktape
m dl
)
endif()
|
Update BridgeNumPy to most recent version (2017.02.24) | # Contact: Matt McCormick <matt.mccormick@kitware.com>
itk_fetch_module(BridgeNumPy
"This module contains wrapper code to convert ITK Image's to
NumPy array's and back. For example:
import itk
ImageType = itk.Image[itk.F, 2]
image = ImageType.New()
array = itk.PyBuffer[ImageType].GetArrayFromImage... | # Contact: Matt McCormick <matt.mccormick@kitware.com>
itk_fetch_module(BridgeNumPy
"This module contains wrapper code to convert ITK Image's to
NumPy array's and back. For example:
import itk
ImageType = itk.Image[itk.F, 2]
image = ImageType.New()
array = itk.PyBuffer[ImageType].GetArrayFromImage... |
Fix submitting the build notes so that it works from travis, doesn't throw an error on buildbot, and only submits once. | ## This file should be placed in the root directory of your project.
## Then modify the CMakeLists.txt file in the root directory of your
## project to incorporate the testing dashboard.
##
## # The following are required to submit to the CDash dashboard:
## ENABLE_TESTING()
## INCLUDE(CTest)
set(CTEST_PROJECT_NAM... | ## This file should be placed in the root directory of your project.
## Then modify the CMakeLists.txt file in the root directory of your
## project to incorporate the testing dashboard.
##
## # The following are required to submit to the CDash dashboard:
## ENABLE_TESTING()
## INCLUDE(CTest)
set(CTEST_PROJECT_NAM... |
Update Google Benchmark in CMake builds to 1.5.0 | CMAKE_MINIMUM_REQUIRED(VERSION 2.8.2)
PROJECT(googlebenchmark-download NONE)
INCLUDE(ExternalProject)
ExternalProject_Add(googlebenchmark
URL https://github.com/google/benchmark/archive/v1.2.0.zip
URL_HASH SHA256=cc463b28cb3701a35c0855fbcefb75b29068443f1952b64dd5f4f669272e95ea
SOURCE_DIR "${CONFU_DEPENDENCIES_SOUR... | CMAKE_MINIMUM_REQUIRED(VERSION 2.8.2)
PROJECT(googlebenchmark-download NONE)
INCLUDE(ExternalProject)
ExternalProject_Add(googlebenchmark
URL https://github.com/google/benchmark/archive/v1.5.0.zip
URL_HASH SHA256=2d22dd3758afee43842bb504af1a8385cccb3ee1f164824e4837c1c1b04d92a0
SOURCE_DIR "${CONFU_DEPENDENCIES_SOUR... |
Fix CMOCKA_LIBRARIES name in documentation | # FindCMocka
# ----------
# Tries to find CMocka
#
# Variables:
# CMOCKA_ROOT_DIR - Set this variable to the root installation of CMocka
#
# Read-Only variables:
# CMOCKA_FOUND - system has CMocka
# CMOCKA_INCLUDE_DIRS - the CMocka include directories
# CMOCKA_INCLUDE_DIR - for backwards compatiblity, the same as C... | # FindCMocka
# ----------
# Tries to find CMocka
#
# Variables:
# CMOCKA_ROOT_DIR - Set this variable to the root installation of CMocka
#
# Read-Only variables:
# CMOCKA_FOUND - system has CMocka
# CMOCKA_INCLUDE_DIRS - the CMocka include directories
# CMOCKA_INCLUDE_DIR - for backwards compatiblity, the same as C... |
Replace cmake check for printf with a check for fopen. | include(CheckLibraryExists)
include(CheckCXXCompilerFlag)
# Check compiler flags
check_cxx_compiler_flag(/WX LIBCXX_HAS_WX_FLAG)
check_cxx_compiler_flag(/WX- LIBCXX_HAS_NO_WX_FLAG)
check_cxx_compiler_flag(/EHsc LIBCXX_HAS_EHSC_FLAG)
check_cxx_compiler_flag(/EHs... | include(CheckLibraryExists)
include(CheckCXXCompilerFlag)
# Check compiler flags
check_cxx_compiler_flag(/WX LIBCXX_HAS_WX_FLAG)
check_cxx_compiler_flag(/WX- LIBCXX_HAS_NO_WX_FLAG)
check_cxx_compiler_flag(/EHsc LIBCXX_HAS_EHSC_FLAG)
check_cxx_compiler_flag(/EHs... |
Move build_info out of data directory | include(CheckCXXSourceCompiles)
function(check_compiles name pkgname ucpkgname includes include_dir link_libs result)
#message(STATUS "Trying to compile ${pkgname} searching in ${include_dir} ${link_libs}")
set(CMAKE_REQUIRED_LIBRARIES ${link_libs})
set(CMAKE_REQUIRED_INCLUDES ${include_dir})
set(mybody "${incl... | include(CheckCXXSourceCompiles)
function(check_compiles name pkgname ucpkgname includes include_dir link_libs result)
#message(STATUS "Trying to compile ${pkgname} searching in ${include_dir} ${link_libs}")
set(CMAKE_REQUIRED_LIBRARIES ${link_libs})
set(CMAKE_REQUIRED_INCLUDES ${include_dir})
set(mybody "${incl... |
Include targets from all configurations | include(CMakeFindDependencyMacro)
find_dependency(
Ogg
Opus
)
# TODO: include(...opusfileTargets-debug.cmake)?
include("${CMAKE_CURRENT_LIST_DIR}/opusfileTargets.cmake")
| include(CMakeFindDependencyMacro)
find_dependency(
Ogg
Opus
)
include("${CMAKE_CURRENT_LIST_DIR}/opusfileTargets.cmake")
# Load information for each installed configuration.
get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
file(GLOB CONFIG_FILES "${_DIR}/opusfileTargets-*.cmake")
foreach(f ${CONFIG_... |
Add build type in package name |
set(CPACK_GENERATOR "ZIP")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "sfeMovie SDK")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/License.txt")
set(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/ReadMe.txt")
set(CPACK_PACKAGE_VERSION_MAJOR "2")
set(CPACK_PACKAGE_VERSION_MINOR "0")
set(CPACK_PACKAGE_VERSION_PAT... |
set(CPACK_GENERATOR "ZIP")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "sfeMovie SDK")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/License.txt")
set(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/ReadMe.txt")
set(CPACK_PACKAGE_VERSION_MAJOR "2")
set(CPACK_PACKAGE_VERSION_MINOR "0")
set(CPACK_PACKAGE_VERSION_PAT... |
Set HUNTER_DISABLE_SHARED_LIBS to YES for address sanitizer | # Copyright (c) 2014, Ruslan Baratov
# All rights reserved.
if(DEFINED POLLY_SANITIZE_ADDRESS_CMAKE_)
return()
else()
set(POLLY_SANITIZE_ADDRESS_CMAKE_ 1)
endif()
set(
POLLY_TOOLCHAIN_NAME
"Clang address sanitizer / c++11 support"
)
set(POLLY_TOOLCHAIN_TAG "sanitize_address")
include("${CMAKE_CURRENT_LIS... | # Copyright (c) 2014, Ruslan Baratov
# All rights reserved.
if(DEFINED POLLY_SANITIZE_ADDRESS_CMAKE_)
return()
else()
set(POLLY_SANITIZE_ADDRESS_CMAKE_ 1)
endif()
set(
POLLY_TOOLCHAIN_NAME
"Clang address sanitizer / c++11 support"
)
set(POLLY_TOOLCHAIN_TAG "sanitize_address")
include("${CMAKE_CURRENT_LIS... |
Add possible Depthsense SDK FindPackage location. | # Try to find the DepthSense SDK For SoftKinetic Cameras
#
# DepthSense_INCLUDE_DIRS
# DepthSense_LIBRARIES
# DepthSense_FOUND
FIND_PATH( DepthSense_INCLUDE_DIR DepthSense.hxx
PATHS
"$ENV{PROGRAMFILES}/SoftKinetic/DepthSenseSDK/include"
/usr/include
/usr/local/include
/opt/local/in... | # Try to find the DepthSense SDK For SoftKinetic Cameras
#
# DepthSense_INCLUDE_DIRS
# DepthSense_LIBRARIES
# DepthSense_FOUND
FIND_PATH( DepthSense_INCLUDE_DIR DepthSense.hxx
PATHS
"$ENV{PROGRAMFILES}/SoftKinetic/DepthSenseSDK/include"
"$ENV{PROGRAMFILES}/Meta/DepthSenseSDK/include"
/usr... |
Change superbuild version to official shark repo on github | if(NOT __EXTERNAL_SHARK__)
set(__EXTERNAL_SHARK__ 1)
if(USE_SYSTEM_SHARK)
message(STATUS " Using SHARK system version")
else()
SETUP_SUPERBUILD(PROJECT SHARK)
cmake_minimum_required(VERSION 3.1)
message(STATUS " Using SHARK SuperBuild version")
# declare dependencies
ADDTO_DEPENDENCIES_IF_NOT_SYSTEM(SHA... | if(NOT __EXTERNAL_SHARK__)
set(__EXTERNAL_SHARK__ 1)
if(USE_SYSTEM_SHARK)
message(STATUS " Using SHARK system version")
else()
SETUP_SUPERBUILD(PROJECT SHARK)
cmake_minimum_required(VERSION 3.1)
message(STATUS " Using SHARK SuperBuild version")
# declare dependencies
ADDTO_DEPENDENCIES_IF_NOT_SYSTEM(SHA... |
Update CTest configuration for cdash.das-system-networks.de | set(CTEST_PROJECT_NAME "dsnutil")
set(CTEST_NIGHTLY_START_TIME "01:00:00 UTC")
if(NOT DEFINED CTEST_DROP_METHOD)
set(CTEST_DROP_METHOD "http")
endif(NOT DEFINED CTEST_DROP_METHOD)
if(CTEST_DROP_METHOD STREQUAL "http")
set(CTEST_DROP_SITE "harpy.png.das-system.vpn")
set(CTEST_DROP_LOCATION "/cdash/submit.php?pro... | set(CTEST_PROJECT_NAME "dsnutil")
set(CTEST_NIGHTLY_START_TIME "01:00:00 UTC")
if(NOT DEFINED CTEST_DROP_METHOD)
set(CTEST_DROP_METHOD "http")
endif(NOT DEFINED CTEST_DROP_METHOD)
if(CTEST_DROP_METHOD STREQUAL "http")
set(CTEST_DROP_SITE "cdash.das-system-networks.de")
set(CTEST_DROP_LOCATION "/submit.php?proje... |
Handle filename changed in Wireshark source tree | #
# Try to find the wireshark library and its includes
#
# This snippet sets the following variables:
# WIRESHARK_FOUND True if wireshark library got found
# WIRESHARK_INCLUDE_DIRS Location of the wireshark headers
# WIRESHARK_LIBRARIES List of libraries to use wireshark
#
# Copyright (c) ... | #
# Try to find the wireshark library and its includes
#
# This snippet sets the following variables:
# WIRESHARK_FOUND True if wireshark library got found
# WIRESHARK_INCLUDE_DIRS Location of the wireshark headers
# WIRESHARK_LIBRARIES List of libraries to use wireshark
#
# Copyright (c) ... |
Use llvm and clang of cling. | # This file allows users to call find_package(Cling) and pick up our targets.
# Cling doesn't have any CMake configuration settings yet because it mostly
# uses LLVM's. When it does, we should move this file to ClingConfig.cmake.in
# and call configure_file() on it.
find_package(LLVM REQUIRED CONFIG)
# Provide all o... | # This file allows users to call find_package(Cling) and pick up our targets.
# Cling doesn't have any CMake configuration settings yet because it mostly
# uses LLVM's. When it does, we should move this file to ClingConfig.cmake.in
# and call configure_file() on it.
# Don't just use any llvm / clang: cling needs its ... |
Use whole numbers for dynamic libraries versioning | # Build type configuration
if (NOT CMAKE_BUILD_TYPE)
message(STATUS "No build type selected, default to Release.")
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." FORCE)
endif()
# General settings
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINA... | # Build type configuration
if (NOT CMAKE_BUILD_TYPE)
message(STATUS "No build type selected, default to Release.")
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." FORCE)
endif()
# General settings
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINA... |
Add path suffixes for metis | # Find Metis library
if (NOT (METIS_INCLUDE_DIRS AND METIS_LIBRARIES))
find_path(METIS_INCLUDE_DIRS
NAMES metis.h parmetis.h
PATHS $ENV{METIS_ROOT}
PATH_SUFFIXES metis
)
find_library(METIS_LIBRARY metis PATHS $ENV{METIS_ROOT})
find_library(PARMETIS_LIBRARY parmetis PA... | # Find Metis library
if (NOT (METIS_INCLUDE_DIRS AND METIS_LIBRARIES))
find_path(METIS_INCLUDE_DIRS
NAMES metis.h parmetis.h
PATHS $ENV{METIS_ROOT}
PATH_SUFFIXES metis include
)
find_library(METIS_LIBRARY metis
PATHS $ENV{METIS_ROOT}
PATH_SUFFIXES lib
)
... |
Allow GluonCommon CMake module to find it correctly when Gluon is installed outside of KDEDIR | # - Try to find Gluon's common files
#
# Once done this will define
# GLUONCOMMON_FOUND - system has Gluon common files
# GLUONCOMMON_INCLUDES - all include directories required for Gluon's common files, use it with KDE4_INCLUDES
# GLUONCOMMON_INCLUDE_DIR - the Gluon common include directory
#
#
# Redistribution and... | # - Try to find Gluon's common files
#
# Once done this will define
# GLUONCOMMON_FOUND - system has Gluon common files
# GLUONCOMMON_INCLUDES - all include directories required for Gluon's common files, use it with KDE4_INCLUDES
# GLUONCOMMON_INCLUDE_DIR - the Gluon common include directory
#
#
# Redistribution and... |
Fix typo of C compiler name in armv7 script. | set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR armv7)
set(CMAKE_C_COMPILER arm-linux-gnueabihf-g++-8)
set(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++-8)
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set(CMAKE_FIND_ROOT_PATH... | set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR armv7)
set(CMAKE_C_COMPILER arm-linux-gnueabihf-gcc-8)
set(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++-8)
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set(CMAKE_FIND_ROOT_PATH... |
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... |
Change cl2hpp external project github url | INCLUDE(ExternalProject)
SET(prefix ${CMAKE_BINARY_DIR}/third_party/cl2hpp)
ExternalProject_Add(
cl2hpp-ext
GIT_REPOSITORY https://github.com/9prady9/OpenCL-CLHPP.git
GIT_TAG install_targets
PREFIX "${prefix}"
INSTALL_DIR "${prefix}/package"
UPDATE_COMMAND ""
CONFIGURE_COMMAND ${CMAKE_COMM... | INCLUDE(ExternalProject)
SET(prefix ${CMAKE_BINARY_DIR}/third_party/cl2hpp)
ExternalProject_Add(
cl2hpp-ext
GIT_REPOSITORY https://github.com/arrayfire/OpenCL-CLHPP.git
GIT_TAG install_targets
PREFIX "${prefix}"
INSTALL_DIR "${prefix}/package"
UPDATE_COMMAND ""
CONFIGURE_COMMAND ${CMAKE_CO... |
Fix cunit test without valdgrind | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
set(ENV{LANG} "C")
set(ENV{BUILD_DIR} ${CTEST_MODULE_DIR})
set(ENV{LUA_PATH} ${PROJECT_SOURCE_DIR}/src/lua/?.lua)
set(EN... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
set(ENV{LANG} "C")
set(ENV{BUILD_DIR} ${CTEST_MODULE_DIR})
set(ENV{LUA_PATH} ${PROJECT_SOURCE_DIR}/src/lua/?.lua)
set(EN... |
Change naming of packaged tarballs to match tag naming scheme - this should fix deployment to CVMFS | # 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... |
Fix VTKViewer when compiled with CMake (add missing VTK component) |
# VTK detection for Salome (see http://www.vtk.org/Wiki/VTK/Build_System_Migration)
set(PARAVIEW_ROOT_DIR $ENV{PARAVIEW_ROOT_DIR} CACHE PATH "Path to ParaView directory")
set(PARAVIEW_VERSION $ENV{PARAVIEW_VERSION} CACHE STRING "Version of Paraview")
if(EXISTS ${PARAVIEW_ROOT_DIR})
set(VTK_DIR ${PARAVIEW_ROOT_DIR}/... |
# VTK detection for Salome (see http://www.vtk.org/Wiki/VTK/Build_System_Migration)
set(PARAVIEW_ROOT_DIR $ENV{PARAVIEW_ROOT_DIR} CACHE PATH "Path to ParaView directory")
set(PARAVIEW_VERSION $ENV{PARAVIEW_VERSION} CACHE STRING "Version of Paraview")
if(EXISTS ${PARAVIEW_ROOT_DIR})
set(VTK_DIR ${PARAVIEW_ROOT_DIR}/... |
Add FACTORY_NAMES parameter to itk_module() declaration | set( DOCUMENTATION "This module contains ImageIO classes for reading microscopy
images (mostly TIFF based) readable by the OpenSlide library,
http://openslide.org.")
itk_module( IOOpenSlide
DEPENDS
ITKIOImageBase
TEST_DEPENDS
ITKTestKernel
ENABLE_SHARED
DESCRIPTION
"${DOCUMENTATION}"
EXCLUDE_FROM... | set( DOCUMENTATION "This module contains ImageIO classes for reading microscopy
images (mostly TIFF based) readable by the OpenSlide library,
http://openslide.org.")
itk_module( IOOpenSlide
DEPENDS
ITKIOImageBase
TEST_DEPENDS
ITKTestKernel
ENABLE_SHARED
FACTORY_NAMES
ImageIO::OpenSlide
DESCRIPTIO... |
Add aux module to configure script |
# This config script tries to locate the project either in its source tree
# or from an install location.
#
# Please adjust the list of submodules to search for.
# List of modules
set(MODULE_NAMES
glbinding
)
# Macro to search for a specific module
macro(find_module FILENAME)
if(EXISTS "${FILENAME}")
... |
# This config script tries to locate the project either in its source tree
# or from an install location.
#
# Please adjust the list of submodules to search for.
# List of modules
set(MODULE_NAMES
glbinding
glbinding-aux
)
# Macro to search for a specific module
macro(find_module FILENAME)
if(EXISTS "... |
Add BSplineGradient module as a dependency | set(DOCUMENTATION "The modules provides filters may be particularly useful for
ultrasound image reconstruction and analysis.")
# A library is only created when FFTW support is ON
set(_fft_depends ITKFFT)
if(ITK_USE_FFTWF OR ITK_USE_FFTWD)
set(_fft_depends ITKFFT)
endif()
itk_module(Ultrasound
DEPENDS
ITKImage... | set(DOCUMENTATION "The modules provides filters may be particularly useful for
ultrasound image reconstruction and analysis.")
# A library is only created when FFTW support is ON
set(_fft_depends ITKFFT)
if(ITK_USE_FFTWF OR ITK_USE_FFTWD)
set(_fft_depends ITKFFT)
endif()
itk_module(Ultrasound
DEPENDS
ITKImage... |
Fix qhull compilation on mac | include(GNUInstallDirs)
prusaslicer_add_cmake_project(Qhull
URL "https://github.com/qhull/qhull/archive/v8.0.0.zip"
URL_HASH SHA256=7edae57142989690bc432893da47db5b7069a150c82ba113e46977904ca326ef
CMAKE_ARGS
-DINCLUDE_INSTALL_DIR=${CMAKE_INSTALL_INCLUDEDIR}
)
if (MSVC)
add_debug_dep(dep_Qhull)... | include(GNUInstallDirs)
prusaslicer_add_cmake_project(Qhull
URL "https://github.com/qhull/qhull/archive/v8.0.1.zip"
URL_HASH SHA256=5287f5edd6a0372588f5d6640799086a4033d89d19711023ef8229dd9301d69b
CMAKE_ARGS
-DINCLUDE_INSTALL_DIR=${CMAKE_INSTALL_INCLUDEDIR}
)
if (MSVC)
add_debug_dep(dep_Qhull)... |
Change path suffix for CMOCKA_LIBRARY | # FindCMocka
# ----------
# Tries to find CMocka
#
# Variables:
# CMOCKA_ROOT_DIR - Set this variable to the root installation of CMocka
#
# Read-Only variables:
# CMOCKA_FOUND - system has CMocka
# CMOCKA_INCLUDE_DIR - the CMocka include directory
# CMOCKA_LIBRARIES - Link these to use CMocka
# CMOCKA_DEFINITIONS... | # FindCMocka
# ----------
# Tries to find CMocka
#
# Variables:
# CMOCKA_ROOT_DIR - Set this variable to the root installation of CMocka
#
# Read-Only variables:
# CMOCKA_FOUND - system has CMocka
# CMOCKA_INCLUDE_DIR - the CMocka include directory
# CMOCKA_LIBRARIES - Link these to use CMocka
# CMOCKA_DEFINITIONS... |
Move cmake pop check state to correct place | include (CheckSymbolExists)
include (CMakePushCheckState)
# ~~~
# Check if a symbol is exported
#
# Same as check_symbol_exists but works around the problem of not detecting
# symbols when -Wpedantic is on.
#
# Also automatically adds the definitions of the current directory to
# CMAKE_REQUIRED_DEFINITIONS.
#
# https:... | include (CheckSymbolExists)
include (CMakePushCheckState)
# ~~~
# Check if a symbol is exported
#
# Same as check_symbol_exists but works around the problem of not detecting
# symbols when -Wpedantic is on.
#
# Also automatically adds the definitions of the current directory to
# CMAKE_REQUIRED_DEFINITIONS.
#
# https:... |
Make macro safe for "selected modules only" build | #!
#! \brief Add a custom test for MITK module
#!
#! \param test_name Unique identifier for the test
#! \param test_function Name of the test function (the one with the argc,argv signature)
#!
#! Additional parameters will be passed as command line parameters to the test.
#!
function(mitkAddCustomModuleTest test_name t... | #!
#! \brief Add a custom test for MITK module
#!
#! \param test_name Unique identifier for the test
#! \param test_function Name of the test function (the one with the argc,argv signature)
#!
#! Additional parameters will be passed as command line parameters to the test.
#!
function(mitkAddCustomModuleTest test_name t... |
Update FW with latest apriltag | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "f503b7adfd44b696187b7825a12a134ded0ca3f3")
# "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 "bf00dcbe8bfcdb9d6ce1c029f3e125785827a93f")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Update FW with runtime disparity range fix | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "238b43b7fbd0af171e301e764699776538594b8d")
# "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 "db62f875ea8aca53e22b4095daff67a26e1cfdd2")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Update FW - [ImageManip] Adding support for input/output GRAY8 format | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "391ede37d1b55aa3dac727f58ff99aac7d2865dc")
# "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 "53c09072ddcc23361a37026486e668196695a790")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Enable MINC IO by default | set(DOCUMENTATION "This module contains classes for reading and writing image
files in the MINC 2 file Format (mnc) and transformations (xfm).")
itk_module(ITKIOMINC
ENABLE_SHARED
DEPENDS
ITKIOImageBase
PRIVATE_DEPENDS
ITKMINC
TEST_DEPENDS
ITKTestKernel
ITKMINC
ITKImageStatistics
DESCRIPT... | set(DOCUMENTATION "This module contains classes for reading and writing image
files in the MINC 2 file Format (mnc) and transformations (xfm).")
itk_module(ITKIOMINC
ENABLE_SHARED
DEPENDS
ITKIOImageBase
PRIVATE_DEPENDS
ITKMINC
TEST_DEPENDS
ITKTestKernel
ITKMINC
ITKImageStatistics
DESCRIPT... |
Update FW: StereoDepth: fix RGB alignment when running at calib resolution (OAK-D with 800_P or OAK-D-Lite) | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "4959c559cf7979e1a1a5cbdd0f9a5cbd2299ecb2")
# "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 "32581ad0d1d86e743d011ef747d57a3f39bbc6d9")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Address missing fftw include in CurvatureRegistrationFilter | set(DOCUMENTATION "This module contains classes for deformable image
registration based on intensity differences by solving the PDE, optical flow
problem. This includes Thirion's popular \"demons\" algorithm.")
itk_module(ITKPDEDeformableRegistration
DEPENDS
ITKRegistrationCommon
ITKFiniteDifference
TEST_... | set(DOCUMENTATION "This module contains classes for deformable image
registration based on intensity differences by solving the PDE, optical flow
problem. This includes Thirion's popular \"demons\" algorithm.")
set(_FFTW_DEPENDS )
if( ITK_USE_FFTWF OR ITK_USE_FFTWD )
set(_FFTW_DEPENDS "ITKFFT")
endif()
itk_module... |
Add -Wundef to default warning set | # This file is distributed under the MIT license.
# See the LICENSE file for details.
#---------------------------------------------------------------------------------------------------
# Module to handle VSNRAY_* options
#
if(MSVC)
else() # GNU, Clang, etc.
#--------------------------------------------------... | # This file is distributed under the MIT license.
# See the LICENSE file for details.
#---------------------------------------------------------------------------------------------------
# Module to handle VSNRAY_* options
#
if(MSVC)
else() # GNU, Clang, etc.
#--------------------------------------------------... |
Fix using hdf5-config from HDF5 | if(MATIO_WITH_HDF5)
find_package(HDF5 1.8)
if(HDF5_FOUND)
set(HAVE_HDF5 1)
endif()
endif()
if(MATIO_WITH_ZLIB)
find_package(ZLIB 1.2.3)
if(ZLIB_FOUND)
set(HAVE_ZLIB 1)
endif()
endif()
if(HDF5_FOUND)
add_library(HDF5::HDF5 INTERFACE IMPORTED)
set_target_properties(HDF5::... | if(MATIO_WITH_HDF5)
find_package(HDF5)
if(HDF5_FOUND)
if(HDF5_VERSION VERSION_LESS 1.8)
message(FATAL_ERROR "HDF5 version ${HDF5_VERSION} is unsupported, minimum of 1.8 is required")
endif()
set(HAVE_HDF5 1)
endif()
endif()
if(MATIO_WITH_ZLIB)
find_package(ZLIB 1.2.3... |
Update FW with multiple fixes: - properly handle manual/auto focus with multiple cameras - fix potential init failure with same sensors (IMX378/477/214 / AR0234 / OV5645) on Left and Right sockets - fix sensor name reporting for AR0234 / IMX378/380/477/577 | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "e3baa61d440ca6964dc74768140971aac5dc7fca")
# "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 "e89359595f669e066ac690799f4fb20f6af16754")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Enable creation of the compile command database by default. | # Always include srcdir and builddir in include path
# This saves typing ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY} in
# about every subdir
# since cmake 2.4.0
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Put the include dirs which are in the source or build tree
# before all other include dirs, so the headers in the ... | # Always include srcdir and builddir in include path
# This saves typing ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY} in
# about every subdir
# since cmake 2.4.0
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Put the include dirs which are in the source or build tree
# before all other include dirs, so the headers in the ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.