Skip to content

Commit

Permalink
Fixes linux install in cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
LiquidityC committed Sep 29, 2024
1 parent a08c1db commit bd3289d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -407,11 +407,11 @@ include(InstallRequiredSystemLibraries)

INSTALL(TARGETS breakhack
COMPONENT Release
RUNTIME DESTINATION .
RUNTIME DESTINATION bin/
)
INSTALL(FILES assets.pack data.pack
COMPONENT Release
DESTINATION .
DESTINATION share/breakhack/
)

set(CPACK_INSTALL_CMAKE_PROJECTS "${PROJECT_BINARY_DIR};breakhack;Release;.")
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ package:
@cmake --build build/win-release --target package
.PHONY: package

install:
@cmake --build build/release --target install
.PHONY: install

setup:
@mkdir -p build/debug
@mkdir -p build/release
Expand Down

0 comments on commit bd3289d

Please sign in to comment.