2016-09-05 20:25:37 +00:00
|
|
|
cmake_minimum_required(VERSION 3.2)
|
2015-12-21 07:23:01 +00:00
|
|
|
|
2017-09-27 19:00:41 +00:00
|
|
|
include(appInfo.cmake)
|
2015-12-14 12:31:28 +00:00
|
|
|
|
2017-09-27 19:00:41 +00:00
|
|
|
# Build and install main executable
|
|
|
|
add_subdirectory(rhubarb)
|
2015-12-29 10:44:55 +00:00
|
|
|
|
2018-02-02 20:28:57 +00:00
|
|
|
# Build and install extras
|
|
|
|
add_subdirectory("extras/AdobeAfterEffects")
|
|
|
|
add_subdirectory("extras/MagixVegas")
|
2018-02-18 19:58:10 +00:00
|
|
|
add_subdirectory("extras/EsotericSoftwareSpine")
|
2016-11-15 20:56:39 +00:00
|
|
|
|
2017-09-27 19:00:41 +00:00
|
|
|
# Install misc. files
|
|
|
|
install(
|
2018-09-01 18:32:29 +00:00
|
|
|
FILES README.adoc LICENSE.md CHANGELOG.md
|
2017-09-27 19:00:41 +00:00
|
|
|
DESTINATION .
|
2015-12-21 07:23:01 +00:00
|
|
|
)
|
2015-11-11 19:25:47 +00:00
|
|
|
|
2017-09-27 19:00:41 +00:00
|
|
|
# Configure CPack
|
|
|
|
function(get_short_system_name variable)
|
|
|
|
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
|
|
|
|
set(${variable} "OSX" PARENT_SCOPE)
|
|
|
|
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
|
|
|
|
set(${variable} "Win32" PARENT_SCOPE)
|
|
|
|
else()
|
|
|
|
set(${variable} "${CMAKE_SYSTEM_NAME}" PARENT_SCOPE)
|
|
|
|
endif()
|
|
|
|
endfunction()
|
2015-12-29 14:55:05 +00:00
|
|
|
|
2016-01-12 21:04:11 +00:00
|
|
|
set(CPACK_PACKAGE_NAME ${appName})
|
|
|
|
string(REPLACE " " "-" CPACK_PACKAGE_NAME "${CPACK_PACKAGE_NAME}")
|
2017-09-27 19:00:41 +00:00
|
|
|
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}")
|
|
|
|
string(TOLOWER "${CPACK_PACKAGE_FILE_NAME}" CPACK_PACKAGE_FILE_NAME)
|
2016-01-12 21:04:11 +00:00
|
|
|
set(CPACK_GENERATOR ZIP)
|
|
|
|
|
2017-09-27 19:00:41 +00:00
|
|
|
# Run CPack
|
2016-01-13 11:01:22 +00:00
|
|
|
include(CPack)
|