Skip to content

Commit

Permalink
chore: 调整安装路径,去掉share文件夹
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Sep 13, 2023
1 parent 1c109f8 commit 2afa5f3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmake/assets.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ add_custom_command(OUTPUT ${maa_assets_target}/resource
add_custom_target(AssetsResource ALL DEPENDS ${maa_assets_target}/resource)
set_property(TARGET AssetsResource APPEND PROPERTY ADDITIONAL_CLEAN_FILES ${maa_assets_target}/resource)
set_target_properties(AssetsResource PROPERTIES FOLDER Assets)
install(DIRECTORY ${PROJECT_SOURCE_DIR}/assets/resource DESTINATION share)
install(DIRECTORY ${PROJECT_SOURCE_DIR}/assets/resource DESTINATION .)
4 changes: 2 additions & 2 deletions cmake/framework.cmake
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
install(DIRECTORY "${CMAKE_SOURCE_DIR}/deps/bin/" DESTINATION share)
install(DIRECTORY "${CMAKE_SOURCE_DIR}/deps/share/MaaAgentBinary" DESTINATION share)
install(DIRECTORY "${CMAKE_SOURCE_DIR}/deps/bin/" DESTINATION .)
install(DIRECTORY "${CMAKE_SOURCE_DIR}/deps/share/MaaAgentBinary" DESTINATION .)
2 changes: 1 addition & 1 deletion source/cli/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ target_link_libraries(MAA1999_CLI PRIVATE MaaFramework MaaToolKit)

add_dependencies(MAA1999_CLI AssetsResource)

install(TARGETS MAA1999_CLI RUNTIME DESTINATION share)
install(TARGETS MAA1999_CLI RUNTIME DESTINATION .)

0 comments on commit 2afa5f3

Please sign in to comment.