Instruction stringlengths 14 778 | input_code stringlengths 0 4.24k | output_code stringlengths 1 5.44k |
|---|---|---|
Disable in source builds the cmake way | # 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 ... |
Fix sha sum of lib-cpp-pre v1.3.2 | 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 JLink tools for debug and download support | include($ENV{ZEPHYR_BASE}/boards/common/openocd.board.cmake)
| set_ifndef(STLINK_FW stlink)
if(STLINK_FW STREQUAL jlink)
board_runner_args(jlink "--device=stm32f070rb" "--speed=4000")
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
elseif(STLINK_FW STREQUAL stlink)
include($ENV{ZEPHYR_BASE}/boards/common/openocd.board.cmake)
endif()
|
Revert "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})
| # 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... |
Fix cmake file for openvr |
# module openvr
option(TORQUE_OPENVR "Enable openvr module" OFF)
mark_as_advanced(TORQUE_OPENVR)
if(TORQUE_OPENVR)
if(TORQUE_OCULUSVR_SDK_PATH STREQUAL "")
set(TORQUE_OPENVR_SDK_PATH "" CACHE PATH "openvr library path" FORCE)
endif()
else() # hide variable
set(TORQUE_OPENVR_SDK_PATH "" CACHE INTERNAL "" FORCE... |
# module openvr
option(TORQUE_OPENVR "Enable openvr module" OFF)
mark_as_advanced(TORQUE_OPENVR)
if(TORQUE_OPENVR)
if(TORQUE_OPENVR_SDK_PATH STREQUAL "")
set(TORQUE_OPENVR_SDK_PATH "" CACHE PATH "openvr library path" FORCE)
endif()
else() # hide variable
set(TORQUE_OPENVR_SDK_PATH "" CACHE INTERNAL "" FORCE)
en... |
Extend template config script to chose either build or build-debug directory |
# This config script tries to locate the project either in its source tree
# of from an install location.
#
# Please adjust the list of submodules to search for.
# List of modules
set(MODULE_NAMES
baselib
fiblib
)
# Macro to search for a specific module
macro(find_module FILENAME)
if(EXISTS "${FILENAM... |
# This config script tries to locate the project either in its source tree
# of from an install location.
#
# Please adjust the list of submodules to search for.
# List of modules
set(MODULE_NAMES
baselib
fiblib
)
# Macro to search for a specific module
macro(find_module FILENAME)
if(EXISTS "${FILENAM... |
Fix dependeces between build-{ep} targets | macro(EP_AddCustomTargets ep)
## #############################################################################
## Git update
## #############################################################################
if (EXISTS ${source_dir}/.git)
add_custom_target(update-${ep}
COMMAND git pull --ff-only
WORKING_DIR... | macro(EP_AddCustomTargets ep)
## #############################################################################
## Git update
## #############################################################################
if (EXISTS ${source_dir}/.git)
add_custom_target(update-${ep}
COMMAND git pull --ff-only
WORKING_DIR... |
Update windows flags for Qt 4.8.6 (assumes msvc 2012 for now) | # fix the zdll.lib issue (qt wants the library to be named differently hence
# skipping using our zlib on windows. Let qt build its own zlib.)
add_external_project_or_use_system(
qt
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND <SOURCE_DIR>/configure
-prefix <INSTALL_DIR>
-confirm-li... | set(compiler_platform win32-msvc2012)
if (false)
set(compiler_platform win32-g++)
endif()
# fix the zdll.lib issue (qt wants the library to be named differently hence
# skipping using our zlib on windows. Let qt build its own zlib.)
add_external_project_or_use_system(
qt
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND <SOU... |
Remove custom environmental override for WikiExamples | #
# ITK WikiExamples
#
# If the environment var WikiExamplesTag exists, use it
if (NOT DEFINED ENV{WikiExamplesTag})
set(GIT_TAG 07f0e1622ca3eeed8b9c5b9665b066b785af86e8)
else()
set(GIT_TAG $ENV{WikiExamplesTag})
endif()
itk_fetch_module(WikiExamples
"A collection of examples that illustrate how to use ITK."
... | #
# ITK WikiExamples
#
itk_fetch_module(WikiExamples
"A collection of examples that illustrate how to use ITK."
GIT_REPOSITORY ${git_protocol}://github.com/InsightSoftwareConsortium/ITKWikiExamples.git
GIT_TAG 07f0e1622ca3eeed8b9c5b9665b066b785af86e8
)
|
Update FW with fix for crash w/ depth-rgb aligment | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "a365ab1f9d9b9a44afb00bb648e3bceb730fe797")
# "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 "1b93fa5bce981ec0624688db407231cf8e822b6d")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Update FW: implement RGB - Mono sync: capture time and sequence numbers | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "04b3c29581c258502fb50540f3954bd49aac7f90")
# "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 "dd9a974d93b0951de921c9223c434f8ce1960699")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Remove explicit dependency on MinimalPathExtraction module for itktubetk | ##############################################################################
#
# Library: TubeTK
#
# Copyright 2010 Kitware Inc. 28 Corporate Drive,
# Clifton Park, NY, 12065, USA.
#
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in comp... | ##############################################################################
#
# Library: TubeTK
#
# Copyright 2010 Kitware Inc. 28 Corporate Drive,
# Clifton Park, NY, 12065, USA.
#
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in comp... |
Increment version to VTK 6.1.0 | # VTK version number components.
set(VTK_MAJOR_VERSION 6)
set(VTK_MINOR_VERSION 0)
set(VTK_BUILD_VERSION 0)
| # VTK version number components.
set(VTK_MAJOR_VERSION 6)
set(VTK_MINOR_VERSION 1)
set(VTK_BUILD_VERSION 0)
|
Remove duplicative cache value writing for 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(CTEST_SITE "Travis")
set(CTEST_BUILD_NAME "Linux-$ENV{TRAVIS_BRANCH}")
set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
file(WRITE "${CTEST_BINARY_DIRECT... | set(CTEST_SOURCE_DIRECTORY "$ENV{TRAVIS_BUILD_DIR}")
set(CTEST_BINARY_DIRECTORY "$ENV{TRAVIS_BUILD_DIR}/_build")
include(${CTEST_SOURCE_DIRECTORY}/CTestConfig.cmake)
set(CTEST_SITE "Travis")
set(CTEST_BUILD_NAME "Linux-$ENV{TRAVIS_BRANCH}")
set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
ctest_start("Continuous")
ctest_c... |
Update FW: fix enabling MIPI clocks for 4-lane ports | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "47e069cc7f16d29b37e17b2923322bc9824ebed4")
# "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 "35d45ad291a6f988becc9663b6e8b2d58d4de24c")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Adjust zlib find tool to be inline with the rest | # - Find zlib
# Find the native ZLIB includes and library
#
# ZLIB_INCLUDE_DIR - where to find zlib.h, etc.
# ZLIB_LIBRARIES - List of libraries when using zlib.
# ZLIB_FOUND - True if zlib found.
IF (ZLIB_INCLUDE_DIR)
# Already in cache, be silent
SET(ZLIB_FIND_QUIETLY TRUE)
ENDIF (ZLIB_INCLUDE_DIR)
... | FIND_PATH(ZLIB_INCLUDE_DIR zlib.h)
FIND_LIBRARY(ZLIB_LIBRARY z)
MARK_AS_ADVANCED(ZLIB ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(ZLIB "zlib is required" ZLIB_INCLUDE_DIR ZLIB_LIBRARY)
INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIR}) |
Improve Qt5 package depends file | find_package(Qt5 COMPONENTS ${Qt5_REQUIRED_COMPONENTS_BY_MODULE} REQUIRED QUIET)
foreach(_component ${Qt5_REQUIRED_COMPONENTS_BY_MODULE})
list(APPEND ALL_LIBRARIES ${Qt5${_component}_LIBRARIES})
endforeach()
| find_package(Qt5 COMPONENTS ${Qt5_REQUIRED_COMPONENTS_BY_MODULE} REQUIRED QUIET)
foreach(qt5_component ${Qt5_REQUIRED_COMPONENTS_BY_MODULE})
list(APPEND ALL_LIBRARIES Qt5::${qt5_component})
endforeach()
|
Update release version to 2.0.1 | #
# ONLY MODIFY TO CHANGE VERSION
#
# The number of commits since last this file has changed is used to
# define "dev" and "post", modification of this file will reset that
# version.
#
# Version info
set(SimpleITK_VERSION_MAJOR 2)
set(SimpleITK_VERSION_MINOR 0)
set(SimpleITK_VERSION_PATCH 0)
#set(SimpleITK_VERSION_T... | #
# ONLY MODIFY TO CHANGE VERSION
#
# The number of commits since last this file has changed is used to
# define "dev" and "post", modification of this file will reset that
# version.
#
# Version info
set(SimpleITK_VERSION_MAJOR 2)
set(SimpleITK_VERSION_MINOR 0)
set(SimpleITK_VERSION_PATCH 1)
#set(SimpleITK_VERSION_T... |
Fix extra semicolon in compile/link flags | # SampPlugin.cmake
#
# Functions:
# add_samp_plugin(name [sources...])
#
# Supported platforms:
# Windows
# Linux
#
# Supported compilers:
# GCC
# MinGW
# Microsoft Visual C++
function(add_samp_plugin name)
add_library(${name} MODULE ${ARGN})
set_target_properties(${name} PROPERTIES PREFIX "")
if(C... | # SampPlugin.cmake
#
# Functions:
# add_samp_plugin(name [sources...])
#
# Supported platforms:
# Windows
# Linux
#
# Supported compilers:
# GCC
# MinGW
# Microsoft Visual C++
function(add_samp_plugin name)
add_library(${name} MODULE ${ARGN})
set_target_properties(${name} PROPERTIES PREFIX "")
if(C... |
Remove faulty line from travis CI cmake script | set(CTEST_SOURCE_DIRECTORY "$ENV{TRAVIS_BUILD_DIR}")
set(CTEST_BINARY_DIRECTORY "$ENV{TRAVIS_BUILD_DIR}/_build")
include(${CTEST_SOURCE_DIRECTORY}/CTestConfig.cmake)
set(CTEST_SITE Travis)
set(CTEST_BUILD_NAME "Linux-$ENV{TRAVIS_BRANCH}")
set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
ctest_start(Continuous)
ctest_confi... | set(CTEST_SOURCE_DIRECTORY "$ENV{TRAVIS_BUILD_DIR}")
set(CTEST_BINARY_DIRECTORY "$ENV{TRAVIS_BUILD_DIR}/_build")
set(CTEST_SITE Travis)
set(CTEST_BUILD_NAME "Linux-$ENV{TRAVIS_BRANCH}")
set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
ctest_start(Continuous)
ctest_configure()
ctest_test(RETURN_VALUE res)
if(NOT res EQUAL... |
Create imported target in find module | # FindBenchmark
# ---------
#
# Find google benchmark include dirs and libraries
#
# The following variables are optionally searched for defaults
# benchmark_ROOT_DIR: Base directory where all benchmark components are found
#
# Once done this will define
# benchmark_FOUND - System has benchmark
# benchmark_INCLUDE_DIR... | # FindBenchmark
# ---------
#
# Find google benchmark include dirs and libraries
#
# The following variables are optionally searched for defaults
# benchmark_ROOT_DIR: Base directory where all benchmark components are found
#
# Once done this will define
# benchmark_FOUND - System has benchmark
# benchmark_INCLUDE_DIR... |
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 "4edb4923933e4cf2750f1958e4dee77de2cdca3f")
# "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 "ebd8f842de48304a24a07bb62e7f9b8854e78601")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Update FW: improved focus for IMX214, lowered range | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "8ebbc98374f6970e227804c235e87e8801043bf1")
# "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 "28e8a2ae69b9c6cebbb6b4cf920f21d5b3d7a8fe")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Update FW with xlink thread priority changes | # 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 "")
| # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "28c625387fce2d731328cb072f959435ab29458b")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Update GTest version to 1.10.0 in super build | # Make sure this file is included only once
get_filename_component(CMAKE_CURRENT_LIST_FILENAME ${CMAKE_CURRENT_LIST_FILE} NAME_WE)
if(${CMAKE_CURRENT_LIST_FILENAME}_FILE_INCLUDED)
return()
endif()
set(${CMAKE_CURRENT_LIST_FILENAME}_FILE_INCLUDED 1)
set(proj GTest)
set(GTEST_GIT_REPOSITORY "${git_protocol}://github.... | # Make sure this file is included only once
get_filename_component(CMAKE_CURRENT_LIST_FILENAME ${CMAKE_CURRENT_LIST_FILE} NAME_WE)
if(${CMAKE_CURRENT_LIST_FILENAME}_FILE_INCLUDED)
return()
endif()
set(${CMAKE_CURRENT_LIST_FILENAME}_FILE_INCLUDED 1)
set(proj GTest)
set(GTEST_GIT_REPOSITORY "${git_protocol}://github.... |
Update VTK minimum version (for release) | #
# 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... | #
# Find the packages required by this module
#
# Needed VTK version
set(VERSION_MIN "5.10.0")
# 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}.${VT... |
Disable test-stressproof for the time being | #---Custom CTest settings---------------------------------------------------
set(CTEST_CUSTOM_TESTS_IGNORE ${CTEST_CUSTOM_TESTS_IGNORE}
test-stressgui)
if(WIN32)
set(CTEST_CUSTOM_TESTS_IGNORE ${CTEST_CUSTOM_TESTS_IGNORE}
test-tcollex)
endif()
if(CTEST_BUILD_NAME MATCHES icc14) # sse tests of vc fail ... | #---Custom CTest settings---------------------------------------------------
set(CTEST_CUSTOM_TESTS_IGNORE ${CTEST_CUSTOM_TESTS_IGNORE}
test-stressgui
test-stressproof)
if(WIN32)
set(CTEST_CUSTOM_TESTS_IGNORE ${CTEST_CUSTOM_TESTS_IGNORE}
test-tcollex)
endif()
if(CTEST_BUILD_NAME MATCHES icc14) # s... |
Tweak CPack settings for Windows | # Copyright (c) 2012 Stefan Eilemann <eile@eyescale.ch>
# Info: http://www.itk.org/Wiki/CMake:Component_Install_With_CPack
set(CPACK_PACKAGE_VENDOR "vmmlib.sourceforge.net")
set(CPACK_PACKAGE_CONTACT "Stefan Eilemann <eile@eyescale.ch>")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY
"Templatized C++ vector and matrix math ... | # Copyright (c) 2012 Stefan Eilemann <eile@eyescale.ch>
# Info: http://www.itk.org/Wiki/CMake:Component_Install_With_CPack
set(CPACK_PACKAGE_VENDOR "vmmlib.sourceforge.net")
set(CPACK_PACKAGE_CONTACT "Stefan Eilemann <eile@eyescale.ch>")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY
"Templatized C++ vector and matrix math ... |
Update FW with object tracker KCF fixes | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "3d9de41af6dc3ea065110836fe05fe2d895795b9")
# "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 "f825fda83e06a392d79d2c787ce5e452fabe149b")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Install python packages into a standard location. | # Always install to install tree - packaging requires this even if virtualenv is used.
#install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/\${CMAKE_INSTALL_CONFIG_NAME}/opencmiss
# DESTINATION python/$<CONFIG>
# COMPONENT PythonBindings
# FILES_MATCHING PATTERN ${ZINC_SHARED_OBJECT_GLOB}
#)
install(TAR... | # Always install to install tree - packaging requires this even if virtualenv is used.
#install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/\${CMAKE_INSTALL_CONFIG_NAME}/opencmiss
# DESTINATION python/$<CONFIG>
# COMPONENT PythonBindings
# FILES_MATCHING PATTERN ${ZINC_SHARED_OBJECT_GLOB}
#)
set(_PYTHON... |
Fix one more detail in r368066 | include(${CMAKE_CURRENT_LIST_DIR}/Apple-lldb-base.cmake)
set(CMAKE_GENERATOR Xcode)
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.11 CACHE STRING "")
set(CMAKE_XCODE_GENERATE_SCHEME ON CACHE BOOL "")
set(LLDB_BUILD_FRAMEWORK ON CACHE BOOL "")
# Print a warning with instructions, if we
# build with Xcode and didn't use this cac... | include(${CMAKE_CURRENT_LIST_DIR}/Apple-lldb-base.cmake)
set(CMAKE_GENERATOR Xcode CACHE STRING "")
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.11 CACHE STRING "")
set(CMAKE_XCODE_GENERATE_SCHEME ON CACHE BOOL "")
set(LLDB_BUILD_FRAMEWORK ON CACHE BOOL "")
# Print a warning with instructions, if we
# build with Xcode and did... |
Update FW: RGB orientation fix for OAK-1 (new versions) and OAK-1-Lite | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "4fae48c5d938fb0fb7463116f1eb3a247813dbc6")
# "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 "bfc908b0cbaa949254b8ae1c1b68f51d8ba7cb01")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Fix RGB alignment remapping when configured color camera resolution is different from calibration one | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "921b8a6a29fa445ea1c250d76dbe8694b5768584")
# "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 "7f7e0e7aa2d705d8e618605800fd3c2447a866dd")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Comment on dependency rule for input files | #
# femusMacroBuildApplication.cmake
#
# Created by Simone Bnà
#
#
MACRO(femusMacroBuildApplication mainname appname)
# Build the executable
ADD_EXECUTABLE(${appname} ${PROJECT_SOURCE_DIR}/${mainname}.cpp)
# Link the executable to the petsc anf femttu libs
TARGET_LINK_LIBRARIES(${appname} femus)
TARGET_LINK_LIBR... | #
# femusMacroBuildApplication.cmake
#
# Created by Simone Bnà
#
#
MACRO(femusMacroBuildApplication mainname appname)
# Build the executable
ADD_EXECUTABLE(${appname} ${PROJECT_SOURCE_DIR}/${mainname}.cpp)
# Link the executable to the petsc anf femttu libs
TARGET_LINK_LIBRARIES(${appname} femus)
TARGET_LINK_LIBR... |
Use FIND_PACKAGE_HANDLE_STANDARD_ARGS Remove not necessary path Fix typo | # - Try to find the gnokii directory library
# Once done this will define
#
# GNOKII_FOUND - system has GNOKII
# GNOKII_INCLUDE_DIR - the GNOKII include directory
# GNOKII_LIBRARIES - The libraries needed to use GNOKII
if (GNOKII_INCLUDE_DIR)
# Already in cache, be silent
set(GNOKII_FIND_QUIETLY TRUE)
endif (GN... | # - Try to find the gnokii directory library
# Once done this will define
#
# GNOKII_FOUND - system has GNOKII
# GNOKII_INCLUDE_DIR - the GNOKII include directory
# GNOKII_LIBRARIES - The libraries needed to use GNOKII
if (GNOKII_INCLUDE_DIR AND GNOKII_LIBRARIES)
# Already in cache, be silent
set(GNOKII_FIND_QU... |
Improve UDT finder for Ubuntu packages | find_path(_udt_INCLUDE_DIR udt.h
HINTS ${UDT_ROOT}/include
PATHS /usr/include /usr/local/include /opt/local/include)
find_library(_udt_LIBRARY NAMES udt
HINTS ${UDT_ROOT}/lib
PATHS /usr/lib /usr/local/lib /opt/local/lib)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(UDT DEFAULT_MSG
... | find_path(_udt_INCLUDE_DIR udt.h
HINTS ${UDT_ROOT}/include
PATHS /usr/include /usr/local/include /opt/local/include /usr/include/udt)
find_library(_udt_LIBRARY NAMES udt
HINTS ${UDT_ROOT}/lib
PATHS /usr/lib /usr/local/lib /opt/local/lib)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS... |
Make compilation of rigid_docking dependent on FFTW. | ### the directory name
SET(DIRECTORY source/APPLICATIONS/UTILITIES)
### list all filenames of the directory here ###
SET(EXECUTABLES_LIST
add_hydrogens
assign_charges_from_rules
assign_radii_from_rules
assign_typenames_from_rules
atomtyper
calculate_RMSD
clip_protein_around_ligand
compute_docking_RMSD
create_... | ### the directory name
SET(DIRECTORY source/APPLICATIONS/UTILITIES)
### list all filenames of the directory here ###
SET(EXECUTABLES_LIST
add_hydrogens
assign_charges_from_rules
assign_radii_from_rules
assign_typenames_from_rules
atomtyper
calculate_RMSD
clip_protein_around_ligand
compute_docking_RMSD
create_... |
Add --enable-stdcall-fixup to ld flags on Windows | # SampPlugin.cmake
#
# Functions:
# add_samp_plugin(name [sources...])
#
# Supported platforms:
# Windows
# Linux
#
# Supported compilers:
# GCC
# MinGW
# Microsoft Visual C++
function(add_samp_plugin name)
add_library(${name} MODULE ${ARGN})
set_target_properties(${name} PROPERTIES PREFIX "")
if(C... | # SampPlugin.cmake
#
# Functions:
# add_samp_plugin(name [sources...])
#
# Supported platforms:
# Windows
# Linux
#
# Supported compilers:
# GCC
# MinGW
# Microsoft Visual C++
function(add_samp_plugin name)
add_library(${name} MODULE ${ARGN})
set_target_properties(${name} PROPERTIES PREFIX "")
if(C... |
Update FW: hotfix for stereo confidence threshold setting, it was overwritten to 200 | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "f34e1ec1450b659bd8ff8383eaff5b7f988cb6fc")
# "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 "b71584129b101b30e4632678c19d33b020c04c36")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Upgrade bundled eigen version to 3.2.8 | GetCompilers()
include(ExternalProject)
ExternalProject_Add(
Eigen3
PREFIX ${CMAKE_BINARY_DIR}/Eigen3
DOWNLOAD_DIR ${THIRD_PARTY_DIR}/Eigen3
URL http://bitbucket.org/eigen/eigen/get/3.1.4.tar.bz2
URL_MD5 15a7914c3768d51a3637fb3d64556a28
CMAKE_ARGS -DEIGEN_INCLUDE_INSTALL_DIR:PATH=${THIRD_PARTY_DIR}/include/eigen... | GetCompilers()
include(ExternalProject)
ExternalProject_Add(
Eigen3
PREFIX ${CMAKE_BINARY_DIR}/Eigen3
DOWNLOAD_DIR ${THIRD_PARTY_DIR}/Eigen3
URL https://bitbucket.org/eigen/eigen/get/3.2.8.tar.bz2
URL_MD5 9e3bfaaab3db18253cfd87ea697b3ab1
CMAKE_ARGS -DEIGEN_INCLUDE_INSTALL_DIR:PATH=${THIRD_PARTY_DIR}/include/eige... |
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... |
Remove build command from date build module | set(DATE_INSTALL_DIR ${CMAKE_THIRD_PARTY_DIR})
ExternalProject_Add(
date
GIT_REPOSITORY https://github.com/HowardHinnant/date.git
GIT_TAG 6a4d93a0bd8b56db68821067322c09ec37d0d8a9
CMAKE_ARGS -G ${CMAKE_GENERATOR} -DCURL_LIBRARY=${CURL_LIBRARY} -DCURL_INCLUDE_DIR=${CURL_INCLUDE_DIR} -DCMAKE_INSTALL_PREFIX=${DATE... | set(DATE_INSTALL_DIR ${CMAKE_THIRD_PARTY_DIR})
ExternalProject_Add(
date
GIT_REPOSITORY https://github.com/HowardHinnant/date.git
GIT_TAG 6a4d93a0bd8b56db68821067322c09ec37d0d8a9
CMAKE_ARGS -G ${CMAKE_GENERATOR} -DCURL_LIBRARY=${CURL_LIBRARY} -DCURL_INCLUDE_DIR=${CURL_INCLUDE_DIR} -DCMAKE_INSTALL_PREFIX=${DATE... |
Add project version major to cpack package name | set(CPACK_PACKAGE_VENDOR "Daniel Nicoletti")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "A Web Framework built on top of Qt, using the simple and elegant approach of Catalyst (Perl) framework.")
set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
set(CPACK_PACKAGE_CONTACT "Daniel Nicoletti <dantti12@gmai... | set(CPACK_PACKAGE_VENDOR "Daniel Nicoletti")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "A Web Framework built on top of Qt, using the simple and elegant approach of Catalyst (Perl) framework.")
set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
set(CPACK_PACKAGE_CONTACT "Daniel Nicoletti <dantti12@gmai... |
Set ctest update command to git. | ### dtkDart.cmake ---
##
## Author: Julien Wintz
## Copyright (C) 2008 - Julien Wintz, Inria.
## Created: Fri Jan 8 15:59:24 2010 (+0100)
## Version: $Id$
## Last-Updated: Fri Jan 8 16:03:01 2010 (+0100)
## By: Julien Wintz
## Update #: 4
###############################################################... | ### dtkDart.cmake ---
##
## Author: Julien Wintz
## Copyright (C) 2008 - Julien Wintz, Inria.
## Created: Fri Jan 8 15:59:24 2010 (+0100)
## Version: $Id$
## Last-Updated: Sat Feb 6 10:35:20 2010 (+0100)
## By: Julien Wintz
## Update #: 5
###############################################################... |
Update to version for WikiExamples | #
# ITK WikiExamples
#
itk_fetch_module(WikiExamples
"A collection of examples that illustrate how to use ITK."
GIT_REPOSITORY https://github.com/InsightSoftwareConsortium/ITKWikiExamples.git
# June 26, 2015
GIT_TAG 74e09f3e88cf2168e35af197e4b27a8686aa8f22
)
| #
# ITK WikiExamples
#
itk_fetch_module(WikiExamples
"A collection of examples that illustrate how to use ITK."
GIT_REPOSITORY https://github.com/InsightSoftwareConsortium/ITKWikiExamples.git
# July 09, 2015
GIT_TAG 1c53a9346e914959f1afb8df79cf449ff99ac7fa
)
|
Use single line for string argument, by-pass multi-line issues | option(ITK_USE_SYSTEM_GOOGLETEST "Use an outside build or install \
source of GoogleTest. Set GTEST_ROOT to specify location." ${ITK_USE_SYSTEM_LIBRARIES})
mark_as_advanced(ITK_USE_SYSTEM_GOOGLETEST)
| option(ITK_USE_SYSTEM_GOOGLETEST "Use an outside build or installed source of GoogleTest. Set GTEST_ROOT to specify location." ${ITK_USE_SYSTEM_LIBRARIES})
mark_as_advanced(ITK_USE_SYSTEM_GOOGLETEST)
|
Add -marm for building with generic toolchain |
#
# CMake defines to cross-compile to ARM/Linux on BCM2708 using glibc.
#
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_C_COMPILER arm-linux-gnueabihf-gcc)
SET(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++)
SET(CMAKE_ASM_COMPILER arm-linux-gnueabihf-gcc)
SET(CMAKE_SYSTEM_PROCESSOR arm)
#ADD_DEFINITIONS("-march=armv6")
add_def... |
#
# CMake defines to cross-compile to ARM/Linux on BCM2708 using glibc.
#
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_C_COMPILER arm-linux-gnueabihf-gcc)
SET(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++)
SET(CMAKE_ASM_COMPILER arm-linux-gnueabihf-gcc)
SET(CMAKE_SYSTEM_PROCESSOR arm)
#ADD_DEFINITIONS("-march=armv6")
add_def... |
Use Requires.private instead of Requires, patch by Rex Dieter | prefix=${CMAKE_INSTALL_PREFIX}
exec_prefix=${EXEC_INSTALL_PREFIX}
libdir=${LIB_INSTALL_DIR}
includedir=${INCLUDE_INSTALL_DIR}
Name: ${PROJECT_NAME}
Description: The Musicbrainz Client Library.
URL: http://musicbrainz.org/doc/libmusicbrainz
Version: ${PROJECT_VERSION}
Requires: neon >= 0.25, libdiscid
Libs: -L${LIB_INS... | prefix=${CMAKE_INSTALL_PREFIX}
exec_prefix=${EXEC_INSTALL_PREFIX}
libdir=${LIB_INSTALL_DIR}
includedir=${INCLUDE_INSTALL_DIR}
Name: ${PROJECT_NAME}
Description: The Musicbrainz Client Library.
URL: http://musicbrainz.org/doc/libmusicbrainz
Version: ${PROJECT_VERSION}
Requires.private: neon >= 0.25, libdiscid
Libs: -L$... |
Remove requirement for libdiscid from pkgconfig | prefix=${CMAKE_INSTALL_PREFIX}
exec_prefix=${EXEC_INSTALL_PREFIX}
libdir=${LIB_INSTALL_DIR}
includedir=${INCLUDE_INSTALL_DIR}
Name: ${PROJECT_NAME}
Description: The Musicbrainz Client Library.
URL: http://musicbrainz.org/doc/libmusicbrainz
Version: ${PROJECT_VERSION}
Requires.private: neon >= 0.25, libdiscid
Libs: -L$... | prefix=${CMAKE_INSTALL_PREFIX}
exec_prefix=${EXEC_INSTALL_PREFIX}
libdir=${LIB_INSTALL_DIR}
includedir=${INCLUDE_INSTALL_DIR}
Name: ${PROJECT_NAME}
Description: The Musicbrainz Client Library.
URL: http://musicbrainz.org/doc/libmusicbrainz
Version: ${PROJECT_VERSION}
Requires.private: neon >= 0.25
Libs: -L${LIB_INSTAL... |
Fix BridgeNumPy signed / unsigned short correspondance. | # 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 so LINUX can be used to check OS. | include(compilation)
include(deps)
if (APPLE)
include(mac)
endif()
if (LINUX)
include(linux)
endif()
if (WIN32)
include(win)
endif() | include(compilation)
include(deps)
if (APPLE)
include(mac)
endif()
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
SET(LINUX 1)
endif()
if (LINUX)
include(linux)
endif()
if (WIN32)
include(win)
endif() |
Update FW: patch EEPROM data for incorrectly programmed RGB spec translation, for manually ran calibration on CM3/CM4 boards. Was leading to wrong RGB-depth alignment | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "0db59ca9b81e4901f8bc49023fb8c0121be821a0")
# "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 "5813806b6f2de7aaa4c211e5d8aa8e98774da8c8")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Update FW: stereo fixes: LR-check flip, `depth` align to RGB | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "2ca9f51f803f2ebb587ffb7fdcea01d6638bdf6a")
# "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 "d26fdab6b0a66b09f0b3b6ca8d0dea50229278b7")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Use canonical INCLUDE(FindDoxygen) line to find doxygen executable |
FIND_PROGRAM(DOXYGEN_EXECUTABLE doxygen
PATHS "C:/Program Files/doxygen/bin"
ENV PATH
NO_DEFAULT_PATH
)
IF(DOXYGEN_EXECUTABLE-NOTFOUND)
ELSE(DOXYGEN_EXECUTABLE-NOTFOUND)
SET(DOXY_CONFIG "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile")
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
$... | INCLUDE(FindDoxygen)
IF(DOXYGEN_EXECUTABLE-NOTFOUND)
ELSE(DOXYGEN_EXECUTABLE-NOTFOUND)
SET(DOXY_CONFIG "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile")
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
${DOXY_CONFIG}
@ONLY )
ADD_CUSTOM_TARGET(DoxygenApiDocs ${DOXYGEN_EXECUTABLE} ${DOXY_C... |
Support for the Continuous build email notification | # Dashboard is opened for submissions for a 24 hour period starting at
# the specified NIGHLY_START_TIME. Time is specified in 24 hour format.
SET (NIGHTLY_START_TIME "23:00:00 EST")
# Dart server to submit results (used by client)
SET (DROP_SITE "public.kitware.com")
SET (DROP_LOCATION "/incoming")
SET (DROP_SITE_USE... | # Dashboard is opened for submissions for a 24 hour period starting at
# the specified NIGHLY_START_TIME. Time is specified in 24 hour format.
SET (NIGHTLY_START_TIME "23:00:00 EST")
# Dart server to submit results (used by client)
SET (DROP_SITE "public.kitware.com")
SET (DROP_LOCATION "/incoming")
SET (DROP_SITE_USE... |
Change wrong name in marco.cmake | include(${CMAKE_ROOT}/Modules/CheckTypeSize.cmake)
macro(CHECK_TYPE_SIZE_EX TYPE HEADER VARIABLE)
set(CMAKE_EXTRA_INCLUDE_FILES ${HEADER})
CHECK_TYPE_SIZE(${TYPE} ${VARIABLE})
if(HAVE_${VARIABLE})
set(HAVE_${VARIABLE} 1)
else()
set(HAVE_${VARIABLE} 0)
endif()
set(CMAKE_EXTRA_INCLUDE_FILES... | include(${CMAKE_ROOT}/Modules/CheckTypeSize.cmake)
macro(CHECK_TYPE_SIZE_EX TYPE HEADER VARIABLE)
set(CMAKE_EXTRA_INCLUDE_FILES ${HEADER})
CHECK_TYPE_SIZE(${TYPE} ${VARIABLE})
if(HAVE_${VARIABLE})
set(HAVE_${VARIABLE} 1)
else()
set(HAVE_${VARIABLE} 0)
endif()
set(CMAKE_EXTRA_INCLUDE_FILES... |
Change start time to UTC. | set(UPDATE_TYPE "true")
set(CTEST_PROJECT_NAME "libssh")
set(CTEST_NIGHTLY_START_TIME "01:00:00 CET")
set(CTEST_DROP_METHOD "http")
set(CTEST_DROP_SITE "test.libssh.org")
set(CTEST_DROP_LOCATION "/submit.php?project=libssh")
set(CTEST_DROP_SITE_CDASH TRUE)
| set(UPDATE_TYPE "true")
set(CTEST_PROJECT_NAME "libssh")
set(CTEST_NIGHTLY_START_TIME "01:00:00 UTC")
set(CTEST_DROP_METHOD "http")
set(CTEST_DROP_SITE "test.libssh.org")
set(CTEST_DROP_LOCATION "/submit.php?project=libssh")
set(CTEST_DROP_SITE_CDASH TRUE)
|
Fix issues with libpng for good | prusaslicer_add_cmake_project(PNG
GIT_REPOSITORY https://github.com/glennrp/libpng.git
GIT_TAG v1.6.35
DEPENDS ${ZLIB_PKG}
CMAKE_ARGS
-DPNG_SHARED=OFF
-DPNG_STATIC=ON
-DPNG_TESTS=OFF
)
if (MSVC)
add_debug_dep(dep_PNG)
endif ()
| prusaslicer_add_cmake_project(PNG
GIT_REPOSITORY https://github.com/glennrp/libpng.git
GIT_TAG v1.6.35
DEPENDS ${ZLIB_PKG}
CMAKE_ARGS
-DPNG_SHARED=OFF
-DPNG_STATIC=ON
-DPNG_PREFIX=prusaslicer_
-DPNG_TESTS=OFF
)
if (MSVC)
add_debug_dep(dep_PNG)
endif ()
|
Update FW with SDK update | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "eb69fc0283cf82608e6eccf6f37b1709a2db8b5b")
# "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 "673983dd2b693f267cb3cb11a4247ec4a38a6508")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Update for newer exclude variable | # the top-level README is used for describing this module, just
# re-used it for documentation here
get_filename_component( MY_CURENT_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
file( READ "${MY_CURENT_DIR}/README" DOCUMENTATION )
# itk_module() defines the module dependencies in ITKStreamingSinc
# ITKStreamingSinc depends... | # the top-level README is used for describing this module, just
# re-used it for documentation here
get_filename_component( MY_CURENT_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
file( READ "${MY_CURENT_DIR}/README" DOCUMENTATION )
# itk_module() defines the module dependencies in ITKStreamingSinc
# ITKStreamingSinc depends... |
Increase timeout for mitkPackage test | if(BUILD_TESTING)
#package testing
if(NOT MITK_FAST_TESTING)
# package testing in windows only for release
if(WIN32)
add_test(NAME mitkPackageTest CONFIGURATIONS Release
COMMAND ${CMAKE_COMMAND} --build ${MITK_BINARY_DIR} --config Release --target package)
set_tests_properties( m... | if(BUILD_TESTING)
#package testing
if(NOT MITK_FAST_TESTING)
# package testing in windows only for release
if(WIN32)
add_test(NAME mitkPackageTest CONFIGURATIONS Release
COMMAND ${CMAKE_COMMAND} --build ${MITK_BINARY_DIR} --config Release --target package)
set_tests_properties( m... |
Update package version and set the right dependencies for Fedora/Debian | set(CPACK_PACKAGE_VENDOR "Ultimaker")
set(CPACK_PACKAGE_CONTACT "Arjen Hiemstra <a.hiemstra@ultimaker.com>")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Uranium 3D Application Framework")
set(CPACK_PACKAGE_VERSION_MAJOR 15)
set(CPACK_PACKAGE_VERSION_MINOR 05)
set(CPACK_PACKAGE_VERSION_PATCH 90)
set(CPACK_RPM_PACKAGE_REQUIR... | set(CPACK_PACKAGE_VENDOR "Ultimaker")
set(CPACK_PACKAGE_CONTACT "Arjen Hiemstra <a.hiemstra@ultimaker.com>")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Uranium 3D Application Framework")
set(CPACK_PACKAGE_VERSION_MAJOR 15)
set(CPACK_PACKAGE_VERSION_MINOR 05)
set(CPACK_PACKAGE_VERSION_PATCH 93)
set(RPM_REQUIRES
"python... |
Add march flag to gcc x86 to enable SSE, again | # Copyright (c) 2013, Ruslan Baratov
# All rights reserved.
if(DEFINED POLLY_FLAGS_C_CXX_X86_CMAKE)
return()
else()
set(POLLY_FLAGS_C_CXX_X86_CMAKE 1)
endif()
include(polly_add_cache_flag)
polly_add_cache_flag(CMAKE_CXX_FLAGS "-m32")
polly_add_cache_flag(CMAKE_C_FLAGS "-m32 -march=native")
| # Copyright (c) 2013, Ruslan Baratov
# All rights reserved.
if(DEFINED POLLY_FLAGS_C_CXX_X86_CMAKE)
return()
else()
set(POLLY_FLAGS_C_CXX_X86_CMAKE 1)
endif()
include(polly_add_cache_flag)
polly_add_cache_flag(CMAKE_CXX_FLAGS "-m32 -march=native")
polly_add_cache_flag(CMAKE_C_FLAGS "-m32 -march=native")
|
Update FW: CAM-D (4th socket) tested, AR0234 support. Note: if AR0234 sensors are used, cannot be combined with other types at the moment (due to tuning blobs in use) | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "0f9a0ec2012a7cfe61c9eb945fbdd52a557d357d")
# "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 "a452469b565b39417056d50e20d97a978cda7f29")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Update FW - [ImageManip][bug fix] Properly align the maximum size of the calculated parameters for the warp filter | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "6852cf545fd02003cf106f58fe3a1ad464f5ad34")
# "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 "35d2c8c5f2b082326334c982d54ae16908f1315d")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Fix Cortex M7 flag passed to assembler | # Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
# Sets cpu core options
function(mbed_set_cpu_core_options target mbed_toolchain)
if(${mbed_toolchain} STREQUAL "GCC_ARM")
list(APPEND common_toolchain_options
"-mthumb"
"-mcpu=cortex-m7"
... | # Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
# Sets cpu core options
function(mbed_set_cpu_core_options target mbed_toolchain)
if(${mbed_toolchain} STREQUAL "GCC_ARM")
list(APPEND common_toolchain_options
"-mthumb"
"-mcpu=cortex-m7"
... |
Add Video label for _fetchData tests | # Include the midas script
include(${Video-Core-Common_SOURCE_DIR}/MIDAS.cmake)
# Macro to add a midas test with the "Video" label
macro(add_video_test)
midas_add_test(${ARGV})
set_property(TEST ${ARGV1} PROPERTY LABELS Video)
endmacro(add_video_test)
| # Include the midas script
include(${Video-Core-Common_SOURCE_DIR}/MIDAS.cmake)
# Macro to add a midas test with the "Video" label
macro(add_video_test)
midas_add_test(${ARGV})
set_property(TEST ${ARGV1} PROPERTY LABELS Video)
set_property(TEST ${ARGV1}_fetchData PROPERTY LABELS Video)
endmacro(add_video_test)
|
Use cdash on cmacslab2 machine due to 10-build per day restriction | ## 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... |
Make Rabbitmq_DIR take precidence over system paths | #Find the Rabbitmq C library
INCLUDE(LibFindMacros)
# Find the include directories
FIND_PATH(Rabbitmqc_INCLUDE_DIR
NAMES amqp.h
PATHS ${Rabbitmqc_DIR}/include
)
FIND_LIBRARY(Rabbitmqc_LIBRARY
NAMES rabbitmq
PATHS ${Rabbitmqc_DIR}/lib
)
SET(Rabbitmqc_PROCESS_INCLUDES Rabbitmqc_INCLUDE_DIR)
SET(Rabbitmqc_PROCE... | #Find the Rabbitmq C library
INCLUDE(LibFindMacros)
# Find the include directories
FIND_PATH(Rabbitmqc_INCLUDE_DIR
NAMES amqp.h
HINTS ${Rabbitmqc_DIR}/include
)
FIND_LIBRARY(Rabbitmqc_LIBRARY
NAMES rabbitmq
HINTS ${Rabbitmqc_DIR}/lib
)
SET(Rabbitmqc_PROCESS_INCLUDES Rabbitmqc_INCLUDE_DIR)
SET(Rabbitmqc_... |
Add sitk namespace alias on example page. | #
# Usage: cmake -D "PROJECT_SOURCE_DIR:PATH=${PROJECT_SOURCE_DIR}"
# -D "OUTPUT_FILE:PATH=${PROJECT_BINARY_DIR}/Examples.dox"
# -P GenerateExamplesDox.cmake
# This cmake script gets a lists of examples for the project and
# generates a file suitable for doxygen. The file is a list of
# "\e... | #
# Usage: cmake -D "PROJECT_SOURCE_DIR:PATH=${PROJECT_SOURCE_DIR}"
# -D "OUTPUT_FILE:PATH=${PROJECT_BINARY_DIR}/Examples.dox"
# -P GenerateExamplesDox.cmake
# This cmake script gets a lists of examples for the project and
# generates a file suitable for doxygen. The file is a list of
# "\e... |
Add /usr/local/Frameworks as another path to search. |
# Make the SWIG generated Python interface modules more portable by using rpath for the the Python dynamic library.
string(REPLACE "${LIST_SEPARATOR}" ";" SHARED_OBJECT_MODULES "${SHARED_OBJECT_MODULES}")
foreach(_M ${SHARED_OBJECT_MODULES})
execute_process(COMMAND ${INSTALL_NAME_TOOL_EXE} -change "/Library/Framewor... |
# Make the SWIG generated Python interface modules more portable by using rpath for the the Python dynamic library.
string(REPLACE "${LIST_SEPARATOR}" ";" SHARED_OBJECT_MODULES "${SHARED_OBJECT_MODULES}")
foreach(_M ${SHARED_OBJECT_MODULES})
execute_process(COMMAND ${INSTALL_NAME_TOOL_EXE} -change "/Library/Framewor... |
Handle new CMake 3.0 policy: CMP0026 | # --------------------------------------------------------------
# Indicate CMake 2.7 and above that we don't want to mix relative
# and absolute paths in linker lib lists.
# Run "cmake --help-policy CMP0003" for more information.
# --------------------------------------------------------------
if(COMMAND cmake_policy... | if(COMMAND cmake_policy)
# We don't want to mix relative and absolute paths in linker lib lists.
cmake_policy(SET CMP0003 NEW)
# Allow using the LOCATION target property.
if(NOT "${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 3.0)
cmake_policy(SET CMP0026 OLD)
endif(NOT "${CMAKE_MAJOR_VERSION}.${CMAKE_MI... |
Create a local copy of the legacy MSI, then upload | if (MSI_OUTPUT_LEGACY)
add_custom_target(packageupload
COMMAND rclone --transfers=1 --checkers=2 mkdir ${REPO_UPLOAD_CLOUD}:${VERSION_SHORT}
COMMAND rclone --transfers=1 --checkers=2 copy ${MSI_OUTPUT} ${REPO_UPLOAD_CLOUD}:${VERSION_SHORT}
COMMAND rclone --transfers=1 --checkers=2 copy ${MSI_OUTPUT} ${REP... | if (MSI_OUTPUT_LEGACY)
add_custom_target(packageupload
COMMAND rclone --transfers=1 --checkers=2 mkdir ${REPO_UPLOAD_CLOUD}:${VERSION_SHORT}
COMMAND rclone --transfers=1 --checkers=2 copy ${MSI_OUTPUT} ${REPO_UPLOAD_CLOUD}:${VERSION_SHORT}
COMMAND copy ${MSI_OUTPUT} ${MSI_OUTPUT_LEGACY}
COMMAND rclone... |
Fix SHA1 for manually downloaded hunter with git | # Copyright (c) 2013, 2015 Ruslan Baratov
# All rights reserved.
cmake_minimum_required(VERSION 3.0)
### Include HunterGate module from git submodule
set(gate_dir "${CMAKE_CURRENT_LIST_DIR}/../gate")
set(gate_module "${gate_dir}/cmake/HunterGate.cmake")
get_filename_component(gate_module "${gate_module}" ABSOLUTE)
i... | # Copyright (c) 2013, 2015 Ruslan Baratov
# All rights reserved.
cmake_minimum_required(VERSION 3.0)
### Include HunterGate module from git submodule
set(gate_dir "${CMAKE_CURRENT_LIST_DIR}/../gate")
set(gate_module "${gate_dir}/cmake/HunterGate.cmake")
get_filename_component(gate_module "${gate_module}" ABSOLUTE)
i... |
Set the include dir for NumPy in the cache | #ckwg +4
# Copyright 2010, 2012 by Kitware, Inc. All Rights Reserved. Please refer to
# KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
# Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
# Locate NumPy library
# This module defines
# NUMPY_FOUND - if false, do not try to lin... | #ckwg +4
# Copyright 2010, 2012 by Kitware, Inc. All Rights Reserved. Please refer to
# KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
# Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
# Locate NumPy library
# This module defines
# NUMPY_FOUND - if false, do not try to lin... |
Fix cmake warnings on EXCLUDE_FROM_ALL. | itk_fetch_module(MGHIO
"MGHIO ImageIO plugin for ITK"
GIT_REPOSITORY https://github.com/Slicer/itkMGHImageIO.git
GIT_TAG 841832fd94889d0793b606c0a5b9be981b98cec3
)
| itk_fetch_module(MGHIO
"MGHIO ImageIO plugin for ITK"
GIT_REPOSITORY https://github.com/Slicer/itkMGHImageIO.git
GIT_TAG 1beeaa5abb18188ded17bf6337b31c572d2594cf
)
|
Fix CMake MySQL module to be more nix-friendly |
if(UNIX)
include_directories("/usr/include/mysql/")
else()
include_directories("${LIBRARY_DIR}/external/MySQL/")
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
# 32 bit link
link_directories(${LIBRARY_DIR}/external/MySQL/x86)
link_directories(${LIBRARY_DIR}/external/zlib/x86)
else()
# ... |
if(UNIX)
find_path(MYSQL_INCLUDE_DIR mysql.h
/usr/include/mysql
/usr/local/include/mysql
/opt/mysql/mysql/include
/opt/mysql/mysql/include/mysql
/opt/mysql/include
/opt/local/include/mysql5
/usr/local/mysql/include
/usr/local/mysql/include/mysql
... |
Add compiler options to clang as well as gcc and msvc | # Enable C++11
if(CMAKE_COMPILER_IS_GNUCXX)
add_definitions(-std=c++0x)
add_definitions(-std=c++11)
endif()
| # Enable C++11
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
# using regular Clang or AppleClang
add_definitions(-std=c++11)
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
# using GCC
add_definitions(-std=c++0x)
add_definitions(-std=c++11)
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel")
# using Intel ... |
Make initial HDF5 discovery of 1.8.16 quiet. | option(ITK_USE_SYSTEM_HDF5 "Use an outside build of HDF5." ${ITK_USE_SYSTEM_LIBRARIES})
mark_as_advanced(ITK_USE_SYSTEM_HDF5)
if(ITK_USE_SYSTEM_HDF5)
if(BUILD_SHARED_LIBS)
find_package(HDF5 NO_MODULE COMPONENTS CXX C shared)
else()
find_package(HDF5 NO_MODULE COMPONENTS CXX C static)
endif()
if(NOT HDF... | option(ITK_USE_SYSTEM_HDF5 "Use an outside build of HDF5." ${ITK_USE_SYSTEM_LIBRARIES})
mark_as_advanced(ITK_USE_SYSTEM_HDF5)
if(ITK_USE_SYSTEM_HDF5)
if(BUILD_SHARED_LIBS)
find_package(HDF5 QUIET NO_MODULE COMPONENTS CXX C shared)
else()
find_package(HDF5 QUIET NO_MODULE COMPONENTS CXX C static)
endif()
... |
Fix time for start nightly build with (Central European Summer Time) | #ctest_submit( RETURN_VALUE res)
SET(CTEST_PROJECT_NAME "OpenViBe")
SET(CTEST_NIGHTLY_START_TIME "20:00:00 EST")
SET(CTEST_DROP_METHOD "http")
SET(CTEST_DROP_SITE "cdash.inria.fr")
SET(CTEST_DROP_LOCATION "/CDash/submit.php?project=OpenViBe")
SET(CTEST_DROP_SITE_CDASH TRUE)
... | #ctest_submit( RETURN_VALUE res)
SET(CTEST_PROJECT_NAME "OpenViBe")
SET(CTEST_NIGHTLY_START_TIME "20:00:00 CEST")
SET(CTEST_DROP_METHOD "http")
SET(CTEST_DROP_SITE "cdash.inria.fr")
SET(CTEST_DROP_LOCATION "/CDash/submit.php?project=OpenViBe")
SET(CTEST_DROP_SITE_CDASH TRUE)... |
Use Find_program instead of Execute_process to detect date-config | # -*- mode: cmake -*-
# - Find the DATE system
# Finds if the RuleChecker is installed and sets the following variables:
#
# DATE_FOUND = Boolean defining if DATE is installed
#
# Check if DATE is installed and in the path
Execute_process(
COMMAND which date-config
OUTPUT_VARIABLE DATE_PROGRAM)
If(DATE_PROGRAM)... | # -*- mode: cmake -*-
# - Find the DATE system
# Finds if the RuleChecker is installed and sets the following variables:
#
# DATE_FOUND = Boolean defining if DATE is installed
#
# Check if DATE is installed and in the path
Find_program( DATE_PROGRAM date-config )
If(DATE_PROGRAM)
Set(DATE_FOUND YES)
Message(STA... |
Patch script as a bash file | # Creates a script that applies patches
# This script does not fail on errors. It ensures that we can "apply" patches over and over again.
include(CMakeParseArguments)
find_program(PATCH_EXECUTABLE patch)
function(create_patch_script NAME OUTVAR)
if(NOT PATCH_EXECUTABLE)
message(FATAL_ERROR "Could not find ... | # Creates a script that applies patches
# This script does not fail on errors. It ensures that we can "apply" patches over and over again.
include(CMakeParseArguments)
find_program(PATCH_EXECUTABLE patch)
find_program(BASH_EXECUTABLE bash)
function(create_patch_script NAME OUTVAR)
if(NOT PATCH_EXECUTABLE)
m... |
Address use of CMake variables in CMakeLists.txt. | #
# ITK WikiExamples
#
# If the environment var WikiExamplesTag exists, use it
if (NOT DEFINED ENV{WikiExamplesTag})
set(GIT_TAG ee85e99ab3cdd0dd4bedbdd7893c48a09cab0244
)
else()
set(GIT_TAG ee85e99ab3cdd0dd4bedbdd7893c48a09cab0244
)
endif()
itk_fetch_module(WikiExamples
"A collection of examples that... | #
# ITK WikiExamples
#
# If the environment var WikiExamplesTag exists, use it
if (NOT DEFINED ENV{WikiExamplesTag})
set(GIT_TAG ee85e99ab3cdd0dd4bedbdd7893c48a09cab0244)
else()
set(GIT_TAG $ENV{WikiExamplesTag})
endif()
itk_fetch_module(WikiExamples
"A collection of examples that illustrate how to use ITK."
... |
Update FW: change SIPP mem alloc to allow 4x ColorCamera to operate 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 "c6f9eda4f47b4aa26538b7e79743d1940db74bb5")
# "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 "4959c559cf7979e1a1a5cbdd0f9a5cbd2299ecb2")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
|
Remove manual definition of CMAKE_SOURCE_DIR from cl2hpp | 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 ""
... | 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 ""
... |
Exclude Objective-C files from cppcheck | # Copyright (c) 2015 Daniel.Nachbaur@epfl.ch
#
# Provide the function common_check_targets to add check targets (clangcheck,
# cppcheck, cpplint) to the given target.
include(GetSourceFilesFromTarget)
include(CommonClangCheck)
include(CommonCPPCheck)
include(CommonCPPLint)
function(common_check_targets _name)
set(_... | # Copyright (c) 2015 Daniel.Nachbaur@epfl.ch
#
# Provide the function common_check_targets to add check targets (clangcheck,
# cppcheck, cpplint) to the given target.
include(GetSourceFilesFromTarget)
include(CommonClangCheck)
include(CommonCPPCheck)
include(CommonCPPLint)
function(common_check_targets _name)
# Qt ... |
Fix module test missing ITKIOVTK dependency. | set(DOCUMENTATION "This module contains a filter to compute the strain tensor
field from a displacement field image.")
itk_module(Strain
DEPENDS
ITKCommon
ITKImageGradient
ITKImageSources
TEST_DEPENDS
ITKTestKernel
ITKDisplacementField
EXCLUDE_FROM_DEFAULT
DESCRIPTION
"${DOCUMENTATION}"... | set(DOCUMENTATION "This module contains a filter to compute the strain tensor
field from a displacement field image.")
itk_module(Strain
DEPENDS
ITKCommon
ITKImageGradient
ITKImageSources
TEST_DEPENDS
ITKTestKernel
ITKDisplacementField
ITKIOVTK
EXCLUDE_FROM_DEFAULT
DESCRIPTION
"${DO... |
Fix broken (crashing) command line client on Ubuntu Precise | # - Find the readline include files and libraries
# - Include finding of termcap or curses
#
# READLINE_FOUND
# READLINE_INCLUDE_DIR
# READLINE_LIBRARIES
#
include(FindCurses)
include(FindTermcap)
FIND_LIBRARY(READLINE_HISTORY_LIBRARY NAMES history)
FIND_LIBRARY(READLINE_READLINE_LIBRARY NAMES readline)
FIND_PATH(READ... | # - Find the readline include files and libraries
# - Include finding of termcap or curses
#
# READLINE_FOUND
# READLINE_INCLUDE_DIR
# READLINE_LIBRARIES
#
include(FindTermcap)
FIND_LIBRARY(READLINE_READLINE_LIBRARY NAMES readline)
FIND_PATH(READLINE_INCLUDE_DIR readline/readline.h)
SET(READLINE_FOUND FALSE)
IF (READ... |
Fix building error for xcode. & Add header files to project. |
# header files
#SET(CMAKE_INCLUDE_DIRECTORIES_BEFORE, ON)
if(MSVC)
ADD_DEFINITIONS(-DHAVE_MS_C_RUNTIME)
ADD_DEFINITIONS(-DHAVE_WIN32_THREADS)
INCLUDE_DIRECTORIES(AFTER ${M3E_SOURCE_DIR}/src/native/msvc)
endif()
INCLUDE_DIRECTORIES(AFTER ${M3E_SOURCE_DIR}/src/native/include)
# source files
FILE(GLOB LIBUTILS_SOURCE_FI... |
# include and define
#SET(CMAKE_INCLUDE_DIRECTORIES_BEFORE, ON)
if(MSVC)
ADD_DEFINITIONS(-DHAVE_MS_C_RUNTIME)
ADD_DEFINITIONS(-DHAVE_WIN32_THREADS)
INCLUDE_DIRECTORIES(AFTER ${M3E_SOURCE_DIR}/src/native/msvc)
elseif(APPLE)
ADD_DEFINITIONS(-D_MACOSX)
ADD_DEFINITIONS(-DHAVE_PTHREADS)
SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAG... |
Remove debugging of Boost libs. | set(Boost_DEBUG 1)
message(STATUS "Looking for boost")
#set(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} "C:/Boost/boost_1_72_0/include")
#set(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} "C:/Boost/boost_1_72_0/lib")
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_DEBUG_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
set(Boo... | #set(Boost_DEBUG 1)
message(STATUS "Looking for boost")
#set(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} "C:/Boost/boost_1_72_0/include")
#set(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} "C:/Boost/boost_1_72_0/lib")
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_DEBUG_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
set(Bo... |
Fix issue with external HDF5 | # This extends CMake's FindHDF5.cmake to add support to include MPI include
# paths and libraries in the HDF5 ones if HDF5_IS_PARALLEL is ON
# (BUG #0014363).
# include the default FindHDF5.cmake.
include(${CMAKE_ROOT}/Modules/FindHDF5.cmake)
if(HDF5_FOUND AND HDF5_IS_PARALLEL)
include(vtkMPI)
if(MPI_C_INCLUDE_PA... | # This extends CMake's FindHDF5.cmake to add support to include MPI include
# paths and libraries in the HDF5 ones if HDF5_IS_PARALLEL is ON
# (BUG #0014363).
# include the default FindHDF5.cmake.
include(${CMAKE_ROOT}/Modules/FindHDF5.cmake)
if(HDF5_FOUND AND (HDF5_IS_PARALLEL OR HDF5_ENABLE_PARALLEL))
include(vtk... |
Fix extra semicolon in compile/link flags | # SampPlugin.cmake
#
# Functions:
# add_samp_plugin(name [sources...])
#
# Supported platforms:
# Windows
# Linux
#
# Supported compilers:
# GCC
# MinGW
# Microsoft Visual C++
include(AmxConfig)
function(add_samp_plugin name)
add_library(${name} MODULE ${ARGN})
set_target_properties(${name} PROPERTIES ... | # SampPlugin.cmake
#
# Functions:
# add_samp_plugin(name [sources...])
#
# Supported platforms:
# Windows
# Linux
#
# Supported compilers:
# GCC
# MinGW
# Microsoft Visual C++
include(AmxConfig)
function(add_samp_plugin name)
add_library(${name} MODULE ${ARGN})
set_target_properties(${name} PROPERTIES ... |
Fix LibJpegTurbo finder to ignore static library, needed on Ubuntu 13.10 | # - Try to find libjpeg-turbo
# Once done, this will define
#
# LibJpegTurbo_FOUND - system has libjpeg-turbo
# LibJpegTurbo_INCLUDE_DIRS - the libjpeg-turbo include directories
# LibJpegTurbo_LIBRARIES - link these to use libjpeg-turbo
#
# this file is modeled after http://www.cmake.org/Wiki/CMake:How_To_Find_Libra... | # - Try to find libjpeg-turbo
# Once done, this will define
#
# LibJpegTurbo_FOUND - system has libjpeg-turbo
# LibJpegTurbo_INCLUDE_DIRS - the libjpeg-turbo include directories
# LibJpegTurbo_LIBRARIES - link these to use libjpeg-turbo
#
# this file is modeled after http://www.cmake.org/Wiki/CMake:How_To_Find_Libra... |
Fix hdfgroup domain for CDash | ## 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 uses Dart and the Cdash dashboard
## ENABLE_TESTING()
## INCLUDE(Dart)
set(CTEST_PROJECT_NAME... | ## 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 uses Dart and the Cdash dashboard
## ENABLE_TESTING()
## INCLUDE(Dart)
set(CTEST_PROJECT_NAME... |
Resolve GoogleTest link issues on Windows | # This file is used for non-server builds (e.g. for Couchbase mobile)
# If GoogleTest is checked out then include it and we can run some tests
IF(EXISTS "${PROJECT_SOURCE_DIR}/thirdparty/googletest/CMakeLists.txt")
ADD_SUBDIRECTORY(thirdparty/googletest EXCLUDE_FROM_ALL)
ENDIF ()
SET(CMAKE_MODULE_PATH ${CMAKE_MOD... | # This file is used for non-server builds (e.g. for Couchbase mobile)
# If GoogleTest is checked out then include it and we can run some tests
IF(EXISTS "${PROJECT_SOURCE_DIR}/thirdparty/googletest/CMakeLists.txt")
SET(gtest_force_shared_crt ON CACHE BOOL
"Use shared (DLL) run-time lib even when Google Tes... |
Move back to main VTK project for CTest submission | ## 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 uses Dart and the Cdash dashboard
## ENABLE_TESTING()
## INCLUDE(CTest)
set(CTEST_PROJECT_NAME... | ## 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 uses Dart and the Cdash dashboard
## ENABLE_TESTING()
## INCLUDE(CTest)
set(CTEST_PROJECT_NAME... |
Update CDash drop site to use https | ## 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 uses Dart and the Cdash dashboard
## ENABLE_TESTING()
## INCLUDE(CTest)
set(CTEST_PROJECT_NAME... | ## 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 uses Dart and the Cdash dashboard
## ENABLE_TESTING()
## INCLUDE(CTest)
set(CTEST_PROJECT_NAME... |
Hide more auto-generated files from the coverage analysis. | # This file contains all the specific settings that will be used
# when running 'make Experimental'
# Change the maximum warnings that will be displayed
# on the report page (default 50)
set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS 1000)
# Errors that will be ignored
set(CTEST_CUSTOM_ERROR_EXCEPTION
${CTEST_CUSTOM_E... | # This file contains all the specific settings that will be used
# when running 'make Experimental'
# Change the maximum warnings that will be displayed
# on the report page (default 50)
set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS 1000)
# Errors that will be ignored
set(CTEST_CUSTOM_ERROR_EXCEPTION
${CTEST_CUSTOM_E... |
Change to use GoogleTest for github repo with update | # Make sure this file is included only once
get_filename_component(CMAKE_CURRENT_LIST_FILENAME ${CMAKE_CURRENT_LIST_FILE} NAME_WE)
if(${CMAKE_CURRENT_LIST_FILENAME}_FILE_INCLUDED)
return()
endif()
set(${CMAKE_CURRENT_LIST_FILENAME}_FILE_INCLUDED 1)
set(proj GTest)
set(GTEST_TARGET_VERSION 1.8.0)
set(GTEST_DOWNLOAD_... | # Make sure this file is included only once
get_filename_component(CMAKE_CURRENT_LIST_FILENAME ${CMAKE_CURRENT_LIST_FILE} NAME_WE)
if(${CMAKE_CURRENT_LIST_FILENAME}_FILE_INCLUDED)
return()
endif()
set(${CMAKE_CURRENT_LIST_FILENAME}_FILE_INCLUDED 1)
set(proj GTest)
set(GTEST_GIT_REPOSITORY "${git_protocol}://github.... |
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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.