Skip to content

Commit

Permalink
Install all files to root + SDL2.dll
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed May 28, 2024
1 parent 1738dba commit 9f6ca57
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ if(MSVC)
endif()

include(CheckCCompilerFlag)
include(GNUInstallDirs)
include(TestBigEndian)

if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/VERSION")
Expand Down Expand Up @@ -90,7 +89,7 @@ endif()

if(DETHRACE_INSTALL)
install(FILES LICENSE
DESTINATION "${CMAKE_INSTALL_DOCDIR}"
DESTINATION "."
)

set(DETHRACE_PACKAGE_PLATFORM "" CACHE STRING "Dethrace binary package platform")
Expand Down
10 changes: 8 additions & 2 deletions src/DETHRACE/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,17 @@ endif()

if (DETHRACE_INSTALL)
install(TARGETS dethrace
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
RUNTIME DESTINATION "."
)
if(MSVC)
INSTALL(FILES $<TARGET_PDB_FILE:dethrace>
DESTINATION "${CMAKE_INSTALL_BINDIR}"
DESTINATION "."
OPTIONAL
)
endif()
if(WIN32)
INSTALL(FILES $<TARGET_RUNTIME_DLLS:dethrace>
DESTINATION "."
OPTIONAL
)
endif()
Expand Down

0 comments on commit 9f6ca57

Please sign in to comment.