Run the C++ generated component through the GL backend

... which in turn forward to the corelib, but with the GL renderer attached.
This commit is contained in:
Simon Hausmann 2020-05-11 15:05:33 +02:00
parent 5b4966f652
commit 83eb00b080
6 changed files with 87 additions and 2 deletions

View file

@ -45,8 +45,19 @@ add_custom_target(ensure_sixtyfps_runtime_up_to_date
)
add_dependencies(sixtyfps ensure_sixtyfps_runtime_up_to_date)
file(GLOB _SIXTYFPS_GL_INTERNAL_HEADER "${_SIXTYFPS_TARGET_DIR}/build/gl-*/out")
add_library(sixtyfps_gl SHARED IMPORTED)
set_target_properties(sixtyfps_gl PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES
"${_SIXTYFPS_GL_INTERNAL_HEADER}"
IMPORTED_LOCATION
"${_SIXTYFPS_TARGET_DIR}/libgl${CMAKE_SHARED_LIBRARY_SUFFIX}")
target_link_libraries(sixtyfps_gl INTERFACE sixtyfps)
### END This should be moce in some file in api/sixtyfps-cpp/cmake
add_executable(hello)
target_link_libraries(hello sixtyfps)
target_link_libraries(hello sixtyfps_gl)
sixtyfps_target_60_sources(hello hello.60)