osb/source/application/CMakeLists.txt
2023-06-25 20:01:32 +10:00

66 lines
1.8 KiB
CMake

INCLUDE_DIRECTORIES (
${STAR_EXTERN_INCLUDES}
${STAR_CORE_INCLUDES}
${STAR_PLATFORM_INCLUDES}
${STAR_APPLICATION_INCLUDES}
)
SET (star_application_HEADERS
StarApplication.hpp
StarApplicationController.hpp
StarMainApplication.hpp
StarInputEvent.hpp
StarRenderer.hpp
)
SET (star_application_SOURCES
StarApplication.cpp
StarInputEvent.cpp
StarRenderer.cpp
)
SET (star_application_HEADERS ${star_application_HEADERS}
StarP2PNetworkingService_pc.hpp
StarPlatformServices_pc.hpp
StarRenderer_opengl20.hpp
)
SET (star_application_SOURCES ${star_application_SOURCES}
StarMainApplication_sdl.cpp
StarP2PNetworkingService_pc.cpp
StarPlatformServices_pc.cpp
StarRenderer_opengl20.cpp
)
IF (STAR_ENABLE_STEAM_INTEGRATION)
SET (star_application_HEADERS ${star_application_HEADERS}
StarDesktopService_pc_steam.hpp
StarStatisticsService_pc_steam.hpp
StarUserGeneratedContentService_pc_steam.hpp
)
SET (star_application_SOURCES ${star_application_SOURCES}
StarDesktopService_pc_steam.cpp
StarStatisticsService_pc_steam.cpp
StarUserGeneratedContentService_pc_steam.cpp
)
ENDIF ()
IF (STAR_ENABLE_DISCORD_INTEGRATION)
SET (star_application_SOURCES ${star_application_SOURCES}
discord/activity_manager.cpp
discord/application_manager.cpp
discord/core.cpp
discord/image_manager.cpp
discord/lobby_manager.cpp
discord/network_manager.cpp
discord/overlay_manager.cpp
discord/relationship_manager.cpp
discord/storage_manager.cpp
discord/store_manager.cpp
discord/types.cpp
discord/user_manager.cpp
)
ENDIF ()
ADD_LIBRARY (star_application OBJECT ${star_application_SOURCES} ${star_application_HEADERS})
TARGET_PRECOMPILE_HEADERS (star_application REUSE_FROM star_core)