2019-10-25 17:28:31 +02:00
|
|
|
cmake_minimum_required (VERSION 3.1)
|
2020-12-27 13:53:53 -06:00
|
|
|
project (tsmuxer_main CXX)
|
2019-08-11 14:58:13 -04:00
|
|
|
|
2021-09-22 21:33:14 +01:00
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
2019-10-25 17:28:31 +02:00
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
|
|
|
|
set(CMAKE_CXX_EXTENSIONS FALSE)
|
2019-08-11 14:58:13 -04:00
|
|
|
|
2020-01-17 17:58:23 +01:00
|
|
|
execute_process(
|
|
|
|
COMMAND git rev-parse --short HEAD
|
|
|
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
|
|
|
RESULT_VARIABLE GIT_REV_SHORT_RV
|
|
|
|
OUTPUT_VARIABLE GIT_REV_SHORT
|
|
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
|
|
)
|
|
|
|
set(TSMUXER_RELEASE FALSE)
|
|
|
|
set(VERSION_NUMBER "2.6.16")
|
|
|
|
if(${TSMUXER_RELEASE})
|
|
|
|
set(TSMUXER_VERSION ${VERSION_NUMBER})
|
2020-01-17 18:18:44 +01:00
|
|
|
elseif(${GIT_REV_SHORT_RV} EQUAL 0)
|
|
|
|
set(TSMUXER_VERSION "git-${GIT_REV_SHORT}")
|
2020-01-17 17:58:23 +01:00
|
|
|
else()
|
|
|
|
set(TSMUXER_VERSION "${VERSION_NUMBER}-dev")
|
|
|
|
endif()
|
|
|
|
add_definitions("-DTSMUXER_VERSION=\"${TSMUXER_VERSION}\"")
|
|
|
|
|
2020-12-27 13:53:53 -06:00
|
|
|
if(NOT MSVC)
|
|
|
|
include(GNUInstallDirs)
|
|
|
|
mark_as_advanced(CLEAR
|
|
|
|
CMAKE_INSTALL_BINDIR
|
|
|
|
CMAKE_INSTALL_DATADIR
|
|
|
|
)
|
|
|
|
else(NOT MSVC)
|
|
|
|
set(CMAKE_INSTALL_BINDIR bin)
|
|
|
|
endif(NOT MSVC)
|
|
|
|
|
2019-10-25 17:28:31 +02:00
|
|
|
add_subdirectory (libmediation)
|
|
|
|
add_subdirectory (tsMuxer)
|
2019-10-30 09:13:51 +00:00
|
|
|
if(TSMUXER_GUI)
|
|
|
|
add_subdirectory (tsMuxerGUI)
|
|
|
|
endif()
|