mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2025-12-30 22:20:50 +00:00
fix things
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@501 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -6,6 +6,8 @@ project(
|
||||
DESCRIPTION "Milsko GUI Toolkit"
|
||||
)
|
||||
|
||||
include(CheckIncludeFiles)
|
||||
|
||||
option(OPENGL "Compile OpenGL widget or not" ON)
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
|
||||
option(VULKAN "Compile Vulkan widget or not" OFF)
|
||||
@@ -140,8 +142,11 @@ else()
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
list(APPEND LIBRARIES dl)
|
||||
endif()
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "NetBSD" AND VULKAN)
|
||||
list(APPEND INCLUDE_DIRS /usr/pkg/include)
|
||||
if(VULKAN)
|
||||
pkg_check_modules(VULKAN REQUIRED vulkan)
|
||||
list(APPEND INCLUDE_DIRS ${VULKAN_INCLUDE_DIRS})
|
||||
list(APPEND LIBRARY_DIRS ${VULKAN_LIBRARY_DIRS})
|
||||
list(APPEND LIBRARIES ${VULKAN_LIBRARIES})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
@@ -161,6 +166,17 @@ target_link_libraries(
|
||||
${LIBRARIES}
|
||||
)
|
||||
|
||||
if(VULKAN)
|
||||
check_include_files(vulkan/vk_enum_string_helper.h HAS_VK_ENUM_STRING_HELPER)
|
||||
if(HAS_VK_ENUM_STRING_HELPER)
|
||||
target_compile_definitions(
|
||||
Mw
|
||||
PRIVATE
|
||||
HAS_VK_ENUM_STRING_HELPER
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
target_compile_definitions(
|
||||
Mw
|
||||
PRIVATE
|
||||
|
||||
Reference in New Issue
Block a user