diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2024-06-05 19:04:25 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2024-06-05 19:04:25 +0300 |
commit | a6501b5d7ad204c3b998c843c7ed68ef7be323ba (patch) | |
tree | 1a442e6095abf160e36baa31a319858774cd1178 /lib/imgui-1.90.7/examples/example_android_opengl3/CMakeLists.txt | |
parent | 6af7e785890a322f60c21a51e3d41cd9015e6773 (diff) | |
download | cgame-a6501b5d7ad204c3b998c843c7ed68ef7be323ba.tar.gz cgame-a6501b5d7ad204c3b998c843c7ed68ef7be323ba.tar.bz2 cgame-a6501b5d7ad204c3b998c843c7ed68ef7be323ba.zip |
more vks, stupid mutlistep build, and imgui
Diffstat (limited to 'lib/imgui-1.90.7/examples/example_android_opengl3/CMakeLists.txt')
-rw-r--r-- | lib/imgui-1.90.7/examples/example_android_opengl3/CMakeLists.txt | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/lib/imgui-1.90.7/examples/example_android_opengl3/CMakeLists.txt b/lib/imgui-1.90.7/examples/example_android_opengl3/CMakeLists.txt new file mode 100644 index 0000000..63531f4 --- /dev/null +++ b/lib/imgui-1.90.7/examples/example_android_opengl3/CMakeLists.txt @@ -0,0 +1,40 @@ +cmake_minimum_required(VERSION 3.6) + +project(ImGuiExample) + +set(CMAKE_CXX_STANDARD 11) +set(CMAKE_CXX_STANDARD_REQUIRED ON) +set(CMAKE_CXX_EXTENSIONS OFF) + +add_library(${CMAKE_PROJECT_NAME} SHARED + ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/../../imgui.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/../../imgui_demo.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/../../imgui_draw.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/../../imgui_tables.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/../../imgui_widgets.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/../../backends/imgui_impl_android.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/../../backends/imgui_impl_opengl3.cpp + ${ANDROID_NDK}/sources/android/native_app_glue/android_native_app_glue.c +) + +set(CMAKE_SHARED_LINKER_FLAGS + "${CMAKE_SHARED_LINKER_FLAGS} -u ANativeActivity_onCreate" +) + +target_compile_definitions(${CMAKE_PROJECT_NAME} PRIVATE + IMGUI_IMPL_OPENGL_ES3 +) + +target_include_directories(${CMAKE_PROJECT_NAME} PRIVATE + ${CMAKE_CURRENT_SOURCE_DIR}/../.. + ${CMAKE_CURRENT_SOURCE_DIR}/../../backends + ${ANDROID_NDK}/sources/android/native_app_glue +) + +target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE + android + EGL + GLESv3 + log +) |