CMakeLists.txt

 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
find_package(Threads REQUIRED)

add_library(planet
        audio.cpp
        affine.cpp
        asset_manager.cpp
        baseplate.ui.cpp
        cameras.cpp
        comms.cpp
        ecs.cpp
        files.audio.cpp
        files.drawing.cpp
        folders.cpp
        gravity.ui.cpp
        image.drawing.cpp
        log.cpp
        map.cpp
        mouse.events.cpp
        panel.ui.cpp
        serialise.cpp
        scale.ui.cpp
        stdin.cpp
        telemetry.cpp
        time.cpp
        ui.cpp
    )
target_include_directories(planet PUBLIC ../include/)
target_compile_definitions(planet PRIVATE
    LOG_ROOT_DIRECTORY="${PLANET_LOG_ROOT_DIRECTORY}")
target_link_libraries(planet
        felspar-io
        felspar-parse
        ogg
        Threads::Threads
        vorbis
    )
install(TARGETS planet LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)