Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Add testing harness function to gamepad-test ns.
(ns org.playasophy.wonderdome.input.gamepad-test (:require [clojure.core.async :as async :refer [<!]] [clojure.test :refer :all] [com.stuartsierra.component :as component] [org.playasophy.wonderdome.input.gamepad :as gamepad])) (defn gamepad-test "Creates and starts a gamepad input component attac...
Add missing Eastwood config file.
(disable-warning {:linter :suspicious-expression ;; specifically, those detected in function suspicious-macro-invocations :if-inside-macroexpansion-of #{'defun.core/defun} :within-depth 12 :reason "defun creates calls to and with only 1 argument."})
Add an audio chunker that yields chunks whenever it is triggered
(ns audio-utils.triggered-chunker (:require [audio-utils.util :refer [aatom aswap! << >>]] [audio-utils.worker :as w])) (defprotocol ITriggeredChunker (process-samples [this samples]) (deliver-chunks [this]) (reset-chunks [this]) (trigger [this capture?])) (defrecord TriggeredChunker [next chunk...
Add first example from chapter 9
(ns clojure-walkthrough.cjia.ch09-xx (:import [java.text SimpleDateFormat])) (defn new-expense [date-string dollars cents category merchant-name] {:date (.parse (SimpleDateFormat. "yyyy-MM-dd") date-string) :amount-dollars dollars :amount-cents cents :category category :merchant-name merchant-name}) (...
Add MP3 encoder implementation for worker audio pipelines
(ns audio-utils.mp3-encoder (:require [cljsjs.lamejs] [audio-utils.worker :as w])) (defrecord MP3Encoder [bit-rate sample-rate next] w/IWorkerAudioNode (connect [this destination] (reset! next destination)) (disconnect [this] (reset! next nil)) (process-audio [this data] (let [int-d...
Add simple test for simulation run
(ns clj-gatling.simulation-test (:use clojure.test) (:require [clj-gatling.simulation :as simulation])) (defn run-request [id] "OK") (def scenario {:name "Test scenario" :requests [{:name "Request1" :fn run-request} {:name "Request2" :fn run-request}]}) (defn get-result [requests request-name]...
Add support for Aerobio map file generation from streaming SAM
{ :name "tnseq-phase1", :path "", :graph {:bt1 {:type "tool" :path "bowtie2" :args ["-p" "16" "--very-sensitive" "-x" "#1" "-U" "#2"] } :bt2 {:type "tool" :path "bowtie2" :args ["-f" "-N" "1" "--reorder" "--n...
Add missing file that should have been committed months ago. Adds fns for uploading SSL certificates to AWS, useful for creating SSL load balancers at the repl
(ns circle.backend.aws-iam "fns for working with AWS Identity & Access Management" (:use [circle.aws-credentials :only (aws-credentials)]) (:import com.amazonaws.services.identitymanagement.AmazonIdentityManagementClient com.amazonaws.services.identitymanagement.model.UploadServerCertificateRequest ...
Add a metric name index protocol and implementation
(ns org.spootnik.cyanite.path "Implements a path store which tracks metric names. The default implementation provides lucene based implementations" (:require [clucy.core :as search] [clojure.tools.logging :refer [error info debug]])) (defprotocol Pathstore "The pathstore pro...
Test the v5 sample feed against all validaitons
(ns vip.data-processor.validation.v5-test (:require [clojure.test :refer :all] [vip.data-processor.pipeline :as pipeline] [vip.data-processor.db.postgres :as psql] [vip.data-processor.validation.xml :as xml] [vip.data-processor.test-helpers :refer :all] ...
Add Color - Setting snippets.
(ns snippets.color.setting (:require [quil.snippet :refer [defsnippet]] [quil.core :refer :all])) (defsnippet background-s {} (background 255 0 0) (let [gr (create-graphics 100 100)] (with-graphics gr (background 120)) (image gr 0 0) (with-graphics gr (background 70 120)) ...
Solve The Greatest in clojure
(ns main (:require [clojure.string :as str])) (defn main [] (loop [line (read-line)] (when line (let [[a b c] (str/split line #" ") a' (Integer/parseInt a) b' (Integer/parseInt b) c' (Integer/parseInt c) result (/ (+ (+ (Math/abs (- a' b')) b') a') 2) ...
Add missing pretty print file.
(ns onyx.static.pretty-print #?(:clj (:require [io.aviso.ansi :as a]))) (def bold #?(:clj a/bold :cljs identity)) (def magenta #?(:clj a/magenta :cljs identity)) (def blue #?(:clj a/blue :cljs identity)) (def bold-red #?(:clj a/bold-red :cljs identity)) (def bold-green #?(:clj a/bol...
Add job flow for phase 2 tnseq
{:nodes {:ph2 {:name "tnseq-phase2", :type "tool", :args []} :prn1 {:type "func", :name "prn"}}, :edges {:ph2 [:prn1]}}
Add state extensions State extensions are for a log type to implement for storage and playback of state commands
(ns onyx.state-extensions) (defmulti initialise-log (fn [log-type event] log-type)) (defmulti close-log (fn [log] (type log))) ;; For onyx to implement ;; We can implement log storage for Kafka and maybe ZK (if small data is used and we gc) (defmulti store-log-entries "Store state update [op k v] en...
Add new simple background jobs namespace for running jobs
(ns cmr.common.background-jobs "Namespace for creating simple background jobs that run at a specified interval in a thread. For more complex requirements see the cmr.common.jobs namespace which use Quartz." (:require [cmr.common.lifecycle :as lifecycle])) (defrecord BackgroundJob [ ;; The job-function to ru...
Add integration tests for newsfeed service
(ns newsfeed.integration.api (:require [midje.sweet :refer :all] [peridot.core :as p] [clojure.data.json :as json] [newsfeed.core :as nf] [newsfeed.api :as api])) (facts "about 'api'" (let [app (p/session nf/app)] (fact "returns 200 on /ping" ...
Add a basic working example in Clojure
; Eli Bendersky [http://eli.thegreenplace.net] ; This code is in the public domain. (ns expression.protocols) (defrecord Constant [value]) (defrecord BinaryPlus [lhs rhs]) (defprotocol Evaluatable (evaluate [this])) (defprotocol Stringable (stringify [this])) (extend-type Constant Evaluatable (evaluate [t...
Add the stub of the junit task
(ns radicalzephyr.boot-junit {:boot/export-tasks true} (:require [boot.core :as core]) (:import org.junit.runner.JUnitCore)) (deftask junit "Run the jUnit test runner." [] (with-pre-wrap fileset (let [result (JUnitCore/runClasses (into-array [#_ (magic goes here to find all test class...
Prepare statement query to dbas
(ns discuss.find (:require [clojure.walk :refer [keywordize-keys]] [om.core :as om :include-macros true] [om.dom :as dom :include-macros true] [discuss.communication :as com] [discuss.lib :as lib])) (def data (atom {})) (defn statement-handler "Called when received ...
Add super(aka global or final) aggregation job flow
{:nodes {:ph2 {:name "tnseq-final-aggregate", :type "tool", :args []} :prn1 {:type "func", :name "prn"}}, :edges {:ph2 [:prn1]}}
Add AST to form emission pass
;; Copyright (c) Reid McKenzie, Rich Hickey & contributors. The use ;; and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 ;; (http://opensource.org/licenses/eclipse-1.0.php) which can be ;; found in the file epl-v10.html at the root of this distribution. ;; By using th...
Add a test for sqlite/column-names
(ns vip.data-processor.db.sqlite-test (:require [vip.data-processor.db.sqlite :as sqlite] [clojure.test :refer :all] [vip.data-processor.validation.data-spec.v3-0 :as v3-0])) (deftest column-names-test (let [db (sqlite/temp-db "column-names-test" "3.0")] (is (= ["state_id" "early_vote_s...
Add basic test structure + failing test
(ns desdemona.cli-test (:require [desdemona.launcher.aeron-media-driver :as aeron] [clojure.test :refer [deftest testing is]]) (:import [java.io StringWriter])) (def fake-block-forever! (constantly ::blocked-forever)) (defn fake-exit [status] [::exited status]) (defmacro with-fake-launcher-side-ef...
Add cljs konserve main test.
(ns konserve.konserve-test (:require [cljs.test :refer [run-tests]] [konserve.filestore-test] [konserve.serializers-test])) (run-tests 'konserve.filestore-test 'konserve.serializers-test)
Move the predicate functions in to their own ns -- it seems likely that we'll wind up with a bunch of these. Also, remove the note about expecting a java.io.File from the docstrings -- our schmancy multimethod `is-type` obviates that.
(ns doctopus.files.predicates "We've got a loooot of filtering to do. Like, a lot.") (defmulti is-type? "Returns true if the type of the file matches the type given." (fn [fobj regex] (class fobj))) (defmethod is-type? java.lang.String [file-string type-regex] (if (re-find type-regex file-string) tru...
Add leiningen `:user` profile file
{:user {:plugins [[lein-try "0.4.1"] [lein-pprint "1.1.1"] [cider/cider-nrepl "0.7.0"]]}}
Solve Fuel Spent in clojure
(ns main) (defn main [] (let [h (-> (read-line) (Double/parseDouble)) s (-> (read-line) (Double/parseDouble))] (printf "%.3f%n" (/ (* h s) 12)))) (main)
Add utils for work with dom file like objects.
;; This Source Code Form is subject to the terms of the Mozilla Public ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; ;; Copyright (c) 2016 Andrey Antukh <niwi@niwi.nz> (ns uxbox.util.dom.files "A interop helpers for work with fil...
Add simple test for routes
(ns subman.t-routes (:require [midje.sweet :refer [fact => truthy]] [subman.routes :as routes])) (fact "routes should be ok" routes/main-routes => truthy)
Add the ability to populate objects with thumbnails and url resolved paths.
;; This Source Code Form is subject to the terms of the Mozilla Public ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; ;; Copyright (c) 2016 Andrey Antukh <niwi@niwi.nz> (ns uxbox.images "Image postprocessing." (:require [storage...
Add own defc macro for more easy define components with less boilerplate.
;; This Source Code Form is subject to the terms of the Mozilla Public ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; ;; Copyright (c) 2016 Andrey Antukh <niwi@niwi.nz> (ns uxbox.util.mixins (:require [rum.core :as rum] ...
Add sample from Clojure Applied
;; See: https://clojuredocs.org/clojure.test/deftest (ns cjapplied.ch08) (use 'clojure.test) (deftest addition (is (= 4 (+ 2 2))) (is (= 7 (+ 3 4)))) (deftest subtraction (is (= 1 (- 4 3))) (is (= 3 (- 7 4)))) ;; composing tests (deftest arithmetic (addition) (subtraction)) (deftest test-range (is (= ...
Add cljs wrapper on vendor
(ns parse-names.core (:require [parse-names.vendor :as v])) (defn parse-name [name] (let [name-obj (v/parse name)] (->> {:first-name (.-firstName name-obj) :last-name (.-lastName name-obj) :leading-initial (.-salutation name-obj) :suffix (.-suffix name-obj) :middle-name ...
Add web NS tests, mostly for routes
(ns doctopus.web-test (:require [clojure.edn :as edn] [clojure.java.io :as io] [clojure.test :refer :all] [compojure.core :refer [context]] [doctopus.configuration :refer [docs-uri-prefix]] [doctopus.db :as db] [doctopus.doctopus.head :as h] ...
Add in-memory cloudfiles connection to the dev system
(ns user (:require [clojars [config :as config] [errors :as errors] [system :as system]] [clojars.db.migrate :as migrate] [clojure.java.io :as io] [clojure.tools.namespace.repl :refer [refresh]] [eftest.runner :as eftest] ...
(ns user (:require [clojars [cloudfiles :as cf] [config :as config] [errors :as errors] [system :as system]] [clojars.db.migrate :as migrate] [clojure.java.io :as io] [clojure.tools.namespace.repl :refer [refresh]] [ef...
Add simple tests for search
(ns subman.t-search (:require-macros [purnam.test.sweet :refer [facts fact]]) (:require [reagent.core :refer [atom]] [subman.helpers :refer [truthy]] [subman.search :as search])) (facts "should create search request" (fact "with query" (search/create-search-request "test...
Add clojure day 3 basic
; Use refs to create a vector of accounts in memory. Create debit and credit functions to change the balance of an account. (def accounts (ref [0 0 0])) (defn balance [accounts index] (nth @accounts index)) (defn debit [accounts index amount] (dosync (alter accounts assoc index (- (balance accounts index) amo...
Add mtg card master namespace
(ns decktouch.mtg-card-master (:require [clojure.data.json :as json])) (def mtg-cards (json/read-str (slurp "resources/AllCards.json"))) (def card-names (keys mtg-cards)) (defn match "Returns true if query is a substring in string" [query string] (some? (re-matches (re-pattern (str "(?i)" query ".*")) ...
Add tests for character escaping for VCF string fields
(ns cljam.io.vcf.reader-test (:require [clojure.test :refer [deftest is]] [cljam.io.vcf.reader :as vcf-reader])) (deftest parse-structured-line-test (is (= {:id "ID", :description "\"This\" is a description", :note "You can use \" in string fields by escaping it with \\"} (#'vcf-reader...
Add test case for cljam.cigar
(ns cljam.t-cigar (:require [midje.sweet :refer :all] [cljam.cigar :as cgr])) (fact "about parse-seq" (cgr/parse-seq "8M4I4M1D3M" "TTAGATAAAGAGGATACTG") => '({:n 8, :op \M, :seq [\T \T \A \G \A \T \A \A]} {:n 4, :op \I, :seq [\A \G \A \G]} ...
Update cryogen-core dependency to 0.1.9.
(defproject cryogen "0.1.0" :description "Simple static site generator" :url "https://github.com/lacarmen/cryogen" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"]...
(defproject cryogen "0.1.0" :description "Simple static site generator" :url "https://github.com/lacarmen/cryogen" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"]...
Add our first test oh boy!
(ns doctopus.files-test (:require [doctopus.files :refer :all] [clojure.test :refer :all])) (deftest test-truncate-str (testing "Can we truncate one path by removing another path from the front?" (let [fq "/foo/bar/baz/bing/bang/document.markdown" remove-str "/foo/bar/baz/bing/" ...
Add Vocabulary (prefixers) for ONS/ Statistical Geography
(ns grafter.rdf.ontologies.ons-geography (:require [grafter.rdf.ontologies.util :refer :all])) (def statistical-entity (prefixer "http://statistics.data.gov.uk/def/statistical-entity#")) (def statistical-entity:name (statistical-entity "name")) (def statistical-entity:abbreviation (statistica...
Add a simple test for randombytes
(ns caesium.randombytes-test (:require [caesium.randombytes :as r] [clojure.test :refer [deftest is]])) (deftest randombytes-tests (let [some-bytes (r/randombytes 10)] (is (= 10 (alength some-bytes)))))
Add Utils test file, don't have anything to put in it yet.
(ns hydrofoil.expectations.model (:require [expectations :refer :all] [hydrofoil.model :refer :all] [hydrofoil.core :refer :all] [hydrofoil.evolution :refer :all])) ;;; --------- Utils Tests ------------
Add functions for interacting with EBS snapshots
(ns circle.admin.ebs (:require [org.jclouds.ec2.ebs2 :as ebs]) (:require [circle.backend.ec2 :as ec2]) (:use [circle.utils.except :only (throw-if-not)]) (:use [circle.aws-credentials :only (jclouds-compute)])) (defn default-volume [instance-id] (let [inst (ec2/instance instance-id) devices (map bean ...
Add macro example from section 7.1
(ns clojure-walkthrough.cjia.ch07-xx) ; 7.1: Macro basic ; 7.1.1: Textual substitution (def a-ref (ref 0)) (dosync (ref-set a-ref 1)) ; 1 ;; You could implement this using the macros like ; (syn-set a-ref 1) (defmacro sync-set [r v] (list 'dosync (list 'ref-set r v))) (sync-set a-ref 1) ;; 1
Add ability to calculate edit distance.
(ns cljs-nlp.stats.levenshtein (:use [clojure.string :only [blanks?]])) (defn create-element [char1 char2 previous-row current-row idx] (if (= char1 char2) (previous-row (- idx 1)) (+ 1 (min (previous-row (- idx 1)) (previous-row idx) (last current-row))))) (defn create-row [char1 s...
Prepare for next release cycle.
(defproject onyx-app/lein-template "0.10.0.0-beta10" :description "Onyx Leiningen application template" :url "https://github.com/onyx-platform/onyx-template" :license {:name "MIT License" :url "http://choosealicense.com/licenses/mit/#"} :repositories {"snapshots" {:url "https://clojars.org/repo" ...
(defproject onyx-app/lein-template "0.10.0.0-SNAPSHOT" :description "Onyx Leiningen application template" :url "https://github.com/onyx-platform/onyx-template" :license {:name "MIT License" :url "http://choosealicense.com/licenses/mit/#"} :repositories {"snapshots" {:url "https://clojars.org/repo" ...
Add tests of the Grimoire web API
(ns grimoire.api.web-test (:require [grimoire.api :as api] [grimoire.things :as t] [grimoire.util :refer [succeed? result]] [grimoire.api.web.read] [clojure.test :refer :all])) (def test-config {:datastore {:mode :web :host "http://127.0.0.1:3000"}}) ;; test a...
Add tests for current clj heuristic analyzer
(ns pathfinder.analyze.clojure-test (:use midje.sweet pathfinder.analyze.analyzer pathfinder.analyze.clojure)) (facts "about heuristic analysis" (fact "should keep the source" (analyze (->CljHeuristicAnalyzer) "foo" {}) => (contains {:source "foo"})) (fact "should keep the ...
Add protocols and records stuff.
(ns com.nomistech.clojure-the-language.protocols-and-records-test (:require [midje.sweet :refer :all])) ;;;; ___________________________________________________________________________ ;;;; ---- `defrecord` and what it gives you ---- (defrecord MyRecord [x y]) (fact "Simple constructor" (MyRecord. 1 2) => {:x ...
Add reified-tests example source for testing at the REPL
(ns lazytest.reified-tests (:use (lazytest expect testable runnable-test))) (def t1 (reify Testable (get-tests [this] (list (reify RunnableTest (run-tests [this] (list (try-expectations this (expect= 1 2))))))))) (def t2 (reify Testable (get-tests [this]...
Add place holder for cjia
(ns clojure-walkthrough.cjia.ch10-xx (:require [clojure.test :refer :all] [clojure-walkthrough.cjia.ch10-date-operations :refer :all])) (deftest test-simple-data-parsing (let [d (date "2009-01-22")] (is (= (day-from d) 22))))
Solve Distance Between Two Points in clojure
(ns main (:require [clojure.string :as str])) (defn main [] (let [[x1 y1] (-> (read-line) (str/split #" ")) [x2 y2] (-> (read-line) (str/split #" ")) [x1' y1' x2' y2'] (map #(Double/parseDouble %) [x1 y1 x2 y2])] (printf "%.4f%n" (Math/sqrt (+ (Math/pow (- x2' x1') 2) (Math/pow (- y2' y1') 2)))...
Solve Average 1 in clojure
(ns main) (defn main [] (let [a (Double/parseDouble (read-line)) b (Double/parseDouble (read-line))] (format "%.5f" (/ (+ (* a 3.5) (* b 7.5)) 11.0)))) (println "MEDIA =" (main))
Add code generation tests for the defentity macro
(ns workflo.macros.entity-test (:require [clojure.spec :as s] [clojure.test :refer [deftest is]] [workflo.macros.entity :as e :refer [defentity]])) (deftest minimal-defentity (is (= '(do (def macros-user-schema map?) (def macros-user-definition {:schema...
Use snapshots to clear chain before test
(ns server.name-bazaar.utils (:require [cljs.core.async :refer [<! go]] [cljs.test :refer-macros [async]] [cljs-time.coerce :refer [from-long]] [cljs-web3-next.eth :as web3-eth] [cljs-web3-next.evm :as web3-evm] [cljs-web3-next.helpers :as web3-helpers] [district.server.web3 :refer [web3]]...
Revert "COMP: update find_package for boost"
# Required message(STATUS "Looking for required Boost headers") # Mandatory components # - date_time -> ossim plugins set(OTB_Boost_COMPONENTS date_time) # Optional components # Boost (OPTIONAL_COMPONENTS does not work with Boost find_package) # unit_test_framework component is used only in GdalAdapters module if (BUI...
# Required message(STATUS "Looking for required Boost headers") find_package ( Boost 1.35.0 REQUIRED ) # Optional components # Boost (OPTIONAL_COMPONENTS does not work with Boost find_package) # unit_test_framework component is used only in GdalAdapters module if (BUILD_TESTING) set(OTB_Boost_OPTIONAL_COMPONEN...
Add org.mitk.gui.qt.ext plugin to whitelist
set(enabled_modules Core CppMicroServices DICOM DICOMPM DataTypesExt AlgorithmsExt DICOMQI Multilabel SceneSerializationBase DICOMPMIO DICOMImageIO ContourModel DICOMSegIO LegacyGL MapperExt SceneSerialization LegacyIO IOExt MultilabelIO AppUtil QtWidgets QtWidgetsExt Segme...
set(enabled_modules Core CppMicroServices DICOM DICOMPM DataTypesExt AlgorithmsExt DICOMQI Multilabel SceneSerializationBase DICOMPMIO DICOMImageIO ContourModel DICOMSegIO LegacyGL MapperExt SceneSerialization LegacyIO IOExt MultilabelIO AppUtil QtWidgets QtWidgetsExt Segme...
Update SCIOFIO to ITKv4.13 branch
itk_fetch_module(SCIFIO "SCIFIO (Bioformats) ImageIO plugin for ITK" GIT_REPOSITORY ${git_protocol}://github.com/scifio/scifio-imageio.git GIT_TAG 853c9e8beb48d6b62f6cffa2bb010f59b7240fcc )
itk_fetch_module(SCIFIO "SCIFIO (Bioformats) ImageIO plugin for ITK" GIT_REPOSITORY ${git_protocol}://github.com/scifio/scifio-imageio.git GIT_TAG 05c3a625bd764a49cd2f77c07fcf242f3bf880fe )
Update device side FW with updated mdk
# Maturity level "snapshot" / "release" set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot") # "full commit hash of device side binary" set(DEPTHAI_DEVICE_SIDE_COMMIT "61ac21aa03a833ba4347e113f9ccd97f9322feaf") # "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 "e6d983d63f717f30e27263cab037b43a1732b6f0") # "version if applicable" set(DEPTHAI_DEVICE_SIDE_VERSION "")
Fix building tests without E2EE
include(CMakeFindDependencyMacro) find_dependency(QtOlm) include("${CMAKE_CURRENT_LIST_DIR}/QuotientTargets.cmake")
include(CMakeFindDependencyMacro) if (Quotient_E2EE_ENABLED) find_dependency(QtOlm) endif() include("${CMAKE_CURRENT_LIST_DIR}/QuotientTargets.cmake")
Update FW: configurable FPS for OV7251: max 99 for 480p, 117 for 400p
# 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 "af9024d1b2f023f80171f7a36fbeca4718a7b808") # "version if applicable" set(DEPTHAI_DEVICE_SIDE_VERSION "")
Update FW: fix still capture with scaling, add FPS capping (with warnings)
# Maturity level "snapshot" / "release" set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot") # "full commit hash of device side binary" set(DEPTHAI_DEVICE_SIDE_COMMIT "c03b9979b83941cdc9feb1a29f5a1452234a65f9") # "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 "9a713b5a5e4422944a2cf98ba177738d465da19f") # "version if applicable" set(DEPTHAI_DEVICE_SIDE_VERSION "")
Update FW, bugfix for config_h2d handling after initial setup
# Maturity level "snapshot" / "release" set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot") # "full commit hash of device side binary" set(DEPTHAI_DEVICE_SIDE_COMMIT "d8813bc1b6cbfbcca742c3e718d3f592a63efcc3") # "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 "642a7b7db68a6ec7c94797bea942f8f0df906397") # "version if applicable" set(DEPTHAI_DEVICE_SIDE_VERSION "")
Update FW with memory optimizations
# Maturity level "snapshot" / "release" set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot") # "full commit hash of device side binary" set(DEPTHAI_DEVICE_SIDE_COMMIT "d66b4da7255c5b436b48987d176b2552c3bd97fa") # "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 "16efec0dcbe538570c7dd4e4f4fab40ed0549a6c") # "version if applicable" set(DEPTHAI_DEVICE_SIDE_VERSION "")
Set superbuild ITK BUILD_SHARED_LIBS OFF.
#--------------------------------------------------------------------------- # Get and build itk if( NOT ITK_TAG ) set( ITK_TAG "v4.2.1" ) endif() ExternalProject_Add( ITK GIT_REPOSITORY "${git_protocol}://itk.org/ITK.git" GIT_TAG "${ITK_TAG}" SOURCE_DIR ITK BINARY_DIR ITK-build CMAKE_GENERATOR ${gen} C...
#--------------------------------------------------------------------------- # Get and build itk if( NOT ITK_TAG ) set( ITK_TAG "v4.2.1" ) endif() ExternalProject_Add( ITK GIT_REPOSITORY "${git_protocol}://itk.org/ITK.git" GIT_TAG "${ITK_TAG}" SOURCE_DIR ITK BINARY_DIR ITK-build CMAKE_GENERATOR ${gen} C...
Fix trouble with execute process command arguments
# This CMake script may be used # with a command line like # cmake -DWDIR:PATH=<workdir_path> -DODIR:PATH=<output_path> -P CreatePatchCVS.cmake # # The script will # 1) find an appropriate cvs command. # 2) create a unified diff from CVS diff command # rooted at WDIR and put the resulting diff # in ODIR/p...
# This CMake script may be used # with a command line like # cmake -DWDIR:PATH=<workdir_path> -DODIR:PATH=<output_path> -P CreatePatchCVS.cmake # # The script will # 1) find an appropriate cvs command. # 2) create a unified diff from CVS diff command # rooted at WDIR and put the resulting diff # in ODIR/p...
Add debug info for cmake
include("${CMAKE_CURRENT_LIST_DIR}/VIZTargets.cmake") find_path(VIZ_INCLUDE_DIR "viz" HINTS "${CMAKE_CURRENT_LIST_DIR}/../include/" ) find_library(VIZ_LIBRARY NAMES VIZ HINTS "${CMAKE_CURRENT_LIST_DIR}/../lib/") set(VIZ_LIBRARIES ${VIZ_LIBRARY} ) set(VIZ_INCLUDE_DIRS ${VIZ_INCLUDE_DIR} )
include("${CMAKE_CURRENT_LIST_DIR}/VIZTargets.cmake") find_path(VIZ_INCLUDE_DIR "viz" HINTS "${CMAKE_CURRENT_LIST_DIR}/../include/" ) find_library(VIZ_LIBRARY NAMES VIZ HINTS "${CMAKE_CURRENT_LIST_DIR}/../lib/") set(VIZ_LIBRARIES ${VIZ_LIBRARY} ) set(VIZ_INCLUDE_DIRS ${VIZ_INCLUDE_DIR} ) message(STATUS "VIZ found") ...
Fix VariationalRegistration for future const GetMacro support
# Insight Journal Handle: https://hdl.handle.net/10380/3460 # Contact: Alexander Schmidt-Richberg <a.schmidt-richberg@imperial.ac.uk> # Jan Ehrhardt <ehrhardt@imi.uni-luebeck.de> # Rene Werner <r.werner@uke.de> itk_fetch_module(VariationalRegistration "A module to perform variational image registrat...
# Insight Journal Handle: https://hdl.handle.net/10380/3460 # Contact: Alexander Schmidt-Richberg <a.schmidt-richberg@imperial.ac.uk> # Jan Ehrhardt <ehrhardt@imi.uni-luebeck.de> # Rene Werner <r.werner@uke.de> itk_fetch_module(VariationalRegistration "A module to perform variational image registrat...
Update release version to 2.0.2
# # 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...
# # 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 2) #set(SimpleITK_VERSION_T...
Add some documentation to the cmake find module
include(FindPackageHandleStandardArgs) set(paths /usr /usr/local ) find_path(VISIONARAY_INCLUDE_DIR NAMES scheduler.h # TODO: sure? PATHS ${paths} PATH_SUFFIXES include include/visionaray ) find_library(VISIONARAY_LIBRARY NAMES visionaray PATHS ...
#.rst: # FindVisionaray # -------------- # # Find the Visionaray ray tracing library # # Result Variables # ^^^^^^^^^^^^^^^^ # # This module defines the following variables: # # :: # # VISIONARAY_INCLUDE_DIR - include directories of Visionaray # VISIONARAY_LIBRARIES - libraries to link against Visionaray # VISIONARAY_F...
Include version suffix in lua executable search
#.rst: # FindLuaInterp # -------- # # Find Lua Interpreter # # :: # # LUA_EXECUTABLE - the full path to lua # LUA_EXECUTABLE_FOUND - If false, don't attempt to use lua # LUA_EXECUTABLE_VERSION_STRING - version of lua found find_program(LUA_EXECUTABLE NAMES lua ) if(LUA_EXECUTABLE) ### LUA_VER...
#.rst: # FindLuaInterp # -------- # # Find Lua Interpreter # # :: # # LUA_EXECUTABLE - the full path to lua # LUA_EXECUTABLE_FOUND - If false, don't attempt to use lua # LUA_EXECUTABLE_VERSION_STRING - version of lua found set(_NAMES lua) if(NOT LuaInterp_FIND_VERSION_MAJOR EQUAL 0) list(INSERT ...
Fix for building from a chroot where the host may be e.g. 64 bit and the target is 32 bit, we can't use CMAKE_SYSTEM_PROCESSOR and need to ask the compiler.
########################################################################### # Figure out what platform we're on, and set some variables appropriately message (STATUS "CMAKE_SYSTEM_NAME = ${CMAKE_SYSTEM_NAME}") message (STATUS "CMAKE_SYSTEM_VERSION = ${CMAKE_SYSTEM_VERSION}") message (STATUS "CMAKE_SYSTEM_PROCESSOR = $...
########################################################################### # Figure out what platform we're on, and set some variables appropriately # CMAKE_SYSTEM_PROCESSOR should not be used because it indicates the platform # we are building on, but when cross compiling or using a chroot this is not # what we want...
Use correct library on 64-bit Linux.
# -*- 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) ...
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})
Update ITK CMake version for 5.1.2
# ITK version number components. set(ITK_VERSION_MAJOR "5") set(ITK_VERSION_MINOR "1") set(ITK_VERSION_PATCH "1")
# ITK version number components. set(ITK_VERSION_MAJOR "5") set(ITK_VERSION_MINOR "1") set(ITK_VERSION_PATCH "2")
Remove -Werror flag unknown to XCC
# No special flags are needed for xcc. # Only select whether gcc or clang flags should be inherited. if(CC STREQUAL "clang") include(${ZEPHYR_BASE}/cmake/compiler/clang/compiler_flags.cmake) # Now, let's overwrite the flags that are different in xcc/clang. if($ENV{XCC_NO_G_FLAG}) # Older xcc/clang cannot use...
# No special flags are needed for xcc. # Only select whether gcc or clang flags should be inherited. if(CC STREQUAL "clang") include(${ZEPHYR_BASE}/cmake/compiler/clang/compiler_flags.cmake) # Now, let's overwrite the flags that are different in xcc/clang. if($ENV{XCC_NO_G_FLAG}) # Older xcc/clang cannot use...
Hide Google Test variables by default.
configure_file(${CMAKE_CURRENT_LIST_DIR}/GoogleTest-CMakeLists.txt.in ${CMAKE_BINARY_DIR}/googletest-download/CMakeLists.txt) execute_process(COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" . RESULT_VARIABLE result WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/googletest-download ) if(result) message(FATA...
configure_file(${CMAKE_CURRENT_LIST_DIR}/GoogleTest-CMakeLists.txt.in ${CMAKE_BINARY_DIR}/googletest-download/CMakeLists.txt) execute_process(COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" . RESULT_VARIABLE result WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/googletest-download ) if(result) message(FATA...
Fix for DEV-41797 - "LL_QUICKTIME_ENABLED is often unset on Windows builds"
# -*- cmake -*- if(INSTALL_PROPRIETARY) include(Prebuilt) use_prebuilt_binary(quicktime) endif(INSTALL_PROPRIETARY) if (DARWIN) include(CMakeFindFrameworks) find_library(QUICKTIME_LIBRARY QuickTime) elseif (WINDOWS) set(QUICKTIME_SDK_DIR "$ENV{PROGRAMFILES}/QuickTime SDK" CACHE PATH "Location of the Q...
# -*- cmake -*- if(INSTALL_PROPRIETARY) include(Prebuilt) use_prebuilt_binary(quicktime) endif(INSTALL_PROPRIETARY) if (DARWIN) include(CMakeFindFrameworks) find_library(QUICKTIME_LIBRARY QuickTime) elseif (WINDOWS) set(QUICKTIME_SDK_DIR "$ENV{PROGRAMFILES}/QuickTime SDK" CACHE PATH "Location of the Q...
Update FW, fix for custom alinment subpixel interpolation
# Maturity level "snapshot" / "release" set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot") # "full commit hash of device side binary" set(DEPTHAI_DEVICE_SIDE_COMMIT "ad6167f25ed047f2fe69caeb9006db04e469734a") # "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 "c812b10472be79e10e6876d1898389766ce95013") # "version if applicable" set(DEPTHAI_DEVICE_SIDE_VERSION "")
Revert "Change naming of packaged tarballs to match tag naming scheme - this should fix deployment to CVMFS"
# Packaging configuration SET(CPACK_PACKAGE_NAME "allpix-squared") SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Generic Pixel Detector Simulation Framework") SET(CPACK_PACKAGE_VENDOR "The Allpix Squared Authors") SET(CPACK_PACKAGE_CONTACT "The Allpix Squared Authors <allpix.squared@cern.ch>") SET(CPACK_PACKAGE_ICON "doc/logo...
# Packaging configuration SET(CPACK_PACKAGE_NAME "allpix-squared") SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Generic Pixel Detector Simulation Framework") SET(CPACK_PACKAGE_VENDOR "The Allpix Squared Authors") SET(CPACK_PACKAGE_CONTACT "The Allpix Squared Authors <allpix.squared@cern.ch>") SET(CPACK_PACKAGE_ICON "doc/logo...
Set CMP0072 to NEW to prefer GLVND over legacy OpenGL modules
# Try to Find OpenGL and GLUT silently # In addition sets two flags if the found versions are Apple frameworks # OPENGL_IS_A_FRAMEWORK # GLUT_IS_A_FRAMEWORK find_package(OpenGL QUIET REQUIRED) if(APPLE AND OPENGL_FOUND) if("${OPENGL_INCLUDE_DIR}" MATCHES "\\.framework") set(OPENGL_IS_A_FRAMEWORK TRUE) endif()...
# Try to Find OpenGL and GLUT silently # In addition sets two flags if the found versions are Apple frameworks # OPENGL_IS_A_FRAMEWORK # GLUT_IS_A_FRAMEWORK if(POLICY CMP0072) cmake_policy(SET CMP0072 NEW) endif() find_package(OpenGL QUIET REQUIRED) if(APPLE AND OPENGL_FOUND) if("${OPENGL_INCLUDE_DIR}" MATCHES "...
Correct usage of install(DIRECTORY ... PATTERN) which matches at end of file name
# Thrust manages its own copy of these rules. Update ThrustInstallRules.cmake # if modifying this file. if (CUB_IN_THRUST) return() endif() # Bring in CMAKE_INSTALL_LIBDIR include(GNUInstallDirs) # CUB is a header library; no need to build anything before installing: set(CMAKE_SKIP_INSTALL_ALL_DEPENDENCY TRUE) ins...
# Thrust manages its own copy of these rules. Update ThrustInstallRules.cmake # if modifying this file. if (CUB_IN_THRUST) return() endif() # Bring in CMAKE_INSTALL_LIBDIR include(GNUInstallDirs) # CUB is a header library; no need to build anything before installing: set(CMAKE_SKIP_INSTALL_ALL_DEPENDENCY TRUE) ins...
Update git tag to incorporate MGHIO origin fix
itk_fetch_module(MGHIO "MGHIO ImageIO plugin for ITK" GIT_REPOSITORY https://github.com/Slicer/itkMGHImageIO.git GIT_TAG 1beeaa5abb18188ded17bf6337b31c572d2594cf )
itk_fetch_module(MGHIO "MGHIO ImageIO plugin for ITK" GIT_REPOSITORY https://github.com/Slicer/itkMGHImageIO.git GIT_TAG 3566fcdd053249a59ba958586d8c32e5042f285b )
Switch to version 0.6.0: socket-based liboro
# This file is the official location of the current liboro version number. # Please do not add extra numerals in this file or change its formatting. SET(CPACK_PACKAGE_VERSION_MAJOR "0") SET(CPACK_PACKAGE_VERSION_MINOR "5") SET(CPACK_PACKAGE_VERSION_PATCH "9")
# This file is the official location of the current liboro version number. # Please do not add extra numerals in this file or change its formatting. SET(CPACK_PACKAGE_VERSION_MAJOR "0") SET(CPACK_PACKAGE_VERSION_MINOR "6") SET(CPACK_PACKAGE_VERSION_PATCH "0")
Add KPATH_SEPARATOR from kdelbs 4.1
/* Define to 1 if you have a recent enough libassuan */ #cmakedefine HAVE_USABLE_ASSUAN 1 /* Define to 1 if your libassuan has the assuan_fd_t type */ #cmakedefine HAVE_ASSUAN_FD_T 1 /* Define to 1 if your libassuan has the assuan_inquire_ext function */ #cmakedefine HAVE_ASSUAN_INQUIRE_EXT 1 /* Define to 1 if your...
/* Define to 1 if you have a recent enough libassuan */ #cmakedefine HAVE_USABLE_ASSUAN 1 /* Define to 1 if your libassuan has the assuan_fd_t type */ #cmakedefine HAVE_ASSUAN_FD_T 1 /* Define to 1 if your libassuan has the assuan_inquire_ext function */ #cmakedefine HAVE_ASSUAN_INQUIRE_EXT 1 /* Define to 1 if your...
Fix version detection for out-of-source builds
find_package(Git) if(GIT_EXECUTABLE) execute_process( COMMAND ${GIT_EXECUTABLE} describe --match "v[0-9]*.[0-9]*.[0-9]*" --always --tags --dirty OUTPUT_VARIABLE PROJECT_VERSION ERROR_QUIET ) # v{VERSION}-{N}-g{HASH} -> {VERSION}-{HASH} string(STRIP ${PROJECT_VERSION} PROJECT_VERSION) string(REGEX...
find_package(Git) if(GIT_EXECUTABLE) execute_process( COMMAND ${GIT_EXECUTABLE} describe --match "v[0-9]*.[0-9]*.[0-9]*" --always --tags --dirty WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} OUTPUT_VARIABLE PROJECT_VERSION ERROR_QUIET ) # v{VERSION}-{N}-g{HASH} -> {VERSION}-{HASH} string(STRIP ...
Revert "IMP-594: Impala binaries are embedding build-time locations of libraries"
# In order to statically link in the Boost, bz2, event and z libraries, they # needs to be recompiled with -fPIC. Set $PIC_LIB_PATH to the location of # these libraries in the environment, or dynamic linking will be used instead. IF (DEFINED ENV{PIC_LIB_PATH}) set(CMAKE_SKIP_RPATH TRUE) set(Boost_USE_STATIC_LI...
# In order to statically link in the Boost, bz2, event and z libraries, they # needs to be recompiled with -fPIC. Set $PIC_LIB_PATH to the location of # these libraries in the environment, or dynamic linking will be used instead. IF (DEFINED ENV{PIC_LIB_PATH}) set(Boost_USE_STATIC_LIBS ON) set(Boost_USE_STATIC...
Address Shared Library issues with SCIFIO
itk_fetch_module(SCIFIO "SCIFIO (Bioformats) ImageIO plugin for ITK" GIT_REPOSITORY https://github.com/scifio/scifio-imageio.git GIT_TAG 3e76055918e70c8e97730d1e321ec59f15007f4c )
itk_fetch_module(SCIFIO "SCIFIO (Bioformats) ImageIO plugin for ITK" GIT_REPOSITORY https://github.com/scifio/scifio-imageio.git GIT_TAG 19f2ca398d9565aef99ed739c14c7de1e3daacfa )
Enable dynamic memory allocation directly in littlefs1
# # file: littlefs1-sources.cmake # # author: Copyright (C) 2018-2019 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info # # This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not # distributed with this file, You can obtain one at http://mo...
# # file: littlefs1-sources.cmake # # author: Copyright (C) 2018-2019 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info # # This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not # distributed with this file, You can obtain one at http://mo...
Set correct path for Leap Motion static link library on Windows
# -*- cmake -*- include(Linking) if (INSTALL_PROPRIETARY) set(LEAPMOTION ON CACHE BOOL "Building with Leap Motion Controller support.") endif (INSTALL_PROPRIETARY) if( LEAPMOTION ) if (STANDALONE) # *TODO: Standalone support else (STANDALONE) include(Prebuilt) use_prebuilt_binary(leap-motion) if ...
# -*- cmake -*- include(Linking) if (INSTALL_PROPRIETARY) set(LEAPMOTION ON CACHE BOOL "Building with Leap Motion Controller support.") endif (INSTALL_PROPRIETARY) if( LEAPMOTION ) if (STANDALONE) # *TODO: Standalone support else (STANDALONE) include(Prebuilt) use_prebuilt_binary(leap-motion) if ...
Add march flag to gcc x86 to enable SSE
# 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")
# 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")
Fix for windows + develop.py: Use pscp on windows instead of scp.
# -*- cmake -*- # # Find the OpenSSH scp ("secure copy") or Putty pscp command. # # Input variables: # SCP_FIND_REQUIRED - set this if configuration should fail without scp # # Output variables: # # SCP_FOUND - set if scp was found # SCP_EXECUTABLE - path to scp or pscp executable # SCP_BATCH_FLAG - how to put ...
# -*- cmake -*- # # Find the OpenSSH scp ("secure copy") or Putty pscp command. # # Input variables: # SCP_FIND_REQUIRED - set this if configuration should fail without scp # # Output variables: # # SCP_FOUND - set if scp was found # SCP_EXECUTABLE - path to scp or pscp executable # SCP_BATCH_FLAG - how to put ...
Fix ASIO setup for Jenkins (again)
set(LABEL_EXPR "$ENV{label_exp}") if ("${LABEL_EXPR}" MATCHES "gcc") message(STATUS "Set CXX to g++ based on label_expr content") set(CMAKE_C_COMPILER "gcc" CACHE PATH "c++ compiler option") set(CMAKE_CXX_COMPILER "g++" CACHE PATH "c++ compiler option") elseif ("${LABEL_EXPR}" MATCHES "clang") message(STATUS "S...
set(LABEL_EXPR "$ENV{label_exp}") if ("${LABEL_EXPR}" MATCHES "gcc") message(STATUS "Set CXX to g++ based on label_expr content") set(CMAKE_C_COMPILER "gcc" CACHE PATH "C compiler option") set(CMAKE_CXX_COMPILER "g++" CACHE PATH "C++ compiler option") elseif ("${LABEL_EXPR}" MATCHES "clang") message(STATUS "Set...
Fix default temporal/spatial filter values when subpixel is enabled
# Maturity level "snapshot" / "release" set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot") # "full commit hash of device side binary" set(DEPTHAI_DEVICE_SIDE_COMMIT "fbbd61aaa70e094d40800e8e6cbb23548ecc24af") # "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 "456246cec6c17358f9eda61a41f45059c6ec7a2b") # "version if applicable" set(DEPTHAI_DEVICE_SIDE_VERSION "")
Drop reports via https only.
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)
set(UPDATE_TYPE "true") set(CTEST_PROJECT_NAME "libssh") set(CTEST_NIGHTLY_START_TIME "01:00:00 UTC") set(CTEST_DROP_METHOD "https") set(CTEST_DROP_SITE "test.libssh.org") set(CTEST_DROP_LOCATION "/submit.php?project=libssh") set(CTEST_DROP_SITE_CDASH TRUE)
Add checks of math.h and float.h
MACRO (MYPACKAGECHECKCOMMONINCLUDEFILES) INCLUDE (CheckIncludeFile) CHECK_INCLUDE_FILE ("stdio.h" HAVE_STDIO_H) CHECK_INCLUDE_FILE ("stddef.h" HAVE_STDDEF_H) CHECK_INCLUDE_FILE ("stdlib.h" HAVE_STDLIB_H) CHECK_INCLUDE_FILE ("stdarg.h" HAVE_STDARG_H) CHECK_INCLUDE_FILE ("stdint.h" ...
MACRO (MYPACKAGECHECKCOMMONINCLUDEFILES) INCLUDE (CheckIncludeFile) CHECK_INCLUDE_FILE ("stdio.h" HAVE_STDIO_H) CHECK_INCLUDE_FILE ("stddef.h" HAVE_STDDEF_H) CHECK_INCLUDE_FILE ("stdlib.h" HAVE_STDLIB_H) CHECK_INCLUDE_FILE ("stdarg.h" HAVE_STDARG_H) CHECK_INCLUDE_FILE ("stdint.h" ...