mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-05 00:50:53 +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
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
# $Id$
|
||||
file(
|
||||
GLOB
|
||||
EXAMPLES_BASIC_SOURCES
|
||||
*.c
|
||||
)
|
||||
|
||||
foreach(PATH IN LISTS EXAMPLES_BASIC_SOURCES)
|
||||
get_filename_component(
|
||||
TARGET
|
||||
${PATH}
|
||||
NAME_WE
|
||||
)
|
||||
add_executable(
|
||||
${TARGET} ${PATH}
|
||||
)
|
||||
target_include_directories(
|
||||
${TARGET}
|
||||
PRIVATE
|
||||
${CMAKE_SOURCE_DIR}/include
|
||||
)
|
||||
target_link_libraries(
|
||||
${TARGET}
|
||||
PRIVATE
|
||||
Mw
|
||||
)
|
||||
endforeach()
|
||||
@@ -1,35 +0,0 @@
|
||||
# $Id$
|
||||
file(
|
||||
GLOB
|
||||
EXAMPLES_GLDEMOS_SOURCES
|
||||
*.c
|
||||
)
|
||||
list(REMOVE_ITEM EXAMPLES_GLDEMOS_SOURCES ${CMAKE_SOURCE_DIR}/examples/gldemos/glutlayer.c)
|
||||
|
||||
foreach(PATH IN LISTS EXAMPLES_GLDEMOS_SOURCES)
|
||||
get_filename_component(
|
||||
TARGET
|
||||
${PATH}
|
||||
NAME_WE
|
||||
)
|
||||
add_executable(
|
||||
${TARGET} ${PATH}
|
||||
)
|
||||
target_include_directories(
|
||||
${TARGET}
|
||||
PRIVATE
|
||||
${GL_INCLUDE_DIRS}
|
||||
${CMAKE_SOURCE_DIR}/include
|
||||
)
|
||||
target_link_directories(
|
||||
${TARGET}
|
||||
PRIVATE
|
||||
${GL_LIBRARY_DIRS}
|
||||
)
|
||||
target_link_libraries(
|
||||
${TARGET}
|
||||
PRIVATE
|
||||
Mw
|
||||
${GL_LIBRARIES}
|
||||
)
|
||||
endforeach()
|
||||
@@ -1,28 +0,0 @@
|
||||
# $Id$
|
||||
file(
|
||||
GLOB
|
||||
EXAMPLES_VKDEMOS_SOURCES
|
||||
*.c
|
||||
)
|
||||
|
||||
foreach(PATH IN LISTS EXAMPLES_VKDEMOS_SOURCES)
|
||||
get_filename_component(
|
||||
TARGET
|
||||
${PATH}
|
||||
NAME_WE
|
||||
)
|
||||
add_executable(
|
||||
${TARGET} ${PATH}
|
||||
)
|
||||
target_include_directories(
|
||||
${TARGET}
|
||||
PRIVATE
|
||||
${VK_INCLUDE_DIRS}
|
||||
${CMAKE_SOURCE_DIR}/include
|
||||
)
|
||||
target_link_libraries(
|
||||
${TARGET}
|
||||
PRIVATE
|
||||
Mw
|
||||
)
|
||||
endforeach()
|
||||
Reference in New Issue
Block a user