Skip to content

Commit 332218d

Browse files
committed
Change the install directory of amethyst library to be in launcher's folder.
1 parent bf9cb7e commit 332218d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "Choose the type of build, op
88
set(CMAKE_CXX_STANDARD 23)
99

1010
# Build into %appdata%/Amethyst
11-
set(DevResourcesFolder "$ENV{localappdata}/Packages/Microsoft.MinecraftUWP_8wekyb3d8bbwe/LocalState/games/com.mojang/development_resource_packs/")
11+
set(AmethystInstallDirectory "$ENV{AppData}/Amethyst/")
1212
set(AmethystFolder "$ENV{localappdata}/Packages/Microsoft.MinecraftUWP_8wekyb3d8bbwe/AC/Amethyst/")
1313
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELWITHDEBINFO "${AmethystFolder}/mods/${PROJECT_NAME}@${MOD_VERSION}")
1414

1515
# Include Amethyst
16-
find_library(AMETHYST_API AmethystAPI PATHS "${AmethystFolder}/lib")
17-
include_directories(${AmethystFolder}/include "include/")
16+
find_library(AMETHYST_API AmethystAPI PATHS "${AmethystInstallDirectory}/lib")
17+
include_directories(${AmethystInstallDirectory}/include "include/")
1818

1919
# Project Files
2020
file(GLOB_RECURSE CPP_SOURCES "src/*.cpp")
@@ -37,8 +37,8 @@ target_compile_definitions(${PROJECT_NAME} PRIVATE MOD_VERSION="${MOD_VERSION}")
3737

3838
# Link libraries
3939
target_link_libraries(${PROJECT_NAME} PRIVATE ${AMETHYST_API})
40-
target_link_libraries(${PROJECT_NAME} PRIVATE "${AmethystFolder}/lib/fmt.lib")
41-
target_link_libraries(${PROJECT_NAME} PRIVATE "${AmethystFolder}/lib/libhat.lib")
40+
target_link_libraries(${PROJECT_NAME} PRIVATE "${AmethystInstallDirectory}/lib/fmt.lib")
41+
target_link_libraries(${PROJECT_NAME} PRIVATE "${AmethystInstallDirectory}/lib/libhat.lib")
4242

4343
# Code Style
4444
add_custom_target(ClangFormat

0 commit comments

Comments
 (0)