1add_library(gfxstream-snapshot.headers INTERFACE)
2target_include_directories(gfxstream-snapshot.headers INTERFACE include)
3
4add_library(
5    ${SNAPSHOT_LIB_NAME}
6    TextureLoader.cpp
7    TextureSaver.cpp)
8
9if (BUILD_SHARED_LIBS)
10    set_target_properties(
11        ${SNAPSHOT_LIB_NAME}
12        PROPERTIES
13        VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}
14        SOVERSION ${VERSION_MAJOR})
15endif()
16
17target_link_libraries(
18    ${SNAPSHOT_LIB_NAME}
19    PRIVATE
20    aemu-base.headers
21    aemu-host-common.headers)
22target_include_directories(
23    ${SNAPSHOT_LIB_NAME}
24    PUBLIC
25    ${AEMU_COMMON_REPO_ROOT}/include)
26if (APPLE)
27    target_compile_definitions(
28        ${SNAPSHOT_LIB_NAME} PRIVATE -Dfseeko64=fseek -Dftello64=ftell)
29endif()
30