GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — imgui_impl_d2d/CMakeLists.txt at main · rymut/imgui_impl_d2d

Expand file tree

/

CMakeLists.txt

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
48 lines (39 loc) · 1.91 KB
/

CMakeLists.txt

Copy path

File metadata and controls

48 lines (39 loc) · 1.91 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
cmake_minimum_required(VERSION 3.20)
# conan 2.0 required settings
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL")
set(CMAKE_CXX_STANDARD 14)
set(CONAN_HOST_PROFILE "auto-cmake")
# download conan provider
set(CONAN_PROVIDER "${CMAKE_BINARY_DIR}/conan_provider.cmake")
set(CONAN_PROVIDER_GITHUB "rymut/cmake-conan")
if(NOT EXISTS "${CONAN_PROVIDER}")
message(STATUS "Downloading conan_provider.cmake from https://github.com/${CONAN_PROVIDER_GITHUB}")
file(DOWNLOAD "https://raw.githubusercontent.com/${CONAN_PROVIDER_GITHUB}/develop2/conan_provider.cmake"
"${CONAN_PROVIDER}"
TLS_VERIFY ON)
endif()
# configure options
option(IMGUI_IMPL_D2D_BUILD_TESTS "Build imgui_backend_d2d tests" OFF)
option(IMGUI_IMPL_D2D_BUILD_EXAMPLES "Build imgui_backend_d2d examples" ON)
option(IMGUI_IMPL_D2D_BUILD_SHARED_LIBS "Build imgui_backend_d2d as shared library" OFF)
project(imgui_impl_d2d LANGUAGES CXX)
include("${CONAN_PROVIDER}")
find_package(ImGui REQUIRED)
if (NOT IMGUI_IMPL_D2D_BACKENDS_ROOT)
get_property(IMGUI_IMPL_D2D_BACKENDS_ROOT GLOBAL PROPERTY CONAN_GENERATORS_FOLDER)
if (IMGUI_IMPL_D2D_BACKENDS_ROOT)
set(IMGUI_IMPL_D2D_BACKENDS_ROOT "${IMGUI_IMPL_D2D_BACKENDS_ROOT}/../backends")
else()
set(IMGUI_IMPL_D2D_BACKENDS_ROOT ".")
endif()
option(IMGUI_IMPL_D2D_BACKENDS_ROOT "ImGUI backends root" "${IMGUI_IMPL_D2D_BACKENDS_ROOT}")
endif()
add_library(${PROJECT_NAME})
target_sources(${PROJECT_NAME} PUBLIC "backends/imgui_impl_d2d.h" PRIVATE "backends/imgui_impl_d2d.cpp")
target_link_libraries(${PROJECT_NAME} PUBLIC imgui::imgui)
set_target_properties(${PROJECT_NAME} PROPERTIES PUBLIC_HEADER $<TARGET_PROPERTY:${PROJECT_NAME},INTERFACE_SOURCES>)
include(GNUInstallDirs)
install(TARGETS ${PROJECT_NAME} PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/imgui/backends)
if (IMGUI_IMPL_D2D_BUILD_EXAMPLES)
add_subdirectory(examples)
endif()
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.