mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-06 17:39:45 +00:00
oops
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@498 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -13,6 +13,7 @@ else()
|
|||||||
option(VULKAN "Compile Vulkan widget or not" ON)
|
option(VULKAN "Compile Vulkan widget or not" ON)
|
||||||
endif()
|
endif()
|
||||||
option(CLASSIC "Use classic theme" OFF)
|
option(CLASSIC "Use classic theme" OFF)
|
||||||
|
option(BUILD_EXAMPLES "Build examples" OFF)
|
||||||
option(USE_STB_IMAGE "Use stb_image" ON)
|
option(USE_STB_IMAGE "Use stb_image" ON)
|
||||||
option(USE_STB_TRUETYPE "Use stb_truetype" OFF)
|
option(USE_STB_TRUETYPE "Use stb_truetype" OFF)
|
||||||
option(USE_FREETYPE2 "Use FreeType 2" ON)
|
option(USE_FREETYPE2 "Use FreeType 2" ON)
|
||||||
@@ -93,7 +94,7 @@ endif()
|
|||||||
|
|
||||||
target_include_directories(
|
target_include_directories(
|
||||||
Mw
|
Mw
|
||||||
PRIVATE
|
PUBLIC
|
||||||
include
|
include
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -146,7 +147,7 @@ endif()
|
|||||||
|
|
||||||
target_include_directories(
|
target_include_directories(
|
||||||
Mw
|
Mw
|
||||||
PUBLIC
|
PRIVATE
|
||||||
${INCLUDE_DIRS}
|
${INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
target_link_directories(
|
target_link_directories(
|
||||||
@@ -178,4 +179,6 @@ install(
|
|||||||
FILES_MATCHING PATTERN "*.h"
|
FILES_MATCHING PATTERN "*.h"
|
||||||
)
|
)
|
||||||
|
|
||||||
add_subdirectory(examples)
|
if(BUILD_EXAMPLES)
|
||||||
|
add_subdirectory(examples)
|
||||||
|
endif()
|
||||||
|
|||||||
@@ -9,11 +9,6 @@ list(REMOVE_ITEM EXAMPLES_SOURCES ${CMAKE_SOURCE_DIR}/examples/harvard.c)
|
|||||||
foreach(PATH IN LISTS EXAMPLES_SOURCES)
|
foreach(PATH IN LISTS EXAMPLES_SOURCES)
|
||||||
get_filename_component(TARGET ${PATH} NAME_WE)
|
get_filename_component(TARGET ${PATH} NAME_WE)
|
||||||
add_executable(${TARGET} ${PATH})
|
add_executable(${TARGET} ${PATH})
|
||||||
target_include_directories(
|
|
||||||
${TARGET}
|
|
||||||
PRIVATE
|
|
||||||
${CMAKE_SOURCE_DIR}/include
|
|
||||||
)
|
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
${TARGET}
|
${TARGET}
|
||||||
PRIVATE
|
PRIVATE
|
||||||
|
|||||||
@@ -8,11 +8,6 @@ file(
|
|||||||
foreach(PATH IN LISTS EXAMPLES_BASIC_SOURCES)
|
foreach(PATH IN LISTS EXAMPLES_BASIC_SOURCES)
|
||||||
get_filename_component(TARGET ${PATH} NAME_WE)
|
get_filename_component(TARGET ${PATH} NAME_WE)
|
||||||
add_executable(${TARGET} ${PATH})
|
add_executable(${TARGET} ${PATH})
|
||||||
target_include_directories(
|
|
||||||
${TARGET}
|
|
||||||
PRIVATE
|
|
||||||
${CMAKE_SOURCE_DIR}/include
|
|
||||||
)
|
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
${TARGET}
|
${TARGET}
|
||||||
PRIVATE
|
PRIVATE
|
||||||
|
|||||||
Reference in New Issue
Block a user