Skip to content

Commit

Permalink
Cmake: Add install rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Dasperal committed Jun 14, 2024
1 parent 55df23a commit 06b9a75
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
add_subdirectory(wads)

add_executable(rusdoom
am_map.c am_map.h
d_englsh.h
Expand Down Expand Up @@ -95,3 +97,8 @@ target_compile_options(rusdoom PRIVATE
-wx
-wcd=303
)

install(TARGETS rusdoom RUNTIME
DESTINATION .
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
4 changes: 4 additions & 0 deletions src/wads/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
install(FILES RUSDOOM.WAD
DESTINATION .
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
)

0 comments on commit 06b9a75

Please sign in to comment.