Commit Graph

76 Commits

Author SHA1 Message Date
rdb 6ea1e8d65c CMake: Update OpenEXR package handling to use new targets 2022-03-09 16:23:37 +01:00
rdb e716dba8d4 CMake: Update FindLibSquish.cmake, support looking in thirdparty dir 2022-03-09 16:23:37 +01:00
rdb f30e87e7d1 CMake: Add FindGTK3.cmake file 2022-02-04 23:51:07 +01:00
rdb abe3c2bf0b CMake: Mark all system macOS frameworks as advanced variables
It should be extremely unusual to want to change these, and they are just cluttering up the CMake GUI.
2020-12-19 00:33:22 +01:00
rdb 53b8e52343 CMake: Add missing frameworks for linking static FFMpeg on macOS 2020-12-19 00:13:19 +01:00
Sam Edwards b739919fe4 CMake: Update FindFFMPEG to locate static ffmpeg dependencies too 2020-01-06 17:12:10 -07:00
Sam Edwards bff568798f CMake: Make FindAssimp pull in libIrrXML as well, if found 2020-01-06 17:11:31 -07:00
Sam Edwards 9512b2274b CMake: Remove libtar, unneeded downloadertools progs 2019-09-06 04:07:42 -06:00
Sam Edwards 855d217f35 CMake: Update for upstream changes
- Miles is gone; remove all references
- pystub is gone; remove all references
- dcparser uses Interrogate extensions properly; don't depend on Python
- stringStream* moved to express from downloader
2019-08-24 18:07:22 -06:00
Sam Edwards afe7ffb964 CMake: Fix several modules' search behavior
This makes these modules behave better when encountering
the makepanda thirdparty/ directory.
2019-08-23 16:09:13 -06:00
Sam Edwards d3ef7bf12d CMake: Avoid using continue()
This is, sadly, not added until CMake 3.4.

This commit avoids continue() by restructuring the loops so
that the conditions previously being used for continue() are
no longer needed. The alternative would've been to encase the
loop bodies massive ifs, but I find that to be a poor choice
for readability.
2019-06-25 03:34:51 -06:00
Sam Edwards b4a532f1d0 CMake: Add support for building against FCollada 2019-03-18 01:56:38 -06:00
Sam Edwards d961514892 CMake: Use string/list(APPEND foo ...) instead of set(foo ${foo} ...) 2019-01-19 17:01:36 -07:00
Sam Edwards 2298aba578 CMake: Correct order for {opus,vorbis}file libs 2019-01-13 14:24:35 -07:00
Sam Edwards 052004d06b CMake: Detect Opus 2019-01-13 12:04:48 -07:00
Sam Edwards 8a2375a5f1 CMake: Detect Ogg+Vorbis 2019-01-13 11:58:09 -07:00
Sam Edwards 615a1d205d CMake: Modify Find*.cmake to trust find_*()'s caching 2019-01-13 10:45:03 -07:00
Sam Edwards 654abdc5eb CMake: Detect when to set OPENCV_VER_23/OPENCV_VER_3 2019-01-06 15:37:14 -07:00
Sam Edwards f59c6bb2bf CMake: Make FindODE link against libccd when present
This fixes building against the macOS/Homebrew version of ODE.
2018-11-15 02:24:28 -07:00
Sam Edwards 1ae736f881 CMake: Detect and build support for Assimp 2018-11-12 15:49:08 -07:00
Sam Edwards d43767c617 CMake: Find OpenEXR, support it in pnmimagetypes 2018-11-07 19:56:01 -07:00
Sam Edwards 16be0770e7 CMake: Fix libCgGL linkage in FindCg.cmake
This involves both fixing the capitalization of "CgGL" and only adding
libraries to CG_LIBRARIES when they're found.
2018-11-06 02:07:08 -07:00
Sam Edwards 9222bc6d31 CMake: Detect OpenCV/ARToolKit, build p3vision
For now, p3vision is only built if either OpenCV or
ARToolKit is available. It does contain some generic
webcam access code, so it might be worth building it
when that's available.
2018-11-03 22:51:14 -06:00
Sam Edwards 3a5c158b5a CMake: Fix FindVRPN so it also finds VRPN's quat library 2018-11-03 22:51:12 -06:00
Sam Edwards 15a78c55bc CMake: Detect and use HarfBuzz when available 2018-11-02 23:37:26 -06:00
Sam Edwards f701e36aa5 CMake: Detect VRPN and build support for it when present
I inadvertently rewrote FindVRPN.cmake doing this - I didn't
think to check if it already existed before overwriting.
Oh well, the new version is a bit simpler.
2018-11-02 21:08:00 -06:00
Sam Edwards 5b973ed837 CMake: Add DirectX 9 support 2018-11-01 22:33:01 -06:00
Sam Edwards 7c42b75ac8 CMake: Update FindCg to discover cgD3D9
This also means renaming "CGDX9" to "CGD3D9" for consistency
with what Nvidia calls it.
2018-11-01 16:31:57 -06:00
Sam Edwards f07b713e8d CMake: Change FindOpenGLES* modules so they don't even try on Apple 2018-10-27 21:11:14 -06:00
Sam Edwards 11a75eab99 CMake: Build OpenGL ES (1&2) display modules
Also reorganizes Package.cmake a little, getting more of the
package discovery logic under the PackageConfig.cmake system.
2018-10-22 01:58:24 -06:00
Sam Edwards 56b211f902 CMake: Fix FindODE's include path finding
It needs to look for the path containing the "ode" directory,
not the "ode" directory itself.
2018-10-19 12:56:11 -06:00
Sam Edwards cefc000235 CMake: Remove PATHS from FindEigen3
Why do we need these? CMake checks the "obvious" paths for us.
2018-10-18 19:27:47 -06:00
Sam Edwards 8dd46eb736 CMake: Redo ODE find module
This defines an ODE::ODE target; it also automatically selects
the correct `dIDESINGLE`/`dIDEDOUBLE` compile-time definition.
2018-10-18 19:27:47 -06:00
Sam Edwards 590523ac8c CMake: Rename FindSquish to FindLibSquish
CMake already has a "FindSquish" for finding the GUI testing product.
This minimizes the chances of the wrong module being run on accident.
2018-02-20 18:58:52 -07:00
Sam Edwards 8b9d2c0f33 CMake: Delete FindEigen2, we rely on Eigen3+ 2018-02-20 18:19:56 -07:00
Sam Edwards 283db1fb7a CMake: Implement detection for FFTW3 2018-02-17 23:35:43 -07:00
Sam Edwards d66f5fa8e2 CMake: Kill support for <2.8.12
The rationale for this is in a comment at the top of the main
CMakeLists.txt file. It was getting harder to maintain support for a
version this old, and pretty much no current system has CMake <3.

Good riddance.
2018-02-06 14:47:12 -07:00
Sam Edwards e58697bee4 cmake: Fix AutoInclude workaround always being used irrespective of version.
Also fixes Interrogate's reliance on the INTERFACE_INCLUDE_DIRECTORIES target
property before generation time by using a generator expression to determine
Interrogate's include flags.
2016-12-01 02:36:40 -08:00
Sam Edwards 9d1254d440 cmake: Fix Eigen3 detection and support. 2014-04-17 02:56:56 -06:00
Sam Edwards 127dfe7c4d cmake: Add FFMPEG compilation support. 2014-04-11 03:38:08 -06:00
Sam Edwards 161beda242 CMake: Add missing quotes in FindCg module. 2014-03-02 21:53:15 -07:00
Sam Edwards f972221357 CMake: Detect ODE. 2014-02-08 16:20:57 -07:00
Sam Edwards 82a74dc281 Revert "Revert "Revise AutoInclude.cmake: My version of CMake, despite being >=2.8.11, doesn't actually support CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE.""
This reverts commit a40bfdb9061ceb06925d2756166640b368896946.
2014-01-30 16:47:00 -07:00
Sam Edwards cebdcd1d43 Revert "Revise AutoInclude.cmake: My version of CMake, despite being >=2.8.11, doesn't actually support CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE."
This reverts commit 6a38e3c95df00da728cbd253c0bf80c22d0c419b.
2014-01-30 13:47:44 -07:00
kestred c20f38c383 Add additional output, CG_LIBRARIES, to FindCg.cmake. 2014-01-30 04:37:48 -07:00
Sam Edwards 4fa6584fdf Revise AutoInclude.cmake: My version of CMake, despite being >=2.8.11, doesn't actually support CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE. 2014-01-29 14:39:15 -07:00
kestred 53ae0fb95b Fix FindCG to output variables in a general and expected format. 2014-01-19 14:04:18 -07:00
kestred dd495b5573 Rename FindFFTW to FindFFTW3 and comment out configuration for it. FindFFTW3 was implemented, but Panda expects FFTW2. 2014-01-19 12:07:20 -07:00
kestred c579f87007 cmake: Reorganize macros, and cleanup related files (add docs, etc) 2013-12-21 13:44:05 -07:00
kestred 826979c099 CMake: Configure: Finish cleaning up finding packages. 2013-12-13 13:32:04 -07:00