mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-08 18:33:30 +00:00
remove examples support
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@482 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -15,7 +15,6 @@ endif()
|
||||
option(CLASSIC "Use classic theme" OFF)
|
||||
option(USE_STB_IMAGE "Use stb_image" ON)
|
||||
option(USE_STB_TRUETYPE "Use stb_truetype" ON)
|
||||
option(BUILD_EXAMPLES "Build examples" OFF)
|
||||
|
||||
file(
|
||||
GLOB
|
||||
@@ -103,8 +102,6 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||
USE_GDI
|
||||
)
|
||||
list(APPEND LIBRARIES gdi32)
|
||||
|
||||
list(APPEND GL_LIBRARIES opengl32 glu32)
|
||||
else()
|
||||
find_package(PkgConfig)
|
||||
pkg_check_modules(X11 REQUIRED x11)
|
||||
@@ -130,13 +127,6 @@ else()
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "NetBSD" AND VULKAN)
|
||||
list(APPEND INCLUDE_DIRS /usr/pkg/include)
|
||||
endif()
|
||||
|
||||
list(APPEND GL_INCLUDE_DIRS ${INCLUDE_DIRS})
|
||||
list(APPEND GL_LIBRARY_DIRS ${LIBRARY_DIRS})
|
||||
list(APPEND GL_LIBRARIES GL GLU)
|
||||
|
||||
list(APPEND VK_INCLUDE_DIRS ${INCLUDE_DIRS})
|
||||
list(APPEND VK_LIBRARY_DIRS ${LIBRARY_DIRS})
|
||||
endif()
|
||||
|
||||
target_include_directories(
|
||||
@@ -161,16 +151,6 @@ target_compile_definitions(
|
||||
_MILSKO
|
||||
)
|
||||
|
||||
if(BUILD_EXAMPLES)
|
||||
add_subdirectory(examples/basic)
|
||||
if(OPENGL)
|
||||
add_subdirectory(examples/gldemos)
|
||||
endif()
|
||||
if(VULKAN)
|
||||
add_subdirectory(examples/vkdemos)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
include(GNUInstallDirs)
|
||||
install(
|
||||
TARGETS Mw
|
||||
|
||||
Reference in New Issue
Block a user