rhubarb-lip-sync/CMakeLists.txt

39 lines
1.1 KiB
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.2)
include(app-info.cmake)
2021-10-13 18:31:16 +00:00
project(${appName})
# Build and install main executable
add_subdirectory(rhubarb)
2015-12-29 10:44:55 +00:00
# Build and install extras
add_subdirectory("extras/adobe-after-effects")
add_subdirectory("extras/magix-vegas")
add_subdirectory("extras/esoteric-software-spine")
# Install misc. files
2024-12-09 07:25:51 +00:00
install(FILES README.adoc LICENSE.md CHANGELOG.md DESTINATION .)
2015-11-11 19:25:47 +00:00
# Configure CPack
function(get_short_system_name variable)
2024-12-09 07:25:51 +00:00
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
set(${variable} "macOS" PARENT_SCOPE)
else()
set(${variable} "${CMAKE_SYSTEM_NAME}" PARENT_SCOPE)
endif()
endfunction()
2016-01-12 21:04:11 +00:00
set(CPACK_PACKAGE_NAME ${appName})
string(REPLACE " " "-" CPACK_PACKAGE_NAME "${CPACK_PACKAGE_NAME}")
get_short_system_name(CPACK_SYSTEM_NAME)
2016-01-12 21:04:11 +00:00
set(CPACK_PACKAGE_VERSION_MAJOR ${appVersionMajor})
set(CPACK_PACKAGE_VERSION_MINOR ${appVersionMinor})
set(CPACK_PACKAGE_VERSION_PATCH ${appVersionPatch})
set(CPACK_PACKAGE_VERSION ${appVersion})
2016-08-11 14:56:13 +00:00
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_SYSTEM_NAME}")
2016-01-12 21:04:11 +00:00
set(CPACK_GENERATOR ZIP)
# Run CPack
2016-01-13 11:01:22 +00:00
include(CPack)