88316ec3e9
Add TSMUXER_COVERAGE which will result in building binaries with coverage information when set to true. Move MSVC flag utf-8 from tsMuxerGUI to the general CMakeLists.txt as there is no reason not to enable it globally. Replace NOT MSVC with checking if the build is for Linux : the effect is the same, but the intent is clearer. Restructure the platform-specific conditions for building tsMuxerGUI. Bind the XP build to windows-2019 hosts as windows-2022 includes Visual Studio 2022 which dropped XP support. Don't install zlib via homebrew in macos in order to avoid conflicts with the system-provided one.
17 lines
454 B
CMake
17 lines
454 B
CMake
cmake_minimum_required (VERSION 3.1)
|
|
project(mediation)
|
|
|
|
add_library(mediation STATIC
|
|
types/types.cpp
|
|
system/terminatablethread.cpp
|
|
)
|
|
|
|
IF(WIN32)
|
|
target_sources(mediation PRIVATE fs/osdep/file_win32.cpp fs/osdep/directory_win32.cpp)
|
|
ELSE()
|
|
target_compile_definitions(mediation PRIVATE "-D_FILE_OFFSET_BITS=64")
|
|
target_sources(mediation PRIVATE fs/osdep/file_unix.cpp fs/osdep/directory_unix.cpp)
|
|
ENDIF()
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|