Skip to content

Commit

Permalink
安装到别的地方
Browse files Browse the repository at this point in the history
  • Loading branch information
SaeruHikari committed Dec 13, 2020
1 parent e9ee86f commit 7299db8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion SakuraEngine/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/Binaries
/cmake
/Build
/Build
/Installed
4 changes: 2 additions & 2 deletions SakuraEngineConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ include(${CMAKE_CURRENT_LIST_DIR}/Runtime/SakuraEngineRuntimeTargets.cmake)

include_directories(${CMAKE_CURRENT_LIST_DIR}/../Extern)


message(STATUS "Engine LinkDir: ${CMAKE_CURRENT_LIST_DIR}/../Binaries/Debug")
link_directories(${CMAKE_CURRENT_LIST_DIR}/../Binaries/Debug)

set(PROJECT_DIR ${PROJECT_SOURCE_DIR})
set(PROJECT_BIN_DIR ${PROJECT_SOURCE_DIR}/Binaries)
#set(ENGINE_TOOLS_DIR ${ENGINE_DIR}/Binaries/Tools)
#set(FILE_SERVER_DIR "http://139.59.27.159//SaeruHikari")

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${PROJECT_BIN_DIR}/Debug)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG ${PROJECT_BIN_DIR}/Debug)
Expand Down
12 changes: 6 additions & 6 deletions cmake/Module.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ function(Module)

install(TARGETS ${MODULE_NAME}
EXPORT "SakuraEngine${CurrentScope}"
RUNTIME DESTINATION "/Binaries"
ARCHIVE DESTINATION "/Binaries"
LIBRARY DESTINATION "/Binaries"
RUNTIME DESTINATION "${ENGINE_DIR}/Installed/Binaries"
ARCHIVE DESTINATION "${ENGINE_DIR}/Installed/Lib"
LIBRARY DESTINATION "${ENGINE_DIR}/Installed/Lib"
)

if(MSVC)
Expand Down Expand Up @@ -167,9 +167,9 @@ function(CMakeImportedModule)
if(NOT ${MODULE_SELF_INSTALL})
install(TARGETS ${MODULE_NAME}
EXPORT "SakuraEngine${CurrentScope}CMakeImported"
RUNTIME DESTINATION "/Binaries"
ARCHIVE DESTINATION "/Binaries"
LIBRARY DESTINATION "/Binaries"
RUNTIME DESTINATION "${ENGINE_DIR}/Installed/Binaries"
ARCHIVE DESTINATION "${ENGINE_DIR}/Installed/Lib"
LIBRARY DESTINATION "${ENGINE_DIR}/Installed/Lib"
INCLUDES DESTINATION ${MODULE_INCLUDES_PUBLIC}
)
else()
Expand Down

0 comments on commit 7299db8

Please sign in to comment.