2020-05-16 13:37:32 +02:00
|
|
|
cmake_minimum_required(VERSION 3.16.0 )
|
2020-04-30 20:03:14 +02:00
|
|
|
|
|
|
|
# This sets cmake to compile all dlls into the main directory
|
2020-06-07 13:06:55 +02:00
|
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
|
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
2020-04-30 20:03:14 +02:00
|
|
|
|
2020-06-21 16:07:41 +02:00
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
|
2020-08-10 22:57:57 +02:00
|
|
|
if(WIN32)
|
|
|
|
set(VCPKG_ARCH "x64-windows")
|
|
|
|
elseif(UNIX)
|
|
|
|
set(VCPKG_ARCH "x64-linux")
|
|
|
|
elseif(APPLE)
|
|
|
|
set(VCPKG_ARCH "x64-osx")
|
|
|
|
endif()
|
2020-04-30 20:03:14 +02:00
|
|
|
|
2020-08-10 22:57:57 +02:00
|
|
|
set(VCPKG_INCLUDE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/Common/vcpkg/installed/${VCPKG_ARCH}/include/)
|
2020-09-11 16:33:27 +02:00
|
|
|
set(VCPKG_TOOLS_PATH ${CMAKE_CURRENT_SOURCE_DIR}/Common/vcpkg/installed/${VCPKG_ARCH}/tools/)
|
2020-04-30 20:03:14 +02:00
|
|
|
set(QT_TELEMTRY_INCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/Common/qt-google-analytics/)
|
|
|
|
|
2020-08-10 17:39:42 +02:00
|
|
|
|
|
|
|
find_package(Git REQUIRED)
|
|
|
|
if(WIN32)
|
|
|
|
set(date_command "CMD" )
|
|
|
|
set(date_arg "/c date /t")
|
|
|
|
|
|
|
|
elseif(APPLE)
|
|
|
|
set(date_command "date")
|
|
|
|
set(date_arg " +%y.%m.%d")
|
|
|
|
elseif(UNIX)
|
|
|
|
set(date_command "date")
|
|
|
|
set(date_arg "")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
execute_process(COMMAND
|
|
|
|
${date_command} ${date_arg}
|
|
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
|
|
OUTPUT_VARIABLE BUILD_DATE
|
|
|
|
ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
|
|
|
|
|
|
execute_process(COMMAND
|
|
|
|
"${GIT_EXECUTABLE}" describe --always
|
|
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
|
|
OUTPUT_VARIABLE GIT_COMMIT_HASH
|
|
|
|
ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
|
|
|
|
|
|
add_compile_definitions(COMPILE_INFO="${BUILD_DATE} + ${GIT_COMMIT_HASH}")
|
|
|
|
|
2020-03-10 12:16:58 +01:00
|
|
|
project(ScreenPlay)
|
2020-04-30 20:03:14 +02:00
|
|
|
|
2020-03-10 12:16:58 +01:00
|
|
|
add_subdirectory(ScreenPlay)
|
|
|
|
add_subdirectory(ScreenPlaySDK)
|
2020-09-10 11:40:07 +02:00
|
|
|
add_subdirectory(ScreenPlayShader)
|
2020-03-10 12:16:58 +01:00
|
|
|
add_subdirectory(ScreenPlayWallpaper)
|
|
|
|
add_subdirectory(ScreenPlayWidget)
|
|
|
|
add_subdirectory(ScreenPlaySysInfo)
|