This repository was archived by the owner on Nov 27, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed
Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ add_executable(${CMAKE_PROJECT_NAME} main.cpp)
33
44message (" finding where Skia shared library is" )
55include (FindSkiaSystem)
6+ message (" set SKIA_LIBRARIES to ${SKIA_LIBRARIES} " )
7+
8+ message ("-- Use target_link_directories to" )
9+ message (" tell target where to look for .dlls" )
10+ message (" (by default in CMake +3 it is recommended to link by targets, not directories)" )
11+ target_link_directories (${CMAKE_PROJECT_NAME} PRIVATE ${CMAKE_BINARY_DIR} /src)
612
713set (EXECUTABLE_LIBRARIES
814 ${APP_DEPENDENCIES}
@@ -13,5 +19,5 @@ set(EXECUTABLE_LIBRARIES
1319message (" linked with ${EXECUTABLE_LIBRARIES} " )
1420
1521# Finally join our libraries with the executable
16- target_link_libraries (${CMAKE_PROJECT_NAME} ${EXECUTABLE_LIBRARIES} )
22+ target_link_libraries (${CMAKE_PROJECT_NAME} PRIVATE ${EXECUTABLE_LIBRARIES} )
1723
Original file line number Diff line number Diff line change 11message ("-- Generated shared library" )
22message (" from target Engine" )
33message (" in ${SKIA_BUILD_DIR} /libskia.friction.so" )
4- message ("-- Moving libskia.friction.so" )
5- message (" to ${CMAKE_BINARY_DIR} /${CMAKE_INSTALL_LIBDIR} " )
64
5+ message ("-- Moving libskia.friction.so" )
6+ message (" to ${CMAKE_BINARY_DIR} /src" )
7+ message (" so it is importable using \"\" " )
78file (COPY ${SKIA_BUILD_DIR} /libskia.friction.so
8- DESTINATION ${CMAKE_BINARY_DIR} /${CMAKE_INSTALL_LIBDIR} )
9+ DESTINATION ${CMAKE_BINARY_DIR} /src)
10+
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ ExternalProject_Add(
7070
7171
7272if (UNIX AND NOT APPLE )
73- # include(CopySkiaLibraryToInstallDir)
73+ include (CopySkiaLibraryToInstallDir)
7474endif ()
7575
7676
You can’t perform that action at this time.
0 commit comments