mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-22 02:19:44 +00:00
add macOS .app bundle and dmg packaging
This commit is contained in:
parent
698fd32071
commit
f241e4c355
9 changed files with 180 additions and 16 deletions
|
|
@ -9,6 +9,7 @@ execute_process(COMMAND ${CMAKE_COMMAND} --version)
|
|||
|
||||
option(VOXELENGINE_BUILD_APPDIR "Pack linux build" OFF)
|
||||
option(VOXELENGINE_BUILD_TESTS "Build tests" OFF)
|
||||
option(VOXELENGINE_BUILD_MACOS_BUNDLE "Pack macOS .app bundle" OFF)
|
||||
|
||||
add_compile_definitions(VC_BUILD_NAME="${VC_BUILD_NAME}")
|
||||
|
||||
|
|
@ -41,6 +42,10 @@ if(VOXELENGINE_BUILD_APPDIR)
|
|||
include(${CMAKE_CURRENT_SOURCE_DIR}/dev/cmake/BuildAppdir.cmake)
|
||||
endif()
|
||||
|
||||
if(VOXELENGINE_BUILD_MACOS_BUNDLE)
|
||||
include(${CMAKE_CURRENT_SOURCE_DIR}/dev/cmake/BuildMacBundle.cmake)
|
||||
endif()
|
||||
|
||||
target_link_libraries(VoxelCore PRIVATE VoxelCoreSrc
|
||||
$<$<PLATFORM_ID:Windows>:winmm>)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue