You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
798 B
31 lines
798 B
cmake_minimum_required(VERSION 3.10) |
|
|
|
set(PROJECT_NAME "embedder_texture") |
|
project(${PROJECT_NAME} LANGUAGES CXX) |
|
|
|
set(PLUGIN_NAME "embedder_texture_plugin") |
|
|
|
list(APPEND PLUGIN_SOURCES |
|
"fl_my_texture_gl.cc" |
|
"embedder_texture_plugin.cc" |
|
) |
|
|
|
add_library(${PLUGIN_NAME} SHARED |
|
${PLUGIN_SOURCES} |
|
) |
|
|
|
apply_standard_settings(${PLUGIN_NAME}) |
|
|
|
set_target_properties(${PLUGIN_NAME} PROPERTIES CXX_VISIBILITY_PRESET hidden) |
|
target_compile_definitions(${PLUGIN_NAME} PRIVATE FLUTTER_PLUGIN_IMPL) |
|
|
|
target_include_directories(${PLUGIN_NAME} INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/include") |
|
target_link_libraries(${PLUGIN_NAME} PRIVATE flutter) |
|
target_link_libraries(${PLUGIN_NAME} PRIVATE PkgConfig::GTK) |
|
|
|
# sudo apt-get install libglew-dev |
|
target_link_libraries(${PLUGIN_NAME} PUBLIC |
|
EGL |
|
GLEW |
|
GL |
|
)
|
|
|