Skip to content

Commit

Permalink
my gay dumbass forgot that lib needs to be prefixed on every librar…
Browse files Browse the repository at this point in the history
…y that isnt on windows
  • Loading branch information
3drosalia committed Dec 17, 2024
1 parent ae76ad4 commit 0301ae8
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Encore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,7 @@ option(SUPPORT_FILEFORMAT_JPG "Support loading JPG as textures" ON)
file(GLOB_RECURSE SRC_FILES "src/*.cpp" "include/*.cpp" "include/*.c")
file(GLOB_RECURSE INC_FILES "include/*.h" "include/*.h*" "src/*.h")
# Add source files to the executable
add_executable(Encore ${SRC_FILES} ${INC_FILES}
src/song/scoring.h
src/util/discord.cpp
src/util/discord.h
src/util/json-helper.h
)
add_executable(Encore ${SRC_FILES} ${INC_FILES})
# Temp player file

file(COPY "Songs" DESTINATION ${CMAKE_BINARY_DIR}/Encore)
Expand Down Expand Up @@ -81,7 +76,7 @@ endif()
if(UNIX AND NOT APPLE)
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
find_library(DISCORD-RPC NAMES discord-rpc PATHS "lib/discord-rpc/linux/x64")
file(COPY "lib/discord-rpc/linux/x64/discord-rpc.so" DESTINATION ${CMAKE_BINARY_DIR}/Encore)
file(COPY "lib/discord-rpc/linux/x64/libdiscord-rpc.so" DESTINATION ${CMAKE_BINARY_DIR}/Encore)
find_library(BASS NAMES bass PATHS "lib/bass/linux/x86_64")
file(COPY "lib/bass/linux/x86_64/libbass.so" DESTINATION ${CMAKE_BINARY_DIR}/Encore)
find_library(BASSOPUS NAMES bassopus PATHS "lib/bass/linux/x86_64")
Expand All @@ -91,7 +86,7 @@ if(UNIX AND NOT APPLE)
endif()
if(APPLE)
find_library(DISCORD-RPC NAMES discord-rpc PATHS "lib/discord-rpc/macos")
file(COPY "lib/discord-rpc/macos/discord-rpc.dylib" DESTINATION ${CMAKE_BINARY_DIR}/Encore)
file(COPY "lib/discord-rpc/macos/libdiscord-rpc.dylib" DESTINATION ${CMAKE_BINARY_DIR}/Encore)
find_library(BASS NAMES bass PATHS "lib/bass/macos")
file(COPY "lib/bass/macos/libbass.dylib" DESTINATION ${CMAKE_BINARY_DIR}/Encore)
find_library(BASSOPUS NAMES bassopus PATHS "lib/bass/macos")
Expand Down

0 comments on commit 0301ae8

Please sign in to comment.