mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 22:01:13 +00:00
Make it easier to run the examples on Windows in the C++ build
Place the examples into the bin folder in the top-level directory (when not built standalone), along with the sixtyfps dll.
This commit is contained in:
parent
5b9ce15ae2
commit
5d24fde6f5
2 changed files with 12 additions and 0 deletions
|
@ -104,6 +104,12 @@ include(GNUInstallDirs)
|
|||
install(FILES $<TARGET_FILE:sixtyfps-cpp-shared> TYPE LIB)
|
||||
if(WIN32)
|
||||
install(FILES $<TARGET_LINKER_FILE:sixtyfps-cpp-shared> TYPE LIB)
|
||||
# Copy the dll to the top-level bin directory, where the examples will
|
||||
# will also be located, so that they can find the dll.
|
||||
add_custom_target(SixtyFPS_dll_convenience ALL DEPENDS sixtyfps-cpp-shared
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:sixtyfps-cpp-shared>
|
||||
${CMAKE_BINARY_DIR}/bin/$<TARGET_FILE_NAME:sixtyfps-cpp-shared>)
|
||||
endif()
|
||||
|
||||
install(PROGRAMS $<TARGET_FILE:sixtyfps_compiler> TYPE BIN)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue