osb/source/application/CMakeLists.txt

64 lines
1.8 KiB
CMake
Raw Normal View History

2023-06-20 04:33:09 +00:00
INCLUDE_DIRECTORIES (
${STAR_EXTERN_INCLUDES}
${STAR_CORE_INCLUDES}
${STAR_PLATFORM_INCLUDES}
${STAR_APPLICATION_INCLUDES}
)
SET (star_application_HEADERS
StarApplication.hpp
StarApplicationController.hpp
StarMainApplication.hpp
StarRenderer.hpp
)
SET (star_application_SOURCES
StarApplication.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})
2023-06-25 10:01:32 +00:00
TARGET_PRECOMPILE_HEADERS (star_application REUSE_FROM star_core)