-
Notifications
You must be signed in to change notification settings - Fork 26
/
CMakeLists.txt
26 lines (22 loc) · 1.26 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
cmake_minimum_required(VERSION 3.5.1 FATAL_ERROR)
project(vts-browser-unity-plugin)
if(BUILDSYS_IOS)
set(VTS_BROWSER_TYPE FRAMEWORK CACHE STRING "VTS_BROWSER_TYPE forced for use by Unity" FORCE)
message(STATUS "disable implicit code sign id - it is managed in the project generated by unity instead")
set(BUILDSYS_IOS_NO_CODESIGN_ID ON)
elseif(APPLE)
set(VTS_BROWSER_TYPE MODULE CACHE STRING "VTS_BROWSER_TYPE forced for use by Unity" FORCE)
endif()
# all final product files should be placed in ONE location
# because fu*king xcode is screwing things up
foreach(conf IN ITEMS ${CMAKE_CONFIGURATION_TYPES} ${CMAKE_BUILD_TYPE})
string(TOUPPER ${conf} conf_upper)
string(TOLOWER ${conf} conf_lower)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_${conf_upper} "${CMAKE_BINARY_DIR}/result/${conf_lower}")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_${conf_upper} "${CMAKE_BINARY_DIR}/result/${conf_lower}")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_${conf_upper} "${CMAKE_BINARY_DIR}/result/${conf_lower}")
endforeach(conf)
add_subdirectory(externals/browser)
buildsys_fix_symlinks(${CMAKE_CURRENT_SOURCE_DIR}/src/Vts/Scripts)
buildsys_fix_symlinks(${CMAKE_CURRENT_SOURCE_DIR}/src/Vts/Documentation)
buildsys_fix_symlinks(${CMAKE_CURRENT_SOURCE_DIR}/src/Vts/Resources/Textures)