git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@498 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-28 20:26:12 +00:00
parent db5c925e4b
commit 1a563ff6c8
3 changed files with 6 additions and 13 deletions

View File

@@ -13,6 +13,7 @@ else()
option(VULKAN "Compile Vulkan widget or not" ON)
endif()
option(CLASSIC "Use classic theme" OFF)
option(BUILD_EXAMPLES "Build examples" OFF)
option(USE_STB_IMAGE "Use stb_image" ON)
option(USE_STB_TRUETYPE "Use stb_truetype" OFF)
option(USE_FREETYPE2 "Use FreeType 2" ON)
@@ -93,7 +94,7 @@ endif()
target_include_directories(
Mw
PRIVATE
PUBLIC
include
)
@@ -146,7 +147,7 @@ endif()
target_include_directories(
Mw
PUBLIC
PRIVATE
${INCLUDE_DIRS}
)
target_link_directories(
@@ -178,4 +179,6 @@ install(
FILES_MATCHING PATTERN "*.h"
)
add_subdirectory(examples)
if(BUILD_EXAMPLES)
add_subdirectory(examples)
endif()

View File

@@ -9,11 +9,6 @@ list(REMOVE_ITEM EXAMPLES_SOURCES ${CMAKE_SOURCE_DIR}/examples/harvard.c)
foreach(PATH IN LISTS EXAMPLES_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

View File

@@ -8,11 +8,6 @@ file(
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