Skip to content

Commit

Permalink
Move VDF install to root CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmacha committed Jun 3, 2024
1 parent 8c31cca commit e2ba178
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,9 @@ if(${COPY_BUILD_DLL_AUTORUN})
COMMAND copy /y /b ${AUTORUN_SOURCE_DIR}\\*.dll ${AUTORUN_DIR})
endif()

add_subdirectory(vdf)
add_subdirectory(vdf)

install(FILES ${CMAKE_BINARY_DIR}/plugin.vs TYPE BIN)
install(CODE "execute_process(COMMAND powershell -file ${CMAKE_SOURCE_DIR}/vdf/Build-VDF.ps1 ${CMAKE_INSTALL_PREFIX}/bin)")
install(CODE "execute_process(COMMAND del /y /q ${CMAKE_INSTALL_PREFIX}/bin/plugin.vs)")
install(CODE "execute_process(COMMAND rd /s /q ${CMAKE_INSTALL_PREFIX}/bin/vdf/)")
5 changes: 0 additions & 5 deletions vdf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ add_custom_target(BuildVDF
COMMAND powershell -file ${CMAKE_SOURCE_DIR}\\vdf\\Build-VDF.ps1 ${CMAKE_BINARY_DIR}
VERBATIM)

install(FILES ${CMAKE_BINARY_DIR}/plugin.vs TYPE BIN)
install(CODE "execute_process(COMMAND powershell -file ${CMAKE_SOURCE_DIR}/vdf/Build-VDF.ps1 ${CMAKE_INSTALL_PREFIX}/bin)")
install(CODE "execute_process(COMMAND del /y /q ${CMAKE_INSTALL_PREFIX}/bin/plugin.vs)")
install(CODE "execute_process(COMMAND rd /s /q ${CMAKE_INSTALL_PREFIX}/bin/vdf/)")

if(${COPY_BUILD_VDF_DATA})
if((${UNION_API_FETCH_TYPE} STREQUAL "BINARY") AND (${UNION_API_LINK_TYPE} STREQUAL "SHARED"))
file(COPY ${CMAKE_BINARY_DIR}/union-api/bin/${CMAKE_BUILD_TYPE}/UnionAPI.dll DESTINATION ${CMAKE_BINARY_DIR})
Expand Down

0 comments on commit e2ba178

Please sign in to comment.