summaryrefslogtreecommitdiff
path: root/src/sound/CMakeLists.txt
blob: bff33deda3f4fe4840aa4b83372fa8038e49378a (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
42
43
if(NOT OPTION_DEDICATED)
    add_files(
        allegro_s.cpp
        allegro_s.h
        CONDITION Allegro_FOUND
    )

    add_files(
        sdl_s.cpp
        sdl_s.h
        CONDITION SDL_FOUND
    )

    add_files(
        sdl2_s.cpp
        sdl_s.h
        CONDITION SDL2_FOUND
    )

    add_files(
        cocoa_s.cpp
        cocoa_s.h
        CONDITION APPLE
    )

    add_files(
        win32_s.cpp
        win32_s.h
        CONDITION WIN32
    )

    add_files(
        xaudio2_s.cpp
        xaudio2_s.h
        CONDITION WIN32 AND XAUDIO2_FOUND
    )
endif()

add_files(
    sound_driver.hpp
    null_s.cpp
    null_s.h
)