James Turner
0b9849d232
CMake: remove .cmake extensions
...
These seem to break include()’s regular path searching, which is odd.
2021-01-10 13:32:59 +00:00
James Turner
fa1f13cbe2
CMake: add upstream FindLibLZMA.cmake
...
Required since older CMake versions of this don't define an imported target
2021-01-10 11:56:22 +00:00
James Turner
83500dd413
CMake: use same 3rdParty logic as FlightGear
...
Avoids need to specify the 3rd-party dir, in the standard/fgmeta
layout of source directories, and accept more combinations of path,
when the user specifies a value.
2020-10-20 16:51:20 +01:00
Bertrand Coconnier
8c51d30ddb
Make CMake stop complaining about target "Udns::Udns" not found when rebuilding SimGear.
2020-10-03 17:58:11 +02:00
Erik Hofman
af1b170059
Use consistent naming
2020-08-24 10:58:55 +02:00
James Turner
2ed15eebfd
CMake fixes for Linux
2020-08-23 11:27:09 +01:00
Scott Giese
38e38bf3d3
CMake Fix: FindGDAL
...
FindPackageHandleStandardArgs.cmake is not located within simgear/CMakeModules.
Use the normal CMake folder.
2020-08-22 14:45:13 -05:00
James Turner
e85a3207ac
Add newer FindGDAL with imported target support
2020-08-19 09:22:52 +01:00
James Turner
456c63935c
Cmake refresh
...
Use target objects everywhere, and simplify handling of system vs
local dependencies.
2020-08-18 11:40:27 +01:00
James Turner
a128272816
Fix CMake include paths
2020-06-24 13:57:27 +01:00
James Turner
2b391ef671
Bundle Cmake FindCURL, for imported target support
...
This is the one from CMake 3.17, it should work fine with 3.10 but
let’s see.
2020-06-24 11:12:01 +01:00
James Turner
a53c1bfe8b
CMake logic to export debug symbols
2020-04-05 14:04:19 +01:00
Mykola Orliuk
65331599ec
BoostTestTargets.cmake: support CMake 3.15
...
Signed-off-by: James Turner <zakalawe@mac.com>
2019-10-17 09:41:35 +01:00
Florent Rougon
319b59500c
Convert obsolete uses of get_filename_component(<var> <FileName> PATH)
...
In the context of get_filename_component(), PATH is a legacy alias for
DIRECTORY. Replace it with DIRECTORY, which is recommended[1] for
CMake versions > 2.8.11.
[1] https://cmake.org/cmake/help/latest/command/get_filename_component.html
2019-04-25 19:19:19 +02:00
James Turner
99d30d5bb7
CMake tweak: include headers in targets
...
This improves navigation in XCode (any maybe some other tools)
2018-06-20 22:00:03 +01:00
Erik Hofman
03156a6d94
Better AeoNWave detection
2018-06-05 09:39:51 +02:00
Erik Hofman
08258ee4b3
Detect AeonWave and if it is installed use it, otherwise fall back to OpenAL. Also let get_available_devices() use C++ strings instead of const char*
2018-06-02 14:06:15 +02:00
Erik Hofman
3dceaf7a0b
Update to the latest version
2018-06-02 10:53:03 +02:00
Thomas Geymayer
af5833cbc5
cppbind: Refactor to use C++11+ type_traits
2018-01-21 13:21:55 +01:00
Erik Hofman
c03359a189
Update to the (now GPL) AeonWave version 3.0+
2017-10-31 10:42:44 +01:00
Erik Hofman
175eddd1fa
Add the proper SSE options to Clang too
2016-12-16 11:05:03 +01:00
Erik Hofman
203db3d095
Enable SSE and SSE2 by default
2016-12-16 10:49:44 +01:00
Alessandro Menti
86fb1ed00f
BoostTestTargets.cmake: fix a wrong include test
...
BoostTestTargets.cmake requires the CMake-configurable form of the Boost
test framework to be used (i.e. "#include <BoostTestTargetConfig.h>"), and
checks each test source code file for this, outputting a warning in case
this requirement is not met.
Unfortunately, a conditional in the check is badly specified (the CMake
variable syntax is not followed), so the warning is emitted even when it
should not be.
This patch fixes this bug and restores the correct behavior.
Submitted upstream at https://github.com/rpavlik/cmake-modules/pull/44
2016-12-08 11:47:18 +01:00
Erik Hofman
8d266491c5
Fix the header location
2016-08-06 11:26:47 +02:00
Erik Hofman
65a3d9ed6c
Search for the right header file
2016-08-04 18:40:12 +02:00
Erik Hofman
efe9648afa
Activate AeonWave by setting USE_AEONWAVE to ON
2016-07-21 13:05:40 +02:00
Maciej Mrozowski
33bd02f926
FindUdns.cmake: fix check for cached paths
2016-07-17 03:48:32 +02:00
Erik Hofman
03f7f82856
Revert to the previous way of handling OpenAL. The reason was to find alext.h but that reason has gone by copying a small number of defines
2016-06-01 09:51:41 +02:00
Erik Hofman
d1a808c630
Find OpenAL the proper way
2016-05-30 10:50:22 +02:00
Maciej Mrozowski
2b15b6b8ad
Add SYSTEM_UDNS CMake option. Remove spurious EXPAT_LIBRARIES linking when using bundled expat.
2016-05-26 02:33:24 +02:00
James Turner
5676f96fbf
Require Cmake 2.8.11
...
- drop OldGNUInstallDirs work-around as a result
2015-11-22 22:34:31 +00:00
Thomas Geymayer
b3c7d63809
Let ENABLE_TESTS enable/disable also the new Boost.Tests.
2014-09-22 18:21:52 +02:00
Thomas Geymayer
a9e7af6e6e
Enable dynamic linking on Mac for Boost.Test
2014-05-18 17:47:03 +02:00
Thomas Geymayer
55f18574aa
Fix for CMake 2.6
...
No named arguments for add_test in CMake 2.6.
2014-05-08 11:17:28 +02:00
Thomas Geymayer
02ac1a43c1
Add smart pointer tests (finally using Boost.Test)
2014-05-08 02:17:24 +02:00
James Turner
3e8732b230
Libsvn / APR dependency is removed.
...
Remove any use of libsubversion / API in Simgear, and always
compile the built-in SVN client code.
2013-09-23 18:05:37 +01:00
James Turner
06b089ba13
Updated package-management code.
...
Use mini-unzip code to extract, since we don't need all the features of libArchive, and the deployment issues become simpler.
2013-02-28 18:31:28 +00:00
James Turner
a530712491
Initial work on package management.
...
Basic library infrastructure, catalog download/refresh, and package install,
uninstall and update. Disabled at cmake time by default, and not yet hooked
into FlightGear.
2013-02-20 16:17:22 +00:00
ThorstenB
99cf057906
#946 : some libraries not found on Ubuntu/Debian
...
Ubuntu/Debian introduced "multiarch" library directories, which is
unsupported by CMake <= 2.8.10. Add manual search paths as a workaround.
Currently it is only needed for libsvn, but it is needed for any lib
which is converted to the new directory standard.
2012-12-01 11:00:50 +01:00
Frederic Bouvier
4993a5c6c0
Sort fgfs source files in IDE folders - Don't work for headers though
2012-09-16 21:19:11 +02:00
James Turner
47d88bcfa7
Standardise SimGear libraries, for static vs shared.
...
Always create only two SimGear libraries: SimGearCore and SimGearStatic, regardless of whether we're building static or shared. This requires an updated to FindSimGear.cmake module, for the static configuration.
2012-09-16 16:04:08 +01:00
ThorstenB
78c0419007
Fix libsvn detection for some Linux distros
...
Distros like Debian/Ubuntu use architecture-specific directory structures
(like /usr/lib/x86_64-linux-gnu) which we cannot hardcode/guess, so we
really need to search the default paths.
2012-09-03 23:51:38 +02:00
James Turner
c4f6aa2f90
Remove ALUT usage from SimGear .
...
Adapt the freealut code into a WAV-file reader. As a side-effect, it would now be possible to deploy WAV files compressed with gzip, since we use ZLib's gzread functions to read from disk.
2012-08-21 13:24:35 +01:00
Frederic Bouvier
4f3e1587b1
Restore auto-detection of SVN libs on Windows
2012-08-15 23:02:29 +02:00
James Turner
3270edcf87
Mac changes for Subversion bundling.
2012-08-11 15:21:52 +01:00
James Turner
8a33223483
Use standard version of FindPackageStandardArgs, no need to copy it.
2012-06-21 10:21:26 +02:00
James Turner
0e4eab1569
Improve ALUT framework detection (for Mac)
...
Latest Xcode no longer searches /Library/Frameworks by default which exposed an issue here. Search for the header by the correct name to trigger special -F handling in cmake.
2012-06-20 19:44:16 +02:00
ThorstenB
6780a0c8d4
Fixed lib64 auto-detection (again)
...
Reverting the "LIB_SUFFIX" change.
Assuming recent change was unintentional (otherwise let me know James! :) ).
2011-11-30 19:50:09 +01:00
James Turner
fee652d54a
Fix header installation for shared build
2011-11-30 09:45:32 +00:00
James Turner
4b02335637
Build system tweaks to support SIMGEAR_SHARED building two libraries. Work in progress, does not link yet.
2011-11-28 22:43:57 +00:00