Skip to content

Commit

Permalink
Relocated dll's to PROJECTM_BIN_DIR on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Blaquewithaq committed Feb 2, 2024
1 parent 7e45cbe commit 47dbb2c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/libprojectM/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,16 @@ add_library(libprojectM::projectM ALIAS projectM)

if(ENABLE_INSTALL)

if(WIN32)
set(INSTALL_RUNTIME_DESTINATION "${PROJECTM_BIN_DIR}")
else()
set(INSTALL_RUNTIME_DESTINATION "${PROJECTM_LIB_DIR}")
endif()

install(TARGETS projectM
EXPORT libprojectMTargets
LIBRARY DESTINATION "${PROJECTM_LIB_DIR}" COMPONENT Runtime
RUNTIME DESTINATION "${PROJECTM_LIB_DIR}" COMPONENT Runtime
RUNTIME DESTINATION "${INSTALL_RUNTIME_DESTINATION}" COMPONENT Runtime
ARCHIVE DESTINATION "${PROJECTM_LIB_DIR}" COMPONENT Devel
PUBLIC_HEADER DESTINATION "${PROJECTM_INCLUDE_DIR}/libprojectM" COMPONENT Devel
)
Expand Down
8 changes: 7 additions & 1 deletion src/playlist/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,16 @@ add_library(libprojectM::playlist ALIAS projectM_playlist)

if(ENABLE_INSTALL)

if(WIN32)
set(INSTALL_RUNTIME_DESTINATION "${PROJECTM_BIN_DIR}")
else()
set(INSTALL_RUNTIME_DESTINATION "${PROJECTM_LIB_DIR}")
endif()

install(TARGETS projectM_playlist
EXPORT libprojectMPlaylist
LIBRARY DESTINATION "${PROJECTM_LIB_DIR}" COMPONENT Runtime
RUNTIME DESTINATION "${PROJECTM_LIB_DIR}" COMPONENT Runtime
RUNTIME DESTINATION "${INSTALL_RUNTIME_DESTINATION}" COMPONENT Runtime
ARCHIVE DESTINATION "${PROJECTM_LIB_DIR}" COMPONENT Devel
PUBLIC_HEADER DESTINATION "${PROJECTM_INCLUDE_DIR}/projectM-4" COMPONENT Devel
)
Expand Down

0 comments on commit 47dbb2c

Please sign in to comment.