summaryrefslogtreecommitdiff
path: root/stream-servers/testlibs/CMakeLists.txt
blob: 709de32281deb7f82bfad836cec465aab53411bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
if (APPLE)
    set(oswindow-platform-sources
        osx/OSXWindow.mm)
elseif (WIN32)
    set(oswindow-platform-sources
        windows/WindowsTimer.cpp
        windows/Windows_system_utils.cpp
        windows/win32/Win32Window.cpp)
else()
    set(oswindow-platform-sources
        x11/X11Window.cpp)
endif()

add_library(
    OSWindow
    OSWindow.cpp
    ${oswindow-platform-sources})
target_link_libraries(
    OSWindow
    PRIVATE
    gfxstream-base.headers)
target_include_directories(
    OSWindow
    PUBLIC
    .
    PRIVATE
    ${GFXSTREAM_REPO_ROOT}/include
    ${GFXSTREAM_REPO_ROOT}/third-party/glm/include)

if (LINUX)
    target_link_libraries(
        OSWindow
        PRIVATE
        X11
        )
elseif (APPLE)
    target_link_libraries(
        OSWindow
        PRIVATE
        "-framework AppKit -framework QuartzCore")
endif()