Commit graph

55 commits

Author SHA1 Message Date
Rylie Pavlik c4e81d3b7c cmake: Update cmake modules from upstream collection.
Upstream is https://github.com/rpavlik/cmake-modules
2023-11-16 13:34:52 +00:00
sdegrande e17dd0a494 cmake: Fix GetGitRevisionDescription cmake module for MSys
When running in an msys environment and in a git worktree directory,
the git revision is not found.

This patch converts the git_worktree_dir variable to the windows format,
by adding the windows prefix of the msys root dir, so that the HEAD file
of the worktree can be found and used by the module.
2023-09-01 11:46:28 +02:00
utzcoz d0df0408ac cmake: Add name for OpenXR manifest file
Signed-off-by: utzcoz <utzcoz@outlook.com>
2023-06-02 15:53:44 +00:00
Korcan Hussein 0b3ef8f679 cmake: Fix linux builds with vcpkg. 2023-05-25 23:05:08 +01:00
Ryan Pavlik 13b154580b ci, cmake: add optional dep for bluetooth 2022-07-25 16:20:07 +01:00
Ryan Pavlik 0b74b3abe8 cmake: Fix FindONNXRuntime to work with prebuilt release binaries 2022-06-15 17:34:41 +01:00
Ryan Pavlik bb7ba409b8 build,scripts: Word choice/clarity 2022-05-17 17:40:58 -05:00
Ryan Pavlik 72ed68148d cmake: Teach build system how to use ASan on MSVC 2022-05-16 11:00:27 -05:00
Ryan Pavlik 351afdec8c cmake: Fix manifest generation for multi-config generators 2022-05-06 14:26:14 -05:00
Ryan Pavlik 36e2484fb4 cmake: Fix build-tree manifest gen for Windows 2022-05-06 00:26:34 +01:00
Ryan Pavlik d339e4d5d4 cmake: Improve cJSON finder to better handle CMake config files 2022-05-06 00:26:34 +01:00
Ryan Pavlik 097eeb4f29 cmake: Switch to a new way of setting options more in line with expectations.
If you explicitly request an option, and it's not available due to dependencies,
we now error out instead of silently changing the value.
2022-05-04 11:24:02 -05:00
Ryan Pavlik c718d69dae cmake: Put the manifest generation in a CMake module.
Will make it easier to modify/customize and
integrate the trampoline.
2022-04-21 17:17:16 -05:00
Ryan Pavlik b807742107 cmake: More fixes for the Percetto module. 2022-03-23 14:04:19 -05:00
Ryan Pavlik 8bfb4b3d09 cmake: Update to handle newer Percetto cmake build details 2022-03-23 11:22:10 -05:00
Jakob Bornecrantz 8d660b6994 cmake: Make it possible to select SPIR-V version to target 2022-03-22 15:19:48 +00:00
Ryan Pavlik 9626a8d575 cmake: Don't use pkgconfig on Android.
It tends to pick up host libraries.
2021-09-27 09:26:15 -05:00
Ryan Pavlik 0fec29687a cmake: Switch to a new FindPercetto module. 2021-09-27 09:23:09 -05:00
Moses Turner 4b5f4b9721 cmake: Add ONNX Runtime as a dependency for the handtracking driver
Co-authored-by: Ryan Pavlik <ryan.pavlik@collabora.com>

cmake-rebase
2021-09-03 21:06:18 +00:00
Christoph Haag cf93be263f cmake: Add lib/x64 path for leap motion v2
When downloading and extracting the leap developer kit:

Headers:
LeapDeveloperKit_2.3.1+31549_linux/LeapSDK/include

Libs:
LeapDeveloperKit_2.3.1+31549_linux/LeapSDK/lib/x64

With this change cmake finds the SDK with
-DLeapV2_ROOT_DIR=/path/to/LeapDeveloperKit_2.3.1+31549_linux/LeapSDK/
2021-08-26 00:44:57 +02:00
Jakob Bornecrantz de03b1c931 cmake: Add SPDX license identifiers to sanitizers 2021-08-16 21:18:52 +01:00
Moses Turner 8c9483d193 cmake: Add address sanitizers 2021-08-16 21:18:52 +01:00
Moses Turner 7461c57043 cmake: make ulv2 build a little better 2021-06-23 23:40:43 +01:00
Ryan Pavlik 111d353662 cmake: Make the git version detection more robust 2021-04-09 18:11:28 -05:00
Christoph Haag 2855616e32 build/cmake: Fix udev related warning
CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
  The package name passed to `find_package_handle_standard_args` (UDEV) does
  not match the name of the calling package (udev).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/Findudev.cmake:64 (find_package_handle_standard_args)
  CMakeLists.txt:71 (find_package)
2020-11-09 00:32:02 +01:00
Ryan Pavlik db952b277c cmake: Add SDPX tags 2020-11-02 17:04:51 +00:00
Ryan Pavlik cb767c7705 cmake: Fix FindOpenGLES 2020-10-28 09:32:49 -05:00
Jakob Bornecrantz 2528583c55 xrt: Add git tag/description 2020-10-20 17:43:11 +01:00
Ryan Pavlik 72662d91c1 cmake: Update scripts from shared module repo. 2020-08-06 14:52:46 +00:00
Ryan Pavlik 24e0202e3a cmake: Make FindHIDAPI add include dirs to imported targets 2020-07-22 16:17:09 +00:00
Ryan Pavlik ccbd087dc2 cmake: Add FindOpenGLES.cmake 2020-07-17 15:17:42 -05:00
Ryan Pavlik 9379248268 build: Add FindEigen3.cmake from upstream, to support pointing at the include dir. 2020-07-16 10:04:01 -05:00
Ryan Pavlik 6b0831466e cmake: Add missing modules 2020-05-28 19:46:14 +00:00
Ryan Pavlik 5935fad73b ipc: Add ability for service to be launched by systemd socket activation. 2020-05-07 16:54:11 -05:00
Ryan Pavlik 67a2c26295 build: Add FindSystemd.cmake
From https://github.com/Cloudef/wlc/blob/master/CMake/FindSystemd.cmake
2020-05-07 15:46:29 -05:00
Ryan Pavlik 7fab448cf0 build: Support building with system cJSON.
Fixes #62.
2020-04-24 20:34:53 +00:00
Ryan Pavlik 377ae07e53 xrt: Add missing SPDX tags 2020-03-23 17:29:43 -05:00
Ryan Pavlik 7db8a153a6 FindHIDAPI: Actually fix the underlying issue. 2020-03-03 17:30:45 -06:00
Ryan Pavlik b9ff8ff32f FindHIDAPI: Fix error if HDIAPI not found 2020-03-03 10:33:14 +00:00
Ryan Pavlik 6df97aad00 build: Make FindEGL work without the KDE modules 2020-01-14 11:51:12 -06:00
Ryan Pavlik a8ac420f06 build: Add FindEGL.cmake from KDE's extra-cmake-modules 2020-01-14 11:51:12 -06:00
Ryan Pavlik 4687955b17 FindOpenHMD: Handle transitive link of libhidapi better. 2020-01-14 11:51:12 -06:00
Lubosz Sarnecki 871f6bfc87 cmake: Remove unused and deprecated FindWayland.cmake script.
Martin Gräßlin's script from 2013 does not look for the
Wayland protocols directory and the scanner.
2019-10-02 12:22:36 +02:00
Ryan Pavlik 7a36e9eaf3 build: Add FindLibusb1.cmake 2019-06-28 17:38:29 +01:00
Christoph Haag 706e916bdb build: Add ${OPENHMD_ROOT_DIR}/build to OpenHMD library search 2019-06-05 12:34:08 +02:00
Jakob Bornecrantz ade0594914 build: Add libudev on Linux 2019-05-02 14:08:11 +01:00
Jakob Bornecrantz 1436dcaea8 build: Fix typos in hidapi cmake file 2019-05-02 14:08:11 +01:00
Ryan Pavlik 35f62087be cmake: Use pkg-config to help know if we need libsubunit. 2019-04-09 10:36:59 -05:00
Ryan Pavlik dc513e032b cmake: Fix FindLibcheck - doesn't always require libsubunit 2019-04-09 10:36:54 -05:00
Ryan Pavlik 606ee6ca41 cmake: Quote more strings in if(). 2019-04-08 15:18:57 -05:00