|
19 | 19 |
|
20 | 20 | cmake_minimum_required(VERSION 3.15) |
21 | 21 |
|
22 | | - |
23 | | -# The "project" command will overwrite the "VERSION" variables. We set |
24 | | -# the VERSION variables after the "project" command, so it should not |
25 | | -# affect us. |
26 | | -# |
27 | | -# https://cmake.org/cmake/help/latest/policy/CMP0048.html |
28 | | -cmake_policy(SET CMP0048 NEW) |
29 | | - |
30 | | -# # Honor visibility properties for all target types. |
31 | | -# # |
32 | | -# # https://cmake.org/cmake/help/latest/policy/CMP0063.html |
33 | | -# cmake_policy(SET CMP0063 NEW) |
34 | | - |
35 | | -if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0") |
36 | | - # Changes how timestamps of downloaded files with |
37 | | - # ExternalProject_Add() are set. |
38 | | - # |
39 | | - # https://cmake.org/cmake/help/latest/policy/CMP0135.html |
40 | | - cmake_policy(SET CMP0135 NEW) |
41 | | -endif() |
42 | | - |
43 | | -# Do not allow using GNU extensions (such as '-std=g++11'), because |
44 | | -# it's not compatible with Maya. |
45 | | -set(CXX_EXTENSIONS OFF) |
46 | | - |
47 | | -# Project configuration. |
48 | | -project(mmsolverlibs) |
49 | | -set(PROJECT_VERSION_MAJOR 0) |
50 | | -set(PROJECT_VERSION_MINOR 1) |
51 | | -set(PROJECT_VERSION_PATCH 0) |
52 | | -set(PROJECT_VERSION_TWEAK 0) |
53 | | -set(PROJECT_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}.${PROJECT_VERSION_TWEAK}") |
54 | | -set(PROJECT_HOMEPAGE_URL "https://github.com/david-cattermole/mayaMatchMoveSolver") |
55 | | -set(PROJECT_DESCRIPTION "mmSolver libraries.") |
56 | | -set(PROJECT_AUTHOR "David Cattermole") |
57 | | -set(PROJECT_COPYRIGHT "2023, 2024, David Cattermole.") |
58 | | - |
59 | 22 | # TODO: This relies on the '${mmsolverlibs_rust_DIR}' variable being set, |
60 | 23 | # which is not ideal at all. Instead this should be a default value |
61 | 24 | # (such as "/path/to/rust/build/directory/"). |
@@ -116,6 +79,3 @@ if (MMSOLVERLIBS_BUILD_TESTS) |
116 | 79 | add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/cppbind/mmimage/tests) |
117 | 80 | add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/cppbind/mmscenegraph/tests) |
118 | 81 | endif() |
119 | | - |
120 | | -include(MMCommonUtils) |
121 | | -mm_common_add_install_target("mmsolverlibs_cpp" ${CMAKE_CURRENT_SOURCE_DIR}/Config.cmake.in) |
0 commit comments