Instruction stringlengths 14 778 | input_code stringlengths 0 4.24k | output_code stringlengths 1 5.44k |
|---|---|---|
Change invalid ThyraTpetraWrappers with ThyraTpetraAdapters | SET(LIB_REQUIRED_DEP_PACKAGES
DataTransferKitNanoflann
DataTransferKitUtils
Teuchos
Tpetra
AztecOO
Belos
ThyraCore
ThyraTpetraWrappers
Stratimikos
)
SET(LIB_OPTIONAL_DEP_PACKAGES)
SET(TEST_REQUIRED_DEP_PACKAGES
DataTransferKitBasicGeometryAdapters
)
SET(TEST_OPTIONAL_DEP_PACKAGES)
SET(LIB_REQU... | SET(LIB_REQUIRED_DEP_PACKAGES
DataTransferKitNanoflann
DataTransferKitUtils
Teuchos
Tpetra
AztecOO
Belos
ThyraCore
ThyraTpetraAdapters
Stratimikos
)
SET(LIB_OPTIONAL_DEP_PACKAGES)
SET(TEST_REQUIRED_DEP_PACKAGES
DataTransferKitBasicGeometryAdapters
)
SET(TEST_OPTIONAL_DEP_PACKAGES)
SET(LIB_REQU... |
Change filename in CMakeLists.txt file to match previous commits changes. |
# Set the test name, 'test_' will be prepended to the
# name set here
set(CURRENT_TEST parser)
# Set a category name to enable running commands like:
# ctest -R <category-label>
# which will run the tests matching this category-label.
# Can be left empty (or just not set)
set(${CURRENT_TEST}_CATEGORY misc)
list(APP... |
# Set the test name, 'test_' will be prepended to the
# name set here
set(CURRENT_TEST parser)
# Set a category name to enable running commands like:
# ctest -R <category-label>
# which will run the tests matching this category-label.
# Can be left empty (or just not set)
set(${CURRENT_TEST}_CATEGORY misc)
list(APP... |
Add null sound backend to cmake | cmake_minimum_required(VERSION 2.8)
option (BUILD_ALLEGRO_SOUNDBACKEND "Build an allegro audio backend" ON)
set (SOUNDBACKENDS "")
set (SOUNDBACKEND_SOURCES "")
set (SOUNDBACKEND_LIBRARIES "")
set (SOUNDBACKEND_INCLUDES "")
if(BUILD_ALLEGRO_SOUNDBACKEND)
list(APPEND SOUNDBACKENDS allegro)
list(APPEND SOUNDBACKEN... | cmake_minimum_required(VERSION 2.8)
option (BUILD_ALLEGRO_SOUNDBACKEND "Build an allegro audio backend" ON)
option (BUILD_NULL_SOUNDBACKEND "Build an null (non-functional) audio backend" ON)
set (SOUNDBACKENDS "")
set (SOUNDBACKEND_SOURCES "")
set (SOUNDBACKEND_LIBRARIES "")
set (SOUNDBACKEND_INCLUDES "")
if(BUILD_A... |
Update FW internal commit hash | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "c036117a9881a57c344d93b4b9ca625ab5c54e3f")
# "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 "75abb68c69b4f4168646eb50e311983f57ff9281")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Update SCIFIO to latest version on 08/29/2016 | itk_fetch_module(SCIFIO
"SCIFIO (Bioformats) ImageIO plugin for ITK"
GIT_REPOSITORY ${git_protocol}://github.com/scifio/scifio-imageio.git
GIT_TAG d6ce39d855d5078589efed93f785c7289769c3c6
)
| itk_fetch_module(SCIFIO
"SCIFIO (Bioformats) ImageIO plugin for ITK"
GIT_REPOSITORY ${git_protocol}://github.com/scifio/scifio-imageio.git
GIT_TAG eb391a74e77b161e0f070539237193528c628f7b
)
|
Fix path to documentation pdf. | include(velodyneviewer.bundle.common)
set (CPACK_GENERATOR DragNDrop)
include(CPack)
# we only to paraview explicitly.
install(CODE "
file(INSTALL DESTINATION \"\${CMAKE_INSTALL_PREFIX}\" USE_SOURCE_PERMISSIONS TYPE DIRECTORY FILES
\"${install_location}/bin/VeloView.app\")
file(INSTALL DESTINATIO... | include(velodyneviewer.bundle.common)
set (CPACK_GENERATOR DragNDrop)
include(CPack)
install(CODE "
file(INSTALL DESTINATION \"\${CMAKE_INSTALL_PREFIX}\" USE_SOURCE_PERMISSIONS TYPE DIRECTORY FILES
\"${install_location}/bin/VeloView.app\")
file(INSTALL DESTINATION \"\${CMAKE_INSTALL_PREFIX}\" USE... |
Make windows check symbols work more reliably | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... |
Remove pointless cmake_minimum_required(VERSION ...) statement | cmake_minimum_required(VERSION 2.8.6)
function(add_plugin name)
add_library(${name} MODULE ${ARGN})
set_target_properties(${name} PROPERTIES PREFIX "")
if(CMAKE_COMPILER_IS_GNUCC)
set_property(TARGET ${name} APPEND_STRING PROPERTY COMPILE_FLAGS " -m32")
set_property(TARGET ${name} APPEND_STRING PROPERT... | function(add_plugin name)
add_library(${name} MODULE ${ARGN})
set_target_properties(${name} PROPERTIES PREFIX "")
if(CMAKE_COMPILER_IS_GNUCC)
set_property(TARGET ${name} APPEND_STRING PROPERTY COMPILE_FLAGS " -m32")
set_property(TARGET ${name} APPEND_STRING PROPERTY LINK_FLAGS " -m32")
endif()
i... |
Bring LSB_CODENAME back, needed for Fivox w/ broken ITK on Ubuntu trusty |
# Copyright (c) 2012 Stefan Eilemann <eile@eyescale.ch>
# gathers LSB system information
if(LSB_RELEASE)
return()
endif()
find_program(LSB_RELEASE_EXECUTABLE lsb_release)
if(LSB_RELEASE_EXECUTABLE)
execute_process(COMMAND ${LSB_RELEASE_EXECUTABLE} -sr
OUTPUT_VARIABLE LSB_RELEASE OUTPUT_STRIP_TRAILING_WHITES... |
# Copyright (c) 2012 Stefan Eilemann <eile@eyescale.ch>
# gathers LSB system information
if(LSB_RELEASE)
return()
endif()
find_program(LSB_RELEASE_EXECUTABLE lsb_release)
if(LSB_RELEASE_EXECUTABLE)
execute_process(COMMAND ${LSB_RELEASE_EXECUTABLE} -sc
OUTPUT_VARIABLE LSB_CODENAME OUTPUT_STRIP_TRAILING_WHITE... |
Fix running tests for certain boost versions | macro(package_add_test TESTNAME)
add_executable(${TESTNAME}.x EXCLUDE_FROM_ALL ${ARGN})
target_compile_options(${TESTNAME}.x PRIVATE -Wunused-parameter -Wall)
target_link_libraries(${TESTNAME}.x JPetFramework::JPetFramework Boost::unit_test_framework)
add_test(NAME ${TESTNAME}.x COMMAND ${TESTNAME}.x "-... | macro(package_add_test TESTNAME)
add_executable(${TESTNAME}.x EXCLUDE_FROM_ALL ${ARGN})
target_compile_options(${TESTNAME}.x PRIVATE -Wunused-parameter -Wall)
target_link_libraries(${TESTNAME}.x JPetFramework::JPetFramework Boost::unit_test_framework)
add_test(NAME ${TESTNAME}.x COMMAND ${TESTNAME}.x --... |
Add more search paths for PSQL. Fixes build on Gentoo | find_path(POSTGRES_INCLUDE_DIR postgres.h
/usr/include/postgresql
/usr/local/include/postgresql
)
find_library(POSTGRES_LIBRARY
NAMES pq libpq
PATH /usr/lib /usr/local/lib
/usr/lib64 /usr/local/lib64
)
if(POSTGRES_INCLUDE_DIR AND POSTGRES_LIBRARY... | find_path(POSTGRES_INCLUDE_DIR postgres.h
/usr/include/postgresql
/usr/include/postgresql/server
/usr/local/include/postgresql
/usr/local/include/postgresql/server
)
find_library(POSTGRES_LIBRARY
NAMES pq libpq
PATH /usr/lib /usr/local/lib
... |
Boost filesystem v3 are supported starting 1.44 only | # Find and set Boost flags
if(NOT PCL_SHARED_LIBS)
set(Boost_USE_STATIC_LIBS ON)
endif(NOT PCL_SHARED_LIBS)
find_package(Boost 1.36.0 COMPONENTS system filesystem thread)
# TODO: What should the minimum version number be?
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})
| # Find and set Boost flags
if(NOT PCL_SHARED_LIBS)
set(Boost_USE_STATIC_LIBS ON)
endif(NOT PCL_SHARED_LIBS)
find_package(Boost 1.44.0 COMPONENTS system filesystem thread)
# TODO: What should the minimum version number be?
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})
|
Fix minor issue in command line tool cmake module | #
# Copyright 2018 Jeff Bush
#
# 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 agreed to in writing, ... | #
# Copyright 2018 Jeff Bush
#
# 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 agreed to in writing, ... |
Fix the Linux 32-bit toolchain to append to the flags, not override | # Toolchain file for building 32-bit Linux libraries
set(CMAKE_C_FLAGS -m32)
set(CMAKE_CXX_FLAGS -m32)
set(CMAKE_LIBRARY_PATH "/usr/lib/i386-linux-gnu") | # Toolchain file for building 32-bit Linux libraries
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32")
set(CMAKE_LIBRARY_PATH "/usr/lib/i386-linux-gnu") |
Add missing testing dependency for Rendering/Matplotlib. | vtk_module(vtkRenderingMatplotlib
IMPLEMENTS
vtkRenderingMathText
DEPENDS
vtkRenderingCore
vtkWrappingPython
TEST_DEPENDS
vtkInteractionImage
vtkInteractionWidgets
vtkIOExport
vtkTestingRendering
vtkRenderingGL2PS
vtkRenderingOpenGL
vtkRenderingFreeTypeOpenGL
vtkViewsCo... | vtk_module(vtkRenderingMatplotlib
IMPLEMENTS
vtkRenderingMathText
DEPENDS
vtkRenderingCore
vtkWrappingPython
TEST_DEPENDS
vtkInteractionImage
vtkInteractionWidgets
vtkIOExport
vtkIOGeometry
vtkTestingRendering
vtkRenderingGL2PS
vtkRenderingOpenGL
vtkRenderingFreeTypeOpe... |
Use MODULE_IS_ENABLED to decide whether or not to add a test case | #!
#! \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: fix ColorCamera `preview`/`video`/`still` when multiple cameras use these outputs | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "70c0b8e0e8c47a63a0991cccd2088ac5ce5e825f")
# "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 "c6f9eda4f47b4aa26538b7e79743d1940db74bb5")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Add VTK Python module when wrapping ITKVtkGlue. | #
# Find the packages required by this module
#
# Needed VTK version
set(VERSION_MIN "5.10.0")
# Look for VTK
find_package(VTK COMPONENTS
vtkCommonCore
vtkRenderingCore
vtkRenderingOpenGL
vtkRenderingFreeType
vtkInteractionStyle
vtkIOImage
vtkImagingSources
REQUIRED)
# Older versions of VTK (VTK 5.5 ... | #
# Find the packages required by this module
#
# Needed VTK version
set(VERSION_MIN "5.10.0")
set(_wrap_module)
if(ITK_WRAP_PYTHON)
set(_wrap_module vtkWrappingPythonCore)
endif()
# Look for VTK
find_package(VTK REQUIRED
COMPONENTS
vtkCommonCore
vtkRenderingCore
vtkRenderingOpenGL
vtkRenderingFreeType
... |
Update FW: improve OV9782 color saturation and sharpness | # 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 "")
| # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "d2b298e834f3cf746071059e2c1e1c4d37b724af")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Update FW to latest develop | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "5c86c4497337e40c4b9293786f4f5c53667ab1ae")
# "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 "1d9a7ed8c70a2d1d2eba386acdebcbf3ca49de29")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Add /usr/local/include to include path for native shims. | include(CheckFunctionExists)
include(CheckStructHasMember)
include(CheckCXXSourceCompiles)
check_function_exists(
stat64
HAVE_STAT64)
check_function_exists(
pipe2
HAVE_PIPE2)
check_function_exists(
getmntinfo
HAVE_MNTINFO)
check_function_exists(
strcpy_s
HAVE_STRCPY_S)
check_functio... | include(CheckFunctionExists)
include(CheckStructHasMember)
include(CheckCXXSourceCompiles)
#CMake does not include /usr/local/include into the include search path
#thus add it manually. This is required on FreeBSD.
include_directories(/usr/local/include)
check_function_exists(
stat64
HAVE_STAT64)
check_funct... |
Fix CMake config file for building against. | find_package(libfunctionality)
find_package(Boost QUIET)
include("${CMAKE_CURRENT_LIST_DIR}/osvrTargets.cmake")
target_link_libraries(osvr::osvrUtilCpp INTERFACE ${Boost_INCLUDE_DIRS})
target_link_libraries(osvr::osvrClientKitCpp INTERFACE ${Boost_INCLUDE_DIRS})
target_link_libraries(osvr::osvrPluginKitCpp INTERFACE $... | find_package(libfunctionality)
find_package(Boost QUIET)
include("${CMAKE_CURRENT_LIST_DIR}/osvrTargets.cmake")
set_property(TARGET osvr::osvrUtilCpp APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${Boost_INCLUDE_DIRS})
set_property(TARGET osvr::osvrClientKitCpp APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${Boost_INC... |
Use HTTPS protocol instead of SSH | #-----------------------------------------------------------------------------
# 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... |
Define some settings for GCC 4.9 | add_definitions(
--std=c++11
-Wall
-Wextra
-Wno-unknown-pragmas
-Wno-unused-local-typedefs
-Wno-unused-variable
)
if(${CMAKE_BUILD_TYPE} MATCHES "Debug")
add_definitions(
-g
-O0
)
endif()
if(${CMAKE_BUILD_TYPE} MATCHES "Release")
... | add_definitions(
--std=c++11
-Wall
-Wextra
-Wno-unknown-pragmas
-Wno-unused-local-typedefs
-Wno-unused-variable
)
if(${CMAKE_BUILD_TYPE} MATCHES "Debug")
add_definitions(
-g
-O0
)
endif()
if(${CMAKE_BUILD_TYPE} MATCHES "Release")
... |
Update Wiki examples for latest code changes | #
# ITK WikiExamples
#
# If the environment var WikiExamplesTag exists, use it
if (NOT DEFINED ENV{WikiExamplesTag})
# December 26, 2016
set(GIT_TAG 93b266b8b8a1443ed1dfd47b9b427fce4aebf3b0)
else()
set(GIT_TAG $ENV{WikiExamplesTag})
endif()
itk_fetch_module(WikiExamples
"A collection of examples that illustra... | #
# ITK WikiExamples
#
# If the environment var WikiExamplesTag exists, use it
if (NOT DEFINED ENV{WikiExamplesTag})
# December 26, 2016
set(GIT_TAG ef997a295367dbc169118066069748cdf61fdc14)
else()
set(GIT_TAG $ENV{WikiExamplesTag})
endif()
itk_fetch_module(WikiExamples
"A collection of examples that illustra... |
Append CXXFLAGS instead of overwriting them. | set(LASZIP_COMMON_CXX_FLAGS "-Wextra -Wall -Wno-unused-parameter -Wno-unused-variable -Wpointer-arith -Wcast-qual -Wredundant-decls -Wno-long-long -Wno-unknown-pragmas -isystem /usr/local/include"
)
if (${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
if (${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 4.7)
set(CXX_STAND... | set(LASZIP_COMMON_CXX_FLAGS "-Wextra -Wall -Wno-unused-parameter -Wno-unused-variable -Wpointer-arith -Wcast-qual -Wredundant-decls -Wno-long-long -Wno-unknown-pragmas -isystem /usr/local/include"
)
if (${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
if (${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 4.7)
set(CXX_STAND... |
Debug build should have -O0 passed. | # Copyright (c) 2016, Daniel Liew
# This file is covered by the license in LICENSE-SVCB.txt
# This file overrides the default compiler flags for CMake's built-in
# configurations (CMAKE_BUILD_TYPE). Most compiler flags should not be set here.
# The main # purpose is to make sure ``-DNDEBUG`` is never set by default.
i... | # Copyright (c) 2016, Daniel Liew
# This file is covered by the license in LICENSE-SVCB.txt
# This file overrides the default compiler flags for CMake's built-in
# configurations (CMAKE_BUILD_TYPE). Most compiler flags should not be set here.
# The main # purpose is to make sure ``-DNDEBUG`` is never set by default.
i... |
Allow ctest to log more than 4kb | #
# Copyright (C) 2005-2019 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-2019 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... |
Fix backward compatibility issue finding the clockwork library | # CMake file for the clockwork client
find_library(
ClockworkClient_LIBRARY
PATHS /opt/latproc/iod/stage/lib /opt/latproc/iod/build
NAMES cw_client
)
find_path(
ClockworkClient_INCLUDE_DIR
ClientInterface.h
PATHS /opt/latproc/iod/stage /opt/latproc/iod/src
)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_... | # CMake file for the clockwork client
find_library(
ClockworkClient_LIBRARY
PATHS /opt/latproc/iod/stage/lib /opt/latproc/iod/build
NAMES cw_client Clockwork
)
find_path(
ClockworkClient_INCLUDE_DIR
ClientInterface.h
PATHS /opt/latproc/iod/stage /opt/latproc/iod/src
)
include(FindPackageHandleStandardArgs)
FIN... |
Update lib-cpp-pre SHA1sum as we updated it to fix windows compile issues. | if(DEFINED HUNTER_CMAKE_PROJECTS_LIB_CPP_PRE_HUNTER_CMAKE_)
return()
else()
set(HUNTER_CMAKE_PROJECTS_LIB_CPP_PRE_HUNTER_CMAKE_ 1)
endif()
include(hunter_add_version)
include(hunter_download)
include(hunter_pick_scheme)
hunter_add_version(
PACKAGE_NAME lib-cpp-pre
VERSION "1.2.2"
URL "https://github.c... | if(DEFINED HUNTER_CMAKE_PROJECTS_LIB_CPP_PRE_HUNTER_CMAKE_)
return()
else()
set(HUNTER_CMAKE_PROJECTS_LIB_CPP_PRE_HUNTER_CMAKE_ 1)
endif()
include(hunter_add_version)
include(hunter_download)
include(hunter_pick_scheme)
hunter_add_version(
PACKAGE_NAME lib-cpp-pre
VERSION "1.2.2"
URL "https://github.c... |
Add a version check for clang-format. | include(CMakeParseArguments)
function(add_clang_format TARGET)
cmake_parse_arguments(args "" "STYLE" "FILES" ${ARGN})
if(args_STYLE)
get_filename_component(CFG_FILE ${args_STYLE} ABSOLUTE)
set(STYLE "-style=file")
set(STYLE_FILE "-assume-filename=${CFG_FILE}")
endif()
list(REMOVE_DUPLICATES arg... | include(CMakeParseArguments)
function(add_clang_format TARGET)
cmake_parse_arguments(args "" "STYLE" "FILES" ${ARGN})
if(args_STYLE)
get_filename_component(CFG_FILE ${args_STYLE} ABSOLUTE)
set(STYLE "-style=file")
set(STYLE_FILE "-assume-filename=${CFG_FILE}")
endif()
list(REMOVE_DUPLICATES arg... |
Disable USE_TRANSFER_FUNCTION_CHARTS by default ctkVTKScalarsToColorsView requires a special API not yet in VTK | #
# See CMake/ctkMacroAddCtkLibraryOptions.cmake
#
# This file should list of options available for considered CTK library
# For example: MYOPT1:OFF MYOPT2:ON
#
set(ctk_library_options
USE_TRANSFER_FUNCTION_CHARTS:ON
)
| #
# See CMake/ctkMacroAddCtkLibraryOptions.cmake
#
# This file should list of options available for considered CTK library
# For example: MYOPT1:OFF MYOPT2:ON
#
set(ctk_library_options
USE_TRANSFER_FUNCTION_CHARTS:OFF
)
|
Put PROJECT_NAME first in test rule | # Copyright (c) 2010 Daniel Pfeifer
# 2010-2014, Stefan Eilemann <eile@eyescale.ch>
# 2014, Juan Hernando <jhernando@fi.upm.es>
include(CommonCPPCTest)
if(COVERAGE)
coverage_report(run_cpp_tests)
# workaround: 'make test' does not build tests beforehand
add_custom_target(tests_${PROJ... | # Copyright (c) 2010 Daniel Pfeifer
# 2010-2014, Stefan Eilemann <eile@eyescale.ch>
# 2014, Juan Hernando <jhernando@fi.upm.es>
include(CommonCPPCTest)
if(COVERAGE)
coverage_report(run_cpp_tests)
# workaround: 'make test' does not build tests beforehand
add_custom_target(${PROJECT_NA... |
Add my path to findlcl | # - Try to find LCL
# Once done this will define
# LCL_FOUND - System has LibXml2
# LCL_INCLUDE_DIRS - The LibXml2 include directories
# LCL_LIBRARIES - The libraries needed to use LibXml2
# LCL_DEFINITIONS - Compiler switches required for using LibXml2
find_package(PkgConfig)
find_path(LCL_INCLUDE_DIR headers/... | # - Try to find LCL
# Once done this will define
# LCL_FOUND - System has LibXml2
# LCL_INCLUDE_DIRS - The LibXml2 include directories
# LCL_LIBRARIES - The libraries needed to use LibXml2
# LCL_DEFINITIONS - Compiler switches required for using LibXml2
find_package(PkgConfig)
find_path(LCL_INCLUDE_DIR headers/... |
Change search order for yaml-cpp library | #
# 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 agreed to in writing, software
# distributed under ... | #
# 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 agreed to in writing, software
# distributed under ... |
Revert "update re2c to 1.2" due to build error in some environment like Mac or openSUSE tumbleweed |
include(DownloadProject)
macro(getRE2C)
if (CMAKE_VERSION VERSION_LESS 3.2)
set(UPDATE_DISCONNECTED_IF_AVAILABLE "")
else()
set(UPDATE_DISCONNECTED_IF_AVAILABLE "UPDATE_DISCONNECTED 1")
endif()
download_project(
PROJ re2c
GIT_REPOSITORY http... |
include(DownloadProject)
macro(getRE2C)
if (CMAKE_VERSION VERSION_LESS 3.2)
set(UPDATE_DISCONNECTED_IF_AVAILABLE "")
else()
set(UPDATE_DISCONNECTED_IF_AVAILABLE "UPDATE_DISCONNECTED 1")
endif()
download_project(
PROJ re2c
GIT_REPOSITORY http... |
Update FW: fix for 4-point warp with normalized = false | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "0f8760df31f4d37efcd8d6fc210f1a4215221de3")
# "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 "d49ac887074adf18024c21e33ce071ea48b0c014")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Update BridgeNumPy to most recent version (2017.03.05) | # 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... |
Update FW with bilateral fix | # 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 "")
| # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "eb3b3cfd94b306ae38f114c1c98b090cb3fe2671")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Create 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 ... |
Revert to previous behaviour due to proxy issues | #-----------------------------------------------------------------------------
# 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 INCLUDE_SMSGSM because it is not used |
/* Define if you have valgrind.h installed */
#cmakedefine HAVE_VALGRIND_H 1
/* Define to compile with GSM SMS support */
/* #undef INCLUDE_SMSGSM */
/* Define to 1 if you want libv4l support */
#cmakedefine HAVE_LIBV4L2 1
#cmakedefine HAVE_V4L 1
|
/* Define if you have valgrind.h installed */
#cmakedefine HAVE_VALGRIND_H 1
/* Define to 1 if you want libv4l support */
#cmakedefine HAVE_LIBV4L2 1
#cmakedefine HAVE_V4L 1
|
Fix path in cmake file | add_python_test(homepage PLUGIN homepage)
add_python_style_test(python_static_analysis_homepage
"${PROJECT_SOURCE_DIR}/plugins/homepage/server")
add_python_style_test(python_static_analysis_homepage_tests
"${PROJECT_SOURCE_DIR}/plugins/homepage/plugin_tests")
add_eslint_test(homepage
"${PROJECT_SOURCE_DI... | add_python_test(homepage PLUGIN homepage)
add_python_style_test(python_static_analysis_homepage
"${PROJECT_SOURCE_DIR}/plugins/homepage/server")
add_python_style_test(python_static_analysis_homepage_tests
"${PROJECT_SOURCE_DIR}/plugins/homepage/plugin_tests")
add_eslint_test(homepage
"${PROJECT_SOURCE_DI... |
Add macro for getting bin output directory | function(mouve_add_plugin _name)
add_library(${_name} MODULE ${ARGN})
target_link_libraries(${_name} PRIVATE Mouve.Logic)
target_include_directories(${_name} PRIVATE ${mouve_SOURCE_DIR})
if(MSVC) # We should really check for multi-config generator
foreach(config ${CMAKE_CONFIGURATION_TYPES})
... | macro(mouve_bin_directory _config _directory)
if(MSVC) # We should really check for multi-config generator
set(${_directory} ${CMAKE_BINARY_DIR}/bin/${_config})
else()
set(${_directory} ${CMAKE_BINARY_DIR}/bin)
endif()
endmacro()
function(mouve_add_plugin _name)
add_library(${_name} MOD... |
Set web client tests parallel level to 2 on travis | set(CTEST_SOURCE_DIRECTORY "$ENV{TRAVIS_BUILD_DIR}")
set(CTEST_BINARY_DIRECTORY "$ENV{TRAVIS_BUILD_DIR}/_build")
include(${CTEST_SOURCE_DIRECTORY}/CTestConfig.cmake)
set(test_group "$ENV{GIRDER_TEST_GROUP}")
set(CTEST_SITE "Travis")
set(CTEST_BUILD_NAME "Linux-$ENV{TRAVIS_BRANCH}-Mongo-$ENV{MONGO_VERSION}-${test_group... | set(CTEST_SOURCE_DIRECTORY "$ENV{TRAVIS_BUILD_DIR}")
set(CTEST_BINARY_DIRECTORY "$ENV{TRAVIS_BUILD_DIR}/_build")
include(${CTEST_SOURCE_DIRECTORY}/CTestConfig.cmake)
set(test_group "$ENV{GIRDER_TEST_GROUP}")
set(CTEST_SITE "Travis")
set(CTEST_BUILD_NAME "Linux-$ENV{TRAVIS_BRANCH}-Mongo-$ENV{MONGO_VERSION}-${test_group... |
Use CMake FindBoost module to check that the version is at least 1.62.0 | 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/version.hpp boost/mpl/at.hpp
REQUIRED_LIBS_NAMES boost_mpi boost_serialization
)
| 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/version.hpp boost/mpl/at.hpp
REQUIRED_LIBS_NAMES boost_mpi boost_serialization
)
# Use CMake FindBoost module to chec... |
Update FW to match depthai-shared | # 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 "")
| # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "484b9952039f243d7fe57ee2d58d62a797ca784e")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Fix Mac Json cmake script | # -*- cmake -*-
include(Prebuilt)
set(JSONCPP_FIND_QUIETLY ON)
set(JSONCPP_FIND_REQUIRED ON)
if (STANDALONE)
include(FindJsonCpp)
else (STANDALONE)
use_prebuilt_binary(jsoncpp)
if (WINDOWS)
set(JSONCPP_LIBRARIES
debug json_vc100debug_libmt.lib
optimized json_vc100_libmt)
elseif (DARWIN)
... | # -*- cmake -*-
include(Prebuilt)
set(JSONCPP_FIND_QUIETLY ON)
set(JSONCPP_FIND_REQUIRED ON)
if (STANDALONE)
include(FindJsonCpp)
else (STANDALONE)
use_prebuilt_binary(jsoncpp)
if (WINDOWS)
set(JSONCPP_LIBRARIES
debug json_vc100debug_libmt.lib
optimized json_vc100_libmt)
elseif (DARWIN)
... |
Add new environment variable: BC_UNIT_TEST_VG | macro(def_test testName)
add_executable(Test${testName} Test${testName}.cpp ${COMMON_SOURCES})
target_link_libraries(Test${testName} ${TEST_LIBS} ${GTEST_BOTH_LIBRARIES})
add_test(Test${testName} Test${testName})
set_tests_properties(Test${testName} PROPERTIES LABELS unit)
endmacro(def_test testName)
| macro(def_test testName)
add_executable(Test${testName} Test${testName}.cpp ${COMMON_SOURCES})
target_link_libraries(Test${testName} ${TEST_LIBS} ${GTEST_BOTH_LIBRARIES})
if($ENV{BC_UNIT_TEST_VG})
add_test(NAME Test${testName} COMMAND valgrind --error-exitcode=1 $<TARGET_FILE:Test${testName}>)
e... |
Update boost to avoid compiler issues with clang. | set(Boost_Install_Dir ${CMAKE_CURRENT_BINARY_DIR}/boost-install)
set(Boost_Configure_Script ${CMAKE_CURRENT_LIST_DIR}/configureboost.cmake)
set(Boost_Build_Script ${CMAKE_CURRENT_LIST_DIR}/buildboost.cmake)
ExternalProject_add(Boost
SVN_REPOSITORY http://svn.boost.org/svn/boost/trunk
SVN_REVISION -r "77936"
# URL... | set(Boost_Install_Dir ${CMAKE_CURRENT_BINARY_DIR}/boost-install)
set(Boost_Configure_Script ${CMAKE_CURRENT_LIST_DIR}/configureboost.cmake)
set(Boost_Build_Script ${CMAKE_CURRENT_LIST_DIR}/buildboost.cmake)
ExternalProject_add(Boost
SVN_REPOSITORY http://svn.boost.org/svn/boost/trunk
SVN_REVISION -r "82586"
# URL... |
Revert of a harmful change (A.Goel) | # AliRoot Build System Module to find and configure DATE
#
# Author: Johny Jose (johny.jose@cern.ch)
# Port of previous Makefile build to cmake
cmake_minimum_required(VERSION 2.8.4 FATAL_ERROR)
find_program(DATE_CONFIG date-config)
message(STATUS "Check for Date : ${DATE_CONFIG}")
if(DATE_CONFIG)
set(DATE_F... | # AliRoot Build System Module to find and configure DATE
#
# Author: Johny Jose (johny.jose@cern.ch)
# Port of previous Makefile build to cmake
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
find_program(DATE_CONFIG date-config)
message(STATUS "Check for Date : ${DATE_CONFIG}")
if(DATE_CONFIG)
set(DATE_FOU... |
Remove unfinished code for release |
#
# Default dependencies for the runtime-package
#
# Install 3rd-party runtime dependencies into runtime-component
# install(FILES ... COMPONENT runtime)
#
# Full dependencies for self-contained packages
#
if(OPTION_SELF_CONTAINED)
# Install 3rd-party runtime dependencies into runtime-component
# inst... |
#
# Default dependencies for the runtime-package
#
# Install 3rd-party runtime dependencies into runtime-component
# install(FILES ... COMPONENT runtime)
#
# Full dependencies for self-contained packages
#
if(OPTION_SELF_CONTAINED)
# Install 3rd-party runtime dependencies into runtime-component
# inst... |
Revert workaround for CTK external library dirs | # message("In package CTK config")
find_package(CTK REQUIRED)
list(APPEND ALL_INCLUDE_DIRECTORIES ${CTK_INCLUDE_DIRS})
list(APPEND ALL_LIBRARIES ${CTK_LIBRARIES})
link_directories(${CTK_LIBRARY_DIRS} ${CTK_EXTERNAL_LIBRARY_DIRS})
# Temporary workaround for CTK bug of not exposing external project library dirs.
# Shoul... | # message("In package CTK config")
find_package(CTK REQUIRED)
list(APPEND ALL_INCLUDE_DIRECTORIES ${CTK_INCLUDE_DIRS})
list(APPEND ALL_LIBRARIES ${CTK_LIBRARIES})
link_directories(${CTK_LIBRARY_DIRS} ${CTK_EXTERNAL_LIBRARY_DIRS})
|
Fix typo in variable activating secure transport | macro(buildCurl)
include(ExternalProject)
set(SECURE_TRANSPORT_FLAGS "")
if(APPLE)
set(SECURE_TRANSPORT_FLAG "--with-secure-transport")
endif()
ExternalProject_Add(BuildCurlBundled
SOURCE_DIR "${CMAKE_SOURCE_DIR}/deps/curl"
PREFIX "${CMAKE_BINARY_DIR}/curl"
BUILD_IN_SOURCE 1
CONF... | 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... |
Revert changes - don't need target_link_libraries | # TODO(thomthom): Configure for Mac:
include_directories(SYSTEM "${SLAPI_INCLUDE_PATH}")
include_directories("${CPP_API_INCLUDE_PATH}")
file(GLOB_RECURSE CPP_API_HEADERS ${CPP_API_INCLUDE_PATH}/*.hpp)
file(GLOB_RECURSE CPP_API_SOURCES ${CPP_API_SOURCE_PATH}/*.cpp)
add_library(SketchUpAPICpp STATIC ${CPP_API_HEADERS} ... | # TODO(thomthom): Configure for Mac:
include_directories(SYSTEM "${SLAPI_INCLUDE_PATH}")
include_directories("${CPP_API_INCLUDE_PATH}")
file(GLOB_RECURSE CPP_API_HEADERS ${CPP_API_INCLUDE_PATH}/*.hpp)
file(GLOB_RECURSE CPP_API_SOURCES ${CPP_API_SOURCE_PATH}/*.cpp)
add_library(SketchUpAPICpp STATIC ${CPP_API_HEADERS} ... |
Fix syntax error (missing quote). | # Copyright (C) 2010 Sun Microsystems, Inc
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but ... | # Copyright (C) 2010 Sun Microsystems, Inc
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but ... |
Fix test run command line | # Allow to easily build test suites
macro(create_test_suite NAME)
enable_testing()
set(TARGET "check-${NAME}")
add_custom_target(${TARGET} COMMAND ${CMAKE_CTEST_COMMAND})
# If the magic target check-all exists, attach to it.
if(TARGET check-all)
add_dependencies(check-all ${TARGET})
endif()
endmacro(create_te... | # Allow to easily build test suites
macro(create_test_suite NAME)
enable_testing()
set(TARGET "check-${NAME}")
add_custom_target(${TARGET} COMMAND ${CMAKE_CTEST_COMMAND})
# If the magic target check-all exists, attach to it.
if(TARGET check-all)
add_dependencies(check-all ${TARGET})
endif()
endmacro(create_te... |
Fix bundled curl's installation paths | macro(buildCurl)
include(ExternalProject)
set(SECURE_TRANSPORT_FLAGS "")
if(APPLE)
set(SECURE_TRANSPORT_FLAGS "-DCMAKE_USE_SECTRANSP=ON -DCMAKE_USE_OPENSSL=OFF")
endif()
ExternalProject_Add(BuildCurlBundled
SOURCE_DIR "${CMAKE_SOURCE_DIR}/deps/curl"
BINARY_DIR "${CMAKE_BINARY_DIR}/deps/curl"... | macro(buildCurl)
include(ExternalProject)
set(SECURE_TRANSPORT_FLAGS "")
if(APPLE)
set(SECURE_TRANSPORT_FLAGS "-DCMAKE_USE_SECTRANSP=ON -DCMAKE_USE_OPENSSL=OFF")
endif()
ExternalProject_Add(BuildCurlBundled
SOURCE_DIR "${CMAKE_SOURCE_DIR}/deps/curl"
BINARY_DIR "${CMAKE_BINARY_DIR}/deps/curl"... |
Make the default build type a little cleverer | # Set a default build type if none was specified
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
message(STATUS "Setting build type to 'Debug' as none was specified.")
set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build." FORCE)
# Set the possible values of build type for cmake-gui
set_... | # Set a default build type if none was specified
set(default_build_type "Release")
if(EXISTS "${CMAKE_SOURCE_DIR}/.git")
set(default_build_type "Debug")
endif()
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
message(STATUS "Setting build type to '${default_build_type}' as none was specified.")
set(CM... |
Check for 3 UNIX methods we use. | # vim: set ts=2 sts=2 sw=2 fdm=indent
###############################################################################
# Author: Jacky Alciné <me@jalcine.me>
#
# Wintermute is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free So... | # vim: set ts=2 sts=2 sw=2 fdm=indent
###############################################################################
# Author: Jacky Alciné <me@jalcine.me>
#
# Wintermute is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free So... |
Remove the special rpath for Apple | # Some default installation locations. These should be global, with any project
# specific locations added to the end. These paths are all relative to the
# install prefix.
#
# These paths attempt to adhere to the FHS, and are similar to those provided
# by autotools and used in many Linux distributions.
if(NOT INSTALL... | # Some default installation locations. These should be global, with any project
# specific locations added to the end. These paths are all relative to the
# install prefix.
#
# These paths attempt to adhere to the FHS, and are similar to those provided
# by autotools and used in many Linux distributions.
if(NOT INSTALL... |
Update Flatbuffers to include CPack fix | # Copyright 2018 Google LLC
#
# 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 agreed to in writing, ... | # Copyright 2018 Google LLC
#
# 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 agreed to in writing, ... |
Fix the URL to the Chromaprint page | prefix=${CMAKE_INSTALL_PREFIX}
exec_prefix=${EXEC_INSTALL_PREFIX}
libdir=${LIB_INSTALL_DIR}
includedir=${INCLUDE_INSTALL_DIR}
Name: ${PROJECT_NAME}
Description: Audio fingerprint library
URL: http://wiki.acoustid.org/wiki/Chromaprint
Version: ${PROJECT_VERSION}
Libs: -L${LIB_INSTALL_DIR} -lchromaprint
Cflags: -I${INCL... | prefix=${CMAKE_INSTALL_PREFIX}
exec_prefix=${EXEC_INSTALL_PREFIX}
libdir=${LIB_INSTALL_DIR}
includedir=${INCLUDE_INSTALL_DIR}
Name: ${PROJECT_NAME}
Description: Audio fingerprint library
URL: http://acoustid.org/chromaprint
Version: ${PROJECT_VERSION}
Libs: -L${LIB_INSTALL_DIR} -lchromaprint
Cflags: -I${INCLUDE_INSTAL... |
Fix output of compile commands by CMake for YouCompleteMe | set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
configure_file(
${${PACKAGE_NAME}_SOURCE_DIR}/cmake/.ycm_extra_conf.py.in
${${PACKAGE_NAME}_SOURCE_DIR}/.ycm_extra_conf.py
@ONLY
)
| set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE BOOL "Enable/Disable output of compile commands during generation." FORCE)
configure_file(
${${PACKAGE_NAME}_SOURCE_DIR}/cmake/.ycm_extra_conf.py.in
${${PACKAGE_NAME}_SOURCE_DIR}/.ycm_extra_conf.py
@ONLY
)
|
Enable tracing memory errors with ctest-valgrind also for tests controlled by shell scripts. | set(CTEST_PROJECT_NAME "Vigra")
set(CTEST_NIGHTLY_START_TIME "01:00:00 UTC")
set(CTEST_DROP_METHOD "http")
set(CTEST_DROP_SITE "rubens")
set(CTEST_DROP_LOCATION "/cdash/submit.php?project=Vigra")
set(CTEST_DROP_SITE_CDASH TRUE)
| set(CTEST_PROJECT_NAME "Vigra")
set(CTEST_NIGHTLY_START_TIME "01:00:00 UTC")
set(CTEST_DROP_METHOD "http")
set(CTEST_DROP_SITE "rubens")
set(CTEST_DROP_LOCATION "/cdash/submit.php?project=Vigra")
set(CTEST_DROP_SITE_CDASH TRUE)
SET(MEMORYCHECK_COMMAND_OPTIONS "--trace-children=yes")
|
Update to version 0.1.0 for alpha 1 (va01) | # Version info
set(SimpleITK_Major 0)
set(SimpleITK_Minor 0)
set(SimpleITK_Patch 0)
include(GetGitRevisionDescription)
get_git_head_revision(GIT_REFSPEC GIT_SHA1)
git_describe(GIT_TAG)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/Code/Common/src/sitkVersion.cxx.in" "${CMAKE_CURRENT_BINARY_DIR}/Code/Common/src/sitkVers... | # Version info
set(SimpleITK_Major 0)
set(SimpleITK_Minor 1)
set(SimpleITK_Patch 0)
include(GetGitRevisionDescription)
get_git_head_revision(GIT_REFSPEC GIT_SHA1)
git_describe(GIT_TAG)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/Code/Common/src/sitkVersion.cxx.in" "${CMAKE_CURRENT_BINARY_DIR}/Code/Common/src/sitkVers... |
Make hook initialization quiet as well | set(hooks_directory
"${vistk_source_dir}/.git/hooks")
add_custom_command(
OUTPUT "${hooks_directory}/.git"
COMMAND "${GIT_EXECUTABLE}"
init
COMMAND "${GIT_EXECUTABLE}"
remote add origin
../..
WORKING_DIRECTORY
"${hooks_directory}"
COMMENT "Initializing the hooks rep... | set(hooks_directory
"${vistk_source_dir}/.git/hooks")
add_custom_command(
OUTPUT "${hooks_directory}/.git"
COMMAND "${GIT_EXECUTABLE}"
init
--quiet
COMMAND "${GIT_EXECUTABLE}"
remote add origin
../..
WORKING_DIRECTORY
"${hooks_directory}"
COMMENT "Initiali... |
Fix 32-bit gcc builds for assembler too Add -m32 flag for ASM as well as C and C++ | # Copyright (c) 2017, Ruslan Baratov
# All rights reserved.
if(DEFINED POLLY_FLAGS_32BIT_CMAKE)
return()
else()
set(POLLY_FLAGS_32BIT_CMAKE 1)
endif()
include(polly_add_cache_flag)
polly_add_cache_flag(CMAKE_CXX_FLAGS "-m32")
polly_add_cache_flag(CMAKE_C_FLAGS "-m32")
| # Copyright (c) 2017, Ruslan Baratov
# All rights reserved.
if(DEFINED POLLY_FLAGS_32BIT_CMAKE)
return()
else()
set(POLLY_FLAGS_32BIT_CMAKE 1)
endif()
include(polly_add_cache_flag)
polly_add_cache_flag(CMAKE_CXX_FLAGS "-m32")
polly_add_cache_flag(CMAKE_C_FLAGS "-m32")
polly_add_cache_flag(CMAKE_ASM_FLAGS "-m32")... |
Change version number to 1.0.5 | # We hardcode the version numbers since we cannot determine versions during
# configure stage.
set (vv_version_major 1)
set (vv_version_minor 0)
set (vv_version_patch 4)
set (vv_version_suffix)
set (vv_version "${vv_version_major}.${vv_version_minor}")
# Enable CPack packaging.
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "V... | # We hardcode the version numbers since we cannot determine versions during
# configure stage.
set (vv_version_major 1)
set (vv_version_minor 0)
set (vv_version_patch 5)
set (vv_version_suffix)
set (vv_version "${vv_version_major}.${vv_version_minor}")
# Enable CPack packaging.
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "V... |
Fix typo that CMake 3 complained about. | # Sets for the current directory (and below) the testsuite to use.
# This macro should be used with the AddSTPGTest function.
macro(AddGTestSuite TESTSUITENAME)
set(TESTSUITE "${TESTSUITENAME}") # Unit test group name
# Setup custom target
add_custom_target(${TESTSUITE})
add_dependencies(check ${TESTSUI... | # Sets for the current directory (and below) the testsuite to use.
# This macro should be used with the AddSTPGTest function.
macro(AddGTestSuite TESTSUITENAME)
set(TESTSUITE "${TESTSUITENAME}") # Unit test group name
# Setup custom target
add_custom_target(${TESTSUITE})
add_dependencies(check ${TESTSUI... |
Fix a copy-paste error in the header | # Locate the Vulkan SDK
# This module defines
# Vulkan_FOUND, if false, do not try to link to Lua
# Vulkan_INCLUDE_DIR
# Vulkan_LIBRARY
#
# Specifying either Qt5_ROOT_DIR or Qt5_QMAKE_EXECUTABLE is enough
# to find the entire Qt5 install.
FIND_LIBRARY(Vulkan_LIBRARY
NAMES vulkan-1 vulkan
PATH_SUFFIXES lib64 li... | # Locate the Vulkan SDK
# This module defines
# Vulkan_FOUND
# Vulkan_INCLUDE_DIR
# Vulkan_LIBRARY
#
# Specifying either Qt5_ROOT_DIR or Qt5_QMAKE_EXECUTABLE is enough
# to find the entire Qt5 install.
FIND_LIBRARY(Vulkan_LIBRARY
NAMES vulkan-1 vulkan
PATH_SUFFIXES lib64 lib Bin
PATHS
${VK_SDK_PATH}
$... |
Remove some extra deps that cause build to fail on travis CI. | FIND_SNAP_SYS_PACKAGE(
NAME SYS-qt4
LIBRARY_NAMES
libQt3Support.so libQt5ScriptTools.so libQt5V8.so libQtCLucene.so libQtDBus.so libQtDesignerComponents.so libQtGui.so libQtNetwork.so libQtScript.so libQtSql.so libQtTest.so libQtXml.so libQt5Script.so lib... | FIND_SNAP_SYS_PACKAGE(
NAME SYS-qt4
LIBRARY_NAMES libQtCore.so libQtGui.so libQtNetwork.so libQtXml.so
#libQt3Support.so libQtCLucene.so libQtDBus.so libQtScript.so libQtSql.so libQtTest.so libQtDeclarative.so libQtDesigner.so libQtDesignerComponents.so ... |
Include ExternalProject before using it. | 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_... | include(ExternalProject)
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}
PR... |
Increment version to VTK 6.3.0 | # VTK version number components.
set(VTK_MAJOR_VERSION 6)
set(VTK_MINOR_VERSION 2)
set(VTK_BUILD_VERSION 0)
| # VTK version number components.
set(VTK_MAJOR_VERSION 6)
set(VTK_MINOR_VERSION 3)
set(VTK_BUILD_VERSION 0)
|
Remove spurious "-" in macro | MACRO(OPENCOG_ADD_ATOM_TYPES SCRIPT_FILE HEADER_FILE DEFINITIONS_FILE INHERITANCE_FILE SCM_FILE PYTHON_FILE)
ADD_CUSTOM_COMMAND (
COMMAND "${CMAKE_COMMAND}" -DSCRIPT_FILE=\"${CMAKE_CURRENT_SOURCE_DIR}/${SCRIPT_FILE}\" -DHEADER_FILE=\"${CMAKE_CURRENT_BINARY_DIR}/${HEADER_FILE}\" -DDEFINITIONS_FILE=\"${CMAKE_... | MACRO(OPENCOG_ADD_ATOM_TYPES SCRIPT_FILE HEADER_FILE DEFINITIONS_FILE INHERITANCE_FILE SCM_FILE PYTHON_FILE)
ADD_CUSTOM_COMMAND (
COMMAND "${CMAKE_COMMAND}" -DSCRIPT_FILE=\"${CMAKE_CURRENT_SOURCE_DIR}/${SCRIPT_FILE}\" -DHEADER_FILE=\"${CMAKE_CURRENT_BINARY_DIR}/${HEADER_FILE}\" -DDEFINITIONS_FILE=\"${CMAKE_... |
Update HigherOrderAccurateGradient module for style fixes. | # Contact: Matt McCormick <matt.mccormick@kitware.com>
itk_fetch_module(HigherOrderAccurateGradient
"This module contains a filter to compute higher order
accurate numerical derivatives and gradients from an input scalar image.
field from a displacement field image.
Higher Order Accurate Derivative and Gradient... | # Contact: Matt McCormick <matt.mccormick@kitware.com>
itk_fetch_module(HigherOrderAccurateGradient
"This module contains a filter to compute higher order
accurate numerical derivatives and gradients from an input scalar image.
field from a displacement field image.
Higher Order Accurate Derivative and Gradient... |
Fix source grouping when '..\' is part of the path. | cmake_minimum_required (VERSION 3.2)
# Create groups for the test source files, this creates the proper directory structure under the
# Visual Studio filters
macro(create_source_groups _source_files _relative_directory)
foreach(_file IN ITEMS ${_source_files})
get_filename_component(_file_path "${_file}" PATH)
fi... | cmake_minimum_required (VERSION 3.2)
# Create groups for the test source files, this creates the proper directory structure under the
# Visual Studio filters
macro(create_source_groups _source_files _relative_directory)
foreach(_file IN ITEMS ${_source_files})
get_filename_component(_file_path "${_file}" PATH)
fi... |
Set proper location of baselines | #
# Create tests for examples
#
if (BUILD_TESTING)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
SET(MyTests "")
foreach(SOURCE_FILE ${ALL_FILES})
STRING(REPLACE ".cxx" "" TMP ${SOURCE_FILE})
STRING(REPLACE ${CMAKE_CURRENT_SOURCE_DIR}/ "" EXAMPLE ${TMP})
SET(MyTests ${MyTests} Test${EXAMPLE}.cxx)
FILE(WRITE ... | #
# Create tests for examples
#
if (BUILD_TESTING)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
SET(MyTests "")
foreach(SOURCE_FILE ${ALL_FILES})
STRING(REPLACE ".cxx" "" TMP ${SOURCE_FILE})
STRING(REPLACE ${CMAKE_CURRENT_SOURCE_DIR}/ "" EXAMPLE ${TMP})
SET(MyTests ${MyTests} Test${EXAMPLE}.cxx)
FILE(WRITE ... |
Remove reference to specific SDK include | set_property(GLOBAL PROPERTY python_APPEND_PROJECT_ONLY_FLAGS_CMAKE_C_FLAGS -I${CMAKE_OSX_SYSROOT}/usr/include)
add_external_project_or_use_system(python
CONFIGURE_COMMAND <SOURCE_DIR>/configure
--prefix=<INSTALL_DIR>
--enable-unicode=ucs4
--enable-shared
... | add_external_project_or_use_system(python
CONFIGURE_COMMAND <SOURCE_DIR>/configure
--prefix=<INSTALL_DIR>
--enable-unicode=ucs4
--enable-shared
)
set (pv_python_executable "${install_location}/bin/python3" CACHE INTERNAL "" FORCE)
add_extra_cmake_args(
... |
Update to modern CMake style | # 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)
find_path(OSMESA_INCLUDE_DIR GL/osmesa.h
... |
Add VTK_VERSION for older VTK versions | #
# Find the packages required by this module
#
find_package(VTK REQUIRED)
set(VERSION_MIN "5.9.20110419")
if (${VTK_VERSION} VERSION_LESS ${VERSION_MIN})
message(ERROR " VtkGlue requires VTK version ${VERSION_MIN} or newer but the current version is ${VTK_VERSION}")
endif()
# The VTK DICOMParser and vtkmetaio inclu... | #
# Find the packages required by this module
#
# Needed VTK version
set(VERSION_MIN "5.9.20110419")
# Look for VTK
find_package(VTK REQUIRED)
# Older versions of VTK (VTK 5.5 for example) do not have VTK_VERSION, in this
# case it needs to be defined manually
if(NOT VTK_VERSION)
set(VTK_VERSION "${VTK_MAJOR_VERSION... |
Use the good c++ runtime. | add_definitions(
--std=c++11
-Wall
-Wextra
-Wno-unknown-pragmas
-Wno-unused-local-typedefs
-Wno-unused-variable
)
if(${CMAKE_BUILD_TYPE} MATCHES "Debug")
add_definitions(
-g
-O0
)
endif()
if(${CMAKE_BUILD_TYPE} MATCHES "Release")
... | add_definitions(
--std=c++11
--stdlib=libc++
-Wall
-Wextra
-Wno-unknown-pragmas
-Wno-unused-local-typedefs
-Wno-unused-variable
)
if(${CMAKE_BUILD_TYPE} MATCHES "Debug")
add_definitions(
-g
-O0
)
endif()
if(${CMAKE_BUILD_TYPE... |
Use a global property for available sprokit fixes | # Fixes functions for the sprokit project
# The following functions are defined:
#
# sprokit_use_fixes
#
# Their syntax is:
#
# sprokit_use_fixes([name ...])
# Set up future targets to use fixes for Boost used in sprokit.
# Does not affect parent directories.
set(SPROKIT_FIXES "@sprokit_fixes@"
CACHE INT... | # Fixes functions for the sprokit project
# The following functions are defined:
#
# sprokit_use_fixes
#
# Their syntax is:
#
# sprokit_use_fixes([name ...])
# Set up future targets to use fixes for Boost used in sprokit.
# Does not affect parent directories. If called without arguments, all
# known fix... |
Remove pointless CMake version requirement | cmake_minimum_required(VERSION 2.8.6)
function(add_plugin name)
add_library(${name} MODULE ${ARGN})
set_target_properties(${name} PROPERTIES PREFIX "")
if(CMAKE_COMPILER_IS_GNUCC OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
set_property(TARGET ${name} APPEND_STRING PROPERTY COMPILE_FLAGS " -m32")
se... | function(add_plugin name)
add_library(${name} MODULE ${ARGN})
set_target_properties(${name} PROPERTIES PREFIX "")
if(CMAKE_COMPILER_IS_GNUCC OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
set_property(TARGET ${name} APPEND_STRING PROPERTY COMPILE_FLAGS " -m32")
set_property(TARGET ${name} APPEND_STRING... |
Make cabal settings a lot faster |
FIND_PROGRAM(CABAL_EXECUTABLE cabal)
IF (CABAL_EXECUTABLE)
EXECUTE_PROCESS(
COMMAND cabal list
OUTPUT_QUIET
ERROR_VARIABLE out
)
IF(out MATCHES "(.)*'hackage.haskell.org' does not exist(.)*")
MESSAGE(STATUS "Updating cabal package list...")
EXECUTE_PROCESS(
... |
FIND_PROGRAM(CABAL_EXECUTABLE cabal)
IF (CABAL_EXECUTABLE)
EXECUTE_PROCESS(
COMMAND cabal list nothing
OUTPUT_QUIET
ERROR_VARIABLE out
)
IF(out MATCHES "(.)*'hackage.haskell.org' does not exist(.)*")
MESSAGE(STATUS "Updating cabal package list...")
EXECUTE_PROCESS(... |
Add iostreams as required component | # Find and set Boost flags
if(NOT PCL_SHARED_LIBS OR WIN32)
set(Boost_USE_STATIC_LIBS ON)
endif(NOT PCL_SHARED_LIBS OR WIN32)
if(${CMAKE_VERSION} VERSION_LESS 2.8.5)
SET(Boost_ADDITIONAL_VERSIONS "1.43" "1.43.0" "1.44" "1.44.0" "1.45" "1.45.0" "1.46.1" "1.46.0" "1.46" "1.47" "1.47.0")
else(${CMAKE_VERSION} VERSIO... | # Find and set Boost flags
if(NOT PCL_SHARED_LIBS OR WIN32)
set(Boost_USE_STATIC_LIBS ON)
endif(NOT PCL_SHARED_LIBS OR WIN32)
if(${CMAKE_VERSION} VERSION_LESS 2.8.5)
SET(Boost_ADDITIONAL_VERSIONS "1.43" "1.43.0" "1.44" "1.44.0" "1.45" "1.45.0" "1.46.1" "1.46.0" "1.46" "1.47" "1.47.0")
else(${CMAKE_VERSION} VERSIO... |
Include CMake legacy module when used |
#-----------------------------------------------------------------------------
# Forbid downloading resources from the network during a build. This helps
# when building on systems without network connectivity to determine which
# resources much be obtained manually and made available to the build.
option(SimpleITK_FO... |
include(sitkSITKLegacyNaming)
#-----------------------------------------------------------------------------
# Forbid downloading resources from the network during a build. This helps
# when building on systems without network connectivity to determine which
# resources much be obtained manually and made available to... |
Update to ensure Metis compiles correctly on this branch with Max OSX | SET(THIRDPARTY_BUILD_METIS ON CACHE BOOL
"Build ModMetis library from ThirdParty")
IF (THIRDPARTY_BUILD_METIS)
INCLUDE(ExternalProject)
EXTERNALPROJECT_ADD(
modmetis-5.1.0
PREFIX ${TPSRC}
URL ${TPURL}/modmetis-5.1.0.tar.bz2
URL_MD5 "8f8313a768e4611d1748d10f88f3d702"
... | SET(THIRDPARTY_BUILD_METIS ON CACHE BOOL
"Build ModMetis library from ThirdParty")
IF (THIRDPARTY_BUILD_METIS)
INCLUDE(ExternalProject)
EXTERNALPROJECT_ADD(
modmetis-5.1.0
PREFIX ${TPSRC}
URL ${TPURL}/modmetis-5.1.0_1.tar.bz2
URL_MD5 "6c6816aea0f53db6c71b1d98ed4ad42b"
... |
Make sure find_package(qibuild) works when not using `qibuild configure` | ## 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.
# If someone is using qibuild configure, includes
# the dependencies.cmake file
if(EXISTS ${CMAKE_CURRENT_BINARY_DIR}/dependencies.cmake)
include(${CM... | ## 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.
# If someone is using qibuild configure, includes
# the dependencies.cmake file
if(EXISTS ${CMAKE_CURRENT_BINARY_DIR}/dependencies.cmake)
include(${CM... |
Add -mcpu flag to TOOLCHAIN_LD_FLAGS | # SPDX-License-Identifier: Apache-2.0
if(EXISTS ${SOC_DIR}/${ARCH}/${SOC_PATH}/tune_build_ops.cmake)
include(${SOC_DIR}/${ARCH}/${SOC_PATH}/tune_build_ops.cmake)
endif()
if(NOT DEFINED GCC_ARC_TUNED_CPU)
set(GCC_ARC_TUNED_CPU ${GCC_M_CPU})
endif()
list(APPEND TOOLCHAIN_C_FLAGS -mcpu=${GCC_ARC_TUNED_CPU})
| # SPDX-License-Identifier: Apache-2.0
if(EXISTS ${SOC_DIR}/${ARCH}/${SOC_PATH}/tune_build_ops.cmake)
include(${SOC_DIR}/${ARCH}/${SOC_PATH}/tune_build_ops.cmake)
endif()
if(NOT DEFINED GCC_ARC_TUNED_CPU)
set(GCC_ARC_TUNED_CPU ${GCC_M_CPU})
endif()
list(APPEND TOOLCHAIN_C_FLAGS -mcpu=${GCC_ARC_TUNED_CPU})
list(AP... |
Make sure glm is found so including the glm prefix | find_path(GLM_INCLUDE_DIR glm.hpp
PATH_SUFFIXES include/glm include
)
mark_as_advanced(GLM_INCLUDE_DIR)
if(GLM_INCLUDE_DIR)
set(GLM_FOUND TRUE)
endif()
if(GLM_FOUND)
if(NOT GLM_FIND_QUIETLY)
message(STATUS "Found GLM")
endif()
else()
if(GLM_FIND_REQUIRED)
message(FATAL_ERROR "Could n... | find_path(GLM_INCLUDE_DIR glm/glm.hpp
PATH_SUFFIXES include
)
mark_as_advanced(GLM_INCLUDE_DIR)
if(GLM_INCLUDE_DIR)
set(GLM_FOUND TRUE)
endif()
if(GLM_FOUND)
if(NOT GLM_FIND_QUIETLY)
message(STATUS "Found GLM")
endif()
else()
if(GLM_FIND_REQUIRED)
message(FATAL_ERROR "Could not find ... |
Improve CMake module for GLM | ##############################################################################
# Copyright (c) 2013 Leon Lynch
#
# This file is licensed under the terms of the MIT license.
# See LICENSE file.
##############################################################################
find_path(GLM_INCLUDE_DIR "glm/glm.hpp")
inclu... | ##############################################################################
# Copyright (c) 2013 Leon Lynch
#
# This file is licensed under the terms of the MIT license.
# See LICENSE file.
##############################################################################
# This will define:
#
# GLM_FOUND
# GLM_INCLUDE... |
Remove 'PIE' for Clang ThreadSanitizer | # Copyright (c) 2014, Ruslan Baratov
# All rights reserved.
if(DEFINED POLLY_FLAGS_SANITIZE_THREAD_CMAKE_)
return()
else()
set(POLLY_FLAGS_SANITIZE_THREAD_CMAKE_ 1)
endif()
include(polly_add_cache_flag)
polly_add_cache_flag(CMAKE_CXX_FLAGS "-fsanitize=thread")
polly_add_cache_flag(CMAKE_CXX_FLAGS "-fPIE")
polly_... | # Copyright (c) 2014-2017, Ruslan Baratov
# All rights reserved.
if(DEFINED POLLY_FLAGS_SANITIZE_THREAD_CMAKE_)
return()
else()
set(POLLY_FLAGS_SANITIZE_THREAD_CMAKE_ 1)
endif()
include(polly_add_cache_flag)
polly_add_cache_flag(CMAKE_CXX_FLAGS "-fsanitize=thread")
polly_add_cache_flag(CMAKE_CXX_FLAGS "-g")
pol... |
Fix regression in MSVC runtime flag | # Copyright 2017 gRPC authors.
#
# 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 agreed to in writing... | # Copyright 2017 gRPC authors.
#
# 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 agreed to in writing... |
Update pybind dependency to v2.2.4 | cmake_minimum_required(VERSION 3.1)
project(pybind11-download NONE)
include(ExternalProject)
ExternalProject_Add(pybind11
GIT_REPOSITORY https://github.com/pybind/pybind11.git
GIT_TAG 5ef1af138dc3ef94c05274ae554e70d64cd589bf # 2.2.3 + #1371 merged
SOURCE_DIR "${CMAKE_BINARY_DIR}/pybind1... | cmake_minimum_required(VERSION 3.1)
project(pybind11-download NONE)
include(ExternalProject)
ExternalProject_Add(pybind11
GIT_REPOSITORY https://github.com/pybind/pybind11.git
GIT_TAG v2.2.4
SOURCE_DIR "${CMAKE_BINARY_DIR}/pybind11"
BINARY_DIR ""
CONFIGURE_COMMAND ""
... |
Add a missing case of TO_CMAKE_PATH | function(find_compiler_rt_library name variable)
set(CLANG_COMMAND ${CMAKE_CXX_COMPILER} ${SANITIZER_COMMON_CFLAGS}
"--rtlib=compiler-rt" "--print-libgcc-file-name")
if (CMAKE_CXX_COMPILER_ID MATCHES Clang AND CMAKE_CXX_COMPILER_TARGET)
list(APPEND CLANG_COMMAND "--target=${CMAKE_CXX_COMPILER_TARGET}")
... | function(find_compiler_rt_library name variable)
set(CLANG_COMMAND ${CMAKE_CXX_COMPILER} ${SANITIZER_COMMON_CFLAGS}
"--rtlib=compiler-rt" "--print-libgcc-file-name")
if (CMAKE_CXX_COMPILER_ID MATCHES Clang AND CMAKE_CXX_COMPILER_TARGET)
list(APPEND CLANG_COMMAND "--target=${CMAKE_CXX_COMPILER_TARGET}")
... |
Fix for CMake 1.8, which does not have DEFINED test. | # Macro to provide an option only if a set of other variables are ON.
# Example invocation:
#
# VTK_DEPENDENT_OPTION(USE_FOO "Use Foo" ON "USE_BAR;USE_ZOT" OFF)
#
# If both USE_BAR and USE_ZOT are true, this provides an option called
# USE_FOO that defaults to ON. Otherwise, it sets USE_FOO to OFF. If
# the status o... | # Macro to provide an option only if a set of other variables are ON.
# Example invocation:
#
# VTK_DEPENDENT_OPTION(USE_FOO "Use Foo" ON "USE_BAR;USE_ZOT" OFF)
#
# If both USE_BAR and USE_ZOT are true, this provides an option called
# USE_FOO that defaults to ON. Otherwise, it sets USE_FOO to OFF. If
# the status o... |
Add compile switch to warn about shadowed variables or functions. | SET (CMAKE_C_COMPILER "gcc")
SET (CMAKE_CXX_COMPILER "g++")
SET(CMAKE_C_FLAGS "-pipe -Wall -Wextra -Wwrite-strings -std=c99 -pedantic -O2 -flto -fwhole-program -fomit-frame-pointer" CACHE STRING "" FORCE)
#SET(CMAKE_C_FLAGS "-pipe -Wall -Wextra -Wwrite-strings -std=c99 -pedantic -O0 -ggdb" CACHE STRING "" FORCE)
SET (... | SET (CMAKE_C_COMPILER "gcc")
SET (CMAKE_CXX_COMPILER "g++")
SET(CMAKE_C_FLAGS "-pipe -Wall -Wshadow -Wextra -Wwrite-strings -std=c99 -pedantic -O2 -flto -fwhole-program -fomit-frame-pointer" CACHE STRING "" FORCE)
#SET(CMAKE_C_FLAGS "-pipe -Wall -Wextra -Wwrite-strings -std=c99 -pedantic -O0 -ggdb" CACHE STRING "" FOR... |
Bring no_libgcc back to v2.7 | # 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.
# Zephyr cmake system looks into ${TOOLCHAIN_ROOT}, but we just send
# this out to the copy in ${ZEPHYR_BASE}.
include("${ZEPHYR_BASE}/cmake/compiler/gcc/... | # 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.
# Zephyr cmake system looks into ${TOOLCHAIN_ROOT}, but we just send
# this out to the copy in ${ZEPHYR_BASE}.
include("${ZEPHYR_BASE}/cmake/compiler/gcc/... |
Update to KWStyle conformant version | itk_fetch_module(SkullStrip
"A class to perform automatic skull-stripping for neuroimage analysis."
GIT_REPOSITORY https://github.com/lorensen/skullStrip.git
GIT_TAG master
)
| itk_fetch_module(SkullStrip
"A class to perform automatic skull-stripping for neuroimage analysis."
GIT_REPOSITORY https://github.com/lorensen/skullStrip.git
# April 7, 2015 Fixed KWStyle issues
GIT_TAG 2c4ded1afd24607de921e37cf56693cc5fa05570
)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.