-
Notifications
You must be signed in to change notification settings - Fork 42
/
CMakeLists.txt
47 lines (32 loc) · 1.76 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
37
38
39
40
41
42
43
44
45
46
47
cmake_minimum_required(VERSION 3.7.2)
set (CMAKE_CXX_STANDARD 20)
set (PROJECT_NAME "Island-MultiWindowExample")
# Set global property (all targets are impacted)
# set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CMAKE_COMMAND} -E time")
# set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK "${CMAKE_COMMAND} -E time")
project (${PROJECT_NAME})
# set to number of worker threads if you wish to use multi-threaded rendering
# add_compile_definitions( LE_MT=4 )
# Vulkan Validation layers are enabled by default for Debug builds.
# Uncomment the next line to disable loading Vulkan Validation Layers.
# add_compile_definitions( SHOULD_USE_VALIDATION_LAYERS=false )
# Point this to the base directory of your Island installation
set (ISLAND_BASE_DIR "${PROJECT_SOURCE_DIR}/../../../")
# Select which standard Island modules to use
set(REQUIRES_ISLAND_LOADER ON )
set(REQUIRES_ISLAND_CORE ON )
# Loads Island framework, based on selected Island modules from above
include ("${ISLAND_BASE_DIR}/CMakeLists.txt.island_prolog.in")
# Add custom module search paths
# add_island_module_location(${PROJECT_SOURCE_DIR}/../../modules)
# Main application c++ file. Not much to see there,
set (SOURCES main.cpp)
# Add application module, and (optional) any other private
# island modules which should not be part of the shared framework.
add_subdirectory (multi_window_example_app)
# Sets up Island framework linkage and housekeeping, based on user selections
include ("${ISLAND_BASE_DIR}/CMakeLists.txt.island_epilog.in")
# create a link to local resources
link_resources("${PROJECT_SOURCE_DIR}/resources" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/local_resources")
set_target_properties(${PROJECT_NAME} PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_BINARY_DIR}")
source_group(${PROJECT_NAME} FILES ${SOURCES})