23 lines
525 B
CMake
23 lines
525 B
CMake
cmake_minimum_required (VERSION 3.1)
|
|
project (tsmuxer_main)
|
|
|
|
set(CMAKE_CXX_STANDARD 14)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
|
|
set(CMAKE_CXX_EXTENSIONS FALSE)
|
|
|
|
if (WIN32)
|
|
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DWIN32")
|
|
else()
|
|
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMAC")
|
|
else()
|
|
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DLINUX")
|
|
endif()
|
|
endif()
|
|
|
|
add_subdirectory (libmediation)
|
|
add_subdirectory (tsMuxer)
|
|
if(TSMUXER_GUI)
|
|
add_subdirectory (tsMuxerGUI)
|
|
endif()
|