Commit Graph

31 Commits

Author SHA1 Message Date
Tony Theodore a9df005bb1 openthreads and openscenegraph: move try run results to cmake wrapper 2019-10-13 18:36:43 +11:00
Tony Theodore c1afdc77ca improve cmake toolchain variable handling and pkg-config detection 2019-04-09 23:29:31 +10:00
Tony Theodore 8f30a5af25 cmake toolchain: fix gcc ≥ 6 with CMAKE_<lang>_IMPLICIT_INCLUDE_DIRECTORIES 2018-08-15 12:57:09 +10:00
Tony Theodore 4e3467e517 cmake toolchain: set CMAKE_SYSTEM_PROCESSOR as CACHE variable 2018-03-29 12:59:50 +11:00
Tony Theodore 473f697ba3 Makefile and cmake-conf: set CMAKE_SYSTEM_PROCESSOR 2018-03-21 06:31:40 +11:00
Boris Nagaev d2d244a9ea fix typos found by misspell tool 2017-09-24 16:37:34 +02:00
Tony Theodore 3631f2f307 cmake: add prefixed cpack and CPACK_NSIS_EXECUTABLE
see #1502
2017-08-15 15:46:46 +10:00
Martin Müllenhaupt a540f21be6 vtk: update to version 8 and remove package vtk6 2017-07-24 10:08:11 +02:00
Boris Nagaev aa4a5223c2 support overriding CMAKE_BUILD_TYPE in cmdline
The script checks if -DCMAKE_BUILD_TYPE is passed in command line and if
it is not passed, passes -DCMAKE_BUILD_TYPE=Release. So now other build
types are supported, just pass -DCMAKE_BUILD_TYPE=<desired-type> to the
script $(TARGET)-cmake.

Fix https://github.com/mxe/mxe/issues/1697
2017-03-15 02:42:49 +01:00
Tony Theodore 24d37efa5d cmake: improve configuration with templates
- move cmake configuration from mxe-conf to cmake-conf
 - replace `echo` with templates for readability and maintenance
 - allow packages to set other dep files
 - set CMAKE_POLICY_DEFAULT_CMPNNNN in wrapper since
   `cmake_minimum_required` or `cmake_policy` can't be set in
   toolchain (closes #971)
2017-03-12 17:30:18 +11:00
Tony Theodore 5780100e32 cmake: update and remove unnecessary modules
FindOpenSSL module was needed before cmake was included in MXE:
6d97556825
2017-03-12 17:27:09 +11:00
Boris Nagaev 6adb5ade12 Copyright headers: point to LICENSE.md and shorten
The following script was applied:

    sed ':a;/part of MXE.$/{N;s/\n//;ba}' -i $(git grep -l 'part of MXE')

    sed 's/\(part of MXE\).*\(See index.html\)/\1. \2/' -i \
        $(git grep -l 'part of MXE.*See index.html')

    before='This file is part of MXE. See index.html for further information.'
    after='This file is part of MXE. See LICENSE.md for licensing information.'
    sed "s/$before/$after/" -i $(git grep -l 'part of MXE')

Then git grep 'index.html for further information' revealed two other files.
One of them was patched manually (patch.mk). Makefile has text
"See index.html for further information" unrelated to licensing.

See https://github.com/mxe/mxe/issues/1500#issuecomment-241340792
2016-08-27 12:31:29 +03:00
Tony Theodore 2d41575725 FindFreetype.cmake: add INCLUDE_DIR 2016-07-29 20:22:56 +10:00
Tony Theodore ba0e29e6c2 test/CMakeLists.txt: use default C and CXX languages 2015-12-02 02:15:48 +11:00
Tony Theodore 768c11246e cmake wrapper: use common TryRunResults.cmake 2015-12-01 20:31:10 +11:00
Boris Nagaev fbda4a9e93 add CMake module FindFriBiDi.cmake
Now the following CMake code finds FriBiDi:

  find_package(FriBiDi)
2015-10-19 04:50:53 +03:00
Boris Nagaev f2496929dc cmake test: use policy CMP0020 only if available
Policy CMP0020 was introduced in cmake 2.8.11.
Debian CMake version 2.8.9 is sufficient for building Qt.

See https://github.com/LuaAndC/mxe/commit/6133f6ec74aee1b5fa531782e585710

close #909
2015-10-16 03:42:25 +03:00
Boris Nagaev cea54f1cfa cmake test: decrease min version 2.8.11 -> 2.8.9
Debian Wheezy has CMake version 2.8.9 and it is sufficient for building Qt
(version 2.8.11 was chosen as it is recommended by Qt docs).

see #909
2015-10-16 03:41:14 +03:00
Tony Theodore 21befd3fc9 test/CMakeLists.txt: fix LANGUAGES keyword for 2.8 series 2015-10-06 17:45:20 +11:00
Tony Theodore 2bc137d4f6 cmake modules: use less warning-like status messages 2015-10-04 16:15:50 +11:00
Tony Theodore ee5db756fa boost pthreads sdl: tidy up cmake tests
closes #887
2015-10-04 16:01:18 +11:00
Tony Theodore ecfd032fc6 cmake modules: status message about using custom mxe file 2015-10-03 16:33:20 +10:00
Tony Theodore a0ae512424 move cmake modules to src/cmake/modules 2015-10-03 16:32:00 +10:00
Tony Theodore e2cb6a3020 FindTIFF.cmake: fix variable names 2015-09-08 22:01:34 +10:00
Timothy Gu 08b5627751 Add CMake script for finding TIFF
Fixes #721.
2015-06-18 18:41:54 -07:00
Mark Brand 6d97556825 directly include necessary .cmake files
These are needed by cmake projects using openssl. Originally these
files were installed by openssl, but it makes more sense just to
include them in MXE's repo.

The files come from cmake version 3.0.2.

FindOpenSSL.cmake includes a compatibility fix for openssl 1.0.2
taken from https://github.com/Homebrew/homebrew/pull/36361/files.

Reverts:
01af85c openssl: really fix the cmake problem
4259259 openssl: supply updated FindOpenSSL.cmake
2015-02-04 17:58:50 +01:00
Timothy Gu 226819825c CMake files: Add license boilerplate
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
2014-10-11 01:20:49 +00:00
Martin Müllenhaupt 999ccbd16d sdl_sound: provide cmake find-script and test 2014-10-09 15:49:49 +02:00
Martin Müllenhaupt 78db25a3b8 more CMake FindSDL.. replacements 2014-10-09 10:05:11 +02:00
Martin Müllenhaupt 10c6bd4062 package sdl_image: Fix #367 2014-10-09 09:45:49 +02:00
Martin Müllenhaupt 570c9ee42a package oce: fix static compilation #514 2014-10-08 10:44:34 +02:00