Update build script

This commit is contained in:
2021-07-10 20:02:11 +02:00
parent cb3c93c8c8
commit 42bad4c049
2 changed files with 16 additions and 2 deletions

View File

@@ -24,9 +24,23 @@ if(LINUX)
endif()
project (openVulkanoCpp VERSION 1.0 LANGUAGES C CXX)
add_executable(openVulkanoCpp openVulkanoCpp/main.cpp)
file(GLOB_RECURSE sources CONFIGURE_DEPENDS "openVulkanoCpp/*.cpp")
if(IOS)
add_compile_options("$<$<CONFIG:Release>:-O3>$<$<CONFIG:Debug>:-O0>$<$<CONFIG:MinSizeRel>:-Os>$<$<CONFIG:RelWithDebInfo>:-O2>")
set(CMAKE_Swift_LANGUAGE_VERSION 5.0)
enable_language(Swift)
file(GLOB_RECURSE sources CONFIGURE_DEPENDS "openVulkanoCpp/*.mm" "openVulkanoCpp/*.m" "openVulkanoCpp/*.cpp" "openVulkanoCpp/*.swift")
list(FILTER sources EXCLUDE REGEX ".*GLFW.*")
list(FILTER sources EXCLUDE REGEX "main.cpp")
file(GLOB_RECURSE resources CONFIGURE_DEPENDS "openVulkanoCpp/*.storyboard" "openVulkanoCpp/*.xib")
add_executable(openVulkanoCpp openVulkanoCpp/main.m ${resources})
else()
add_executable(openVulkanoCpp openVulkanoCpp/main.cpp ${resources})
endif()
target_sources(openVulkanoCpp PRIVATE ${sources} openVulkanoCpp/Shader/Shaders.c)
target_include_directories(openVulkanoCpp PUBLIC openVulkanoCpp)

View File

@@ -39,7 +39,7 @@ namespace openVulkanoCpp::AR
public:
ArSessionCapabilities() = default;
ArSessionCapabilities(const ArType type, const ArSessionType sessionType, const bool uncompressed, const bool depthSupported, const bool recordingSupported)
ArSessionCapabilities(const ArType type, const ArSessionType sessionType, const bool uncompressed, const bool depthSupported)
: type(type), sessionType(sessionType), uncompressed(uncompressed), depthSupported(depthSupported)
{}