mirror of
https://github.com/bkaradzic/bgfx.cmake.git
synced 2026-02-17 21:12:35 +01:00
Update and rename ocornut-imgui to dear-imgui to mirror upstream
This commit is contained in:
2
bgfx
2
bgfx
Submodule bgfx updated: 97fe8e48a1...5dffe3060a
2
bx
2
bx
Submodule bx updated: 58e8d0505e...222456cdec
21
cmake/3rdparty/dear-imgui.cmake
vendored
Normal file
21
cmake/3rdparty/dear-imgui.cmake
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
# bgfx.cmake - bgfx building in cmake
|
||||
# Written in 2017 by Joshua Brookover <joshua.al.brookover@gmail.com>
|
||||
|
||||
# To the extent possible under law, the author(s) have dedicated all copyright
|
||||
# and related and neighboring rights to this software to the public domain
|
||||
# worldwide. This software is distributed without any warranty.
|
||||
|
||||
# You should have received a copy of the CC0 Public Domain Dedication along with
|
||||
# this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
|
||||
if( TARGET dear-imgui )
|
||||
return()
|
||||
endif()
|
||||
|
||||
file( GLOB dear_IMGUI_SOURCES ${BGFX_DIR}/3rdparty/dear-imgui/*.cpp ${BGFX_DIR}/3rdparty/dear-imgui/*.h ${BGFX_DIR}/3rdparty/dear-imgui/*.inl )
|
||||
|
||||
add_library( dear-imgui STATIC EXCLUDE_FROM_ALL ${dear_IMGUI_SOURCES} )
|
||||
target_compile_definitions( dear-imgui PRIVATE "-D_CRT_SECURE_NO_WARNINGS" "-D__STDC_FORMAT_MACROS" )
|
||||
target_include_directories( dear-imgui PUBLIC ${BGFX_DIR}/3rdparty )
|
||||
target_link_libraries( dear-imgui PUBLIC bx )
|
||||
set_target_properties( dear-imgui PROPERTIES FOLDER "bgfx/3rdparty" )
|
||||
21
cmake/3rdparty/ocornut-imgui.cmake
vendored
21
cmake/3rdparty/ocornut-imgui.cmake
vendored
@@ -1,21 +0,0 @@
|
||||
# bgfx.cmake - bgfx building in cmake
|
||||
# Written in 2017 by Joshua Brookover <joshua.al.brookover@gmail.com>
|
||||
|
||||
# To the extent possible under law, the author(s) have dedicated all copyright
|
||||
# and related and neighboring rights to this software to the public domain
|
||||
# worldwide. This software is distributed without any warranty.
|
||||
|
||||
# You should have received a copy of the CC0 Public Domain Dedication along with
|
||||
# this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
|
||||
if( TARGET ocornut-imgui )
|
||||
return()
|
||||
endif()
|
||||
|
||||
file( GLOB OCORNUT_IMGUI_SOURCES ${BGFX_DIR}/3rdparty/ocornut-imgui/*.cpp ${BGFX_DIR}/3rdparty/ocornut-imgui/*.h ${BGFX_DIR}/3rdparty/ocornut-imgui/*.inl )
|
||||
|
||||
add_library( ocornut-imgui STATIC EXCLUDE_FROM_ALL ${OCORNUT_IMGUI_SOURCES} )
|
||||
target_compile_definitions( ocornut-imgui PRIVATE "-D_CRT_SECURE_NO_WARNINGS" "-D__STDC_FORMAT_MACROS" )
|
||||
target_include_directories( ocornut-imgui PUBLIC ${BGFX_DIR}/3rdparty )
|
||||
target_link_libraries( ocornut-imgui PUBLIC bx )
|
||||
set_target_properties( ocornut-imgui PROPERTIES FOLDER "bgfx/3rdparty" )
|
||||
@@ -13,7 +13,7 @@ include( CMakeParseArguments )
|
||||
include( cmake/util/ConfigureDebugging.cmake )
|
||||
|
||||
include( cmake/3rdparty/ib-compress.cmake )
|
||||
include( cmake/3rdparty/ocornut-imgui.cmake )
|
||||
include( cmake/3rdparty/dear-imgui.cmake )
|
||||
|
||||
function( add_bgfx_shader FILE FOLDER )
|
||||
get_filename_component( FILENAME "${FILE}" NAME_WE )
|
||||
@@ -104,7 +104,7 @@ function( add_example ARG_NAME )
|
||||
if( ARG_COMMON )
|
||||
add_library( example-${ARG_NAME} STATIC EXCLUDE_FROM_ALL ${SOURCES} )
|
||||
target_include_directories( example-${ARG_NAME} PUBLIC ${BGFX_DIR}/examples/common )
|
||||
target_link_libraries( example-${ARG_NAME} PUBLIC bgfx ib-compress ocornut-imgui )
|
||||
target_link_libraries( example-${ARG_NAME} PUBLIC bgfx ib-compress dear-imgui )
|
||||
if( UNIX AND NOT APPLE )
|
||||
target_link_libraries( example-${ARG_NAME} PUBLIC X11 )
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user