-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
37 lines (28 loc) · 1.18 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# -------------------------------------------------------------------------
# Copyright (C) 2019 BMW AG
# -------------------------------------------------------------------------
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# -------------------------------------------------------------------------
cmake_minimum_required(VERSION 3.10)
set(project_name "ramses-export")
project(${project_name})
set(install_subdir ${project_name})
# TODO find a better way to handle this
set(CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}/${project_name})
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
set(ramses-python_INSTALL_PREFIX ${install_subdir})
# Important! This version has to be binary compatible with the one shipped
# with Blender!
set(PYBIND11_PYTHON_VERSION 3.7)
add_subdirectory(external/ramses-python)
# Installation
set(python_files
__init__.py
ramses_blender_exporter.py
)
# TODO add options in ramses to disable installation, or at least provide folder options
install(FILES ${python_files} DESTINATION .)