mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-15 03:25:01 -05:00
parent
06544a4391
commit
b78bc4629d
1 changed files with 18 additions and 20 deletions
|
@ -366,25 +366,23 @@ endif()
|
|||
add_subdirectory(test)
|
||||
|
||||
# Add install target on CLI >= 2.10.0 (which adds `geode profile path`)
|
||||
if (DEFINED GEODE_CLI_VERSION)
|
||||
if (${GEODE_CLI_VERSION} VERSION_GREATER_EQUAL "2.10.0")
|
||||
execute_process(
|
||||
COMMAND ${GEODE_CLI} profile path -d
|
||||
OUTPUT_VARIABLE GEODE_PROFILE_GD_PATH
|
||||
RESULT_VARIABLE GEODE_PROFILE_GD_PATH_RESULT
|
||||
if (NOT DEFINED GEODE_BUILDING_DOCS AND ${GEODE_CLI_VERSION} VERSION_GREATER_EQUAL "2.10.0")
|
||||
execute_process(
|
||||
COMMAND ${GEODE_CLI} profile path -d
|
||||
OUTPUT_VARIABLE GEODE_PROFILE_GD_PATH
|
||||
RESULT_VARIABLE GEODE_PROFILE_GD_PATH_RESULT
|
||||
)
|
||||
if (${GEODE_PROFILE_GD_PATH_RESULT} EQUAL 0)
|
||||
string(STRIP ${GEODE_PROFILE_GD_PATH} GEODE_PROFILE_GD_PATH)
|
||||
install(
|
||||
TARGETS geode-loader ${LAUNCHER_TARGET}
|
||||
RUNTIME
|
||||
DESTINATION "${GEODE_PROFILE_GD_PATH}"
|
||||
)
|
||||
file(GLOB RESOURCE_FILES ${GEODE_BIN_PATH}/nightly/resources/*.*)
|
||||
install(
|
||||
FILES ${RESOURCE_FILES}
|
||||
DESTINATION "${GEODE_PROFILE_GD_PATH}/geode/resources/geode.loader"
|
||||
)
|
||||
if (${GEODE_PROFILE_GD_PATH_RESULT} EQUAL 0)
|
||||
string(STRIP ${GEODE_PROFILE_GD_PATH} GEODE_PROFILE_GD_PATH)
|
||||
install(
|
||||
TARGETS geode-loader ${LAUNCHER_TARGET}
|
||||
RUNTIME
|
||||
DESTINATION "${GEODE_PROFILE_GD_PATH}"
|
||||
)
|
||||
file(GLOB RESOURCE_FILES ${GEODE_BIN_PATH}/nightly/resources/*.*)
|
||||
install(
|
||||
FILES ${RESOURCE_FILES}
|
||||
DESTINATION "${GEODE_PROFILE_GD_PATH}/geode/resources/geode.loader"
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue