mirror of https://github.com/AxioDL/metaforce.git
113 lines
4.9 KiB
CMake
113 lines
4.9 KiB
CMake
add_subdirectory(locale)
|
|
add_subdirectory(icons)
|
|
add_subdirectory(badging)
|
|
|
|
unset(URDE_PLAT_LIBS)
|
|
|
|
if(WIN32)
|
|
configure_file(platforms/win/metaforce.rc.in "${CMAKE_CURRENT_SOURCE_DIR}/platforms/win/metaforce.rc" @ONLY)
|
|
set(PLAT_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/platforms/win/metaforce.rc" platforms/win/metaforce.manifest)
|
|
if(WINDOWS_STORE)
|
|
set(UWP_ASSETS
|
|
platforms/win/Assets/LargeTile.scale-100.png
|
|
platforms/win/Assets/LargeTile.scale-125.png
|
|
platforms/win/Assets/LargeTile.scale-150.png
|
|
platforms/win/Assets/LargeTile.scale-200.png
|
|
platforms/win/Assets/LargeTile.scale-400.png
|
|
platforms/win/Assets/SmallTile.scale-100.png
|
|
platforms/win/Assets/SmallTile.scale-125.png
|
|
platforms/win/Assets/SmallTile.scale-150.png
|
|
platforms/win/Assets/SmallTile.scale-200.png
|
|
platforms/win/Assets/SmallTile.scale-400.png
|
|
platforms/win/Assets/SplashScreen.scale-100.png
|
|
platforms/win/Assets/SplashScreen.scale-125.png
|
|
platforms/win/Assets/SplashScreen.scale-150.png
|
|
platforms/win/Assets/SplashScreen.scale-200.png
|
|
platforms/win/Assets/SplashScreen.scale-400.png
|
|
platforms/win/Assets/Square44x44Logo.scale-100.png
|
|
platforms/win/Assets/Square44x44Logo.scale-125.png
|
|
platforms/win/Assets/Square44x44Logo.scale-150.png
|
|
platforms/win/Assets/Square44x44Logo.scale-200.png
|
|
platforms/win/Assets/Square44x44Logo.scale-400.png
|
|
platforms/win/Assets/Square44x44Logo.altform-unplated_targetsize-16.png
|
|
platforms/win/Assets/Square44x44Logo.altform-unplated_targetsize-24.png
|
|
platforms/win/Assets/Square44x44Logo.altform-unplated_targetsize-32.png
|
|
platforms/win/Assets/Square44x44Logo.altform-unplated_targetsize-48.png
|
|
platforms/win/Assets/Square44x44Logo.altform-unplated_targetsize-256.png
|
|
platforms/win/Assets/Square150x150Logo.scale-100.png
|
|
platforms/win/Assets/Square150x150Logo.scale-125.png
|
|
platforms/win/Assets/Square150x150Logo.scale-150.png
|
|
platforms/win/Assets/Square150x150Logo.scale-200.png
|
|
platforms/win/Assets/Square150x150Logo.scale-400.png
|
|
platforms/win/Assets/metaforce.scale-100.png
|
|
platforms/win/Assets/metaforce.scale-125.png
|
|
platforms/win/Assets/metaforce.scale-150.png
|
|
platforms/win/Assets/metaforce.scale-200.png
|
|
platforms/win/Assets/metaforce.scale-400.png
|
|
platforms/win/Assets/WideTile.scale-100.png
|
|
platforms/win/Assets/WideTile.scale-125.png
|
|
platforms/win/Assets/WideTile.scale-150.png
|
|
platforms/win/Assets/WideTile.scale-200.png
|
|
platforms/win/Assets/WideTile.scale-400.png)
|
|
set_property(SOURCE platforms/win/Package.appxmanifest PROPERTY VS_DEPLOYMENT_CONTENT 1)
|
|
set_property(SOURCE ${UWP_ASSETS} PROPERTY VS_DEPLOYMENT_CONTENT 1)
|
|
set_property(SOURCE ${UWP_ASSETS} PROPERTY VS_DEPLOYMENT_LOCATION "Assets")
|
|
list(APPEND PLAT_SRCS ${UWP_ASSETS} platforms/win/Package.appxmanifest)
|
|
endif()
|
|
elseif(APPLE)
|
|
# nothing
|
|
elseif(UNIX)
|
|
add_subdirectory(platforms/freedesktop)
|
|
declare_wmicon_target()
|
|
set(PLAT_SRCS mainicon_netwm.cpp)
|
|
set(URDE_PLAT_LIBS rt)
|
|
endif()
|
|
|
|
add_executable(metaforce WIN32
|
|
main.cpp ${PLAT_SRCS}
|
|
Space.hpp Space.cpp
|
|
SplashScreen.hpp SplashScreen.cpp
|
|
ResourceBrowser.hpp ResourceBrowser.cpp
|
|
ModelViewer.hpp ModelViewer.cpp
|
|
ParticleEditor.hpp ParticleEditor.cpp
|
|
InformationCenter.hpp InformationCenter.hpp
|
|
ProjectManager.hpp ProjectManager.cpp
|
|
ViewManager.hpp ViewManager.cpp
|
|
Resource.hpp Resource.cpp
|
|
Camera.hpp Camera.cpp
|
|
GameMode.hpp GameMode.cpp)
|
|
|
|
target_include_directories(metaforce PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
${CMAKE_SOURCE_DIR}
|
|
${CMAKE_SOURCE_DIR}/Runtime # FIXME atdna cmake issue
|
|
${CMAKE_BINARY_DIR})
|
|
|
|
target_link_libraries(metaforce
|
|
MetaforceIcons
|
|
MetaforceBadging
|
|
RuntimeCommon
|
|
amuse
|
|
RetroDataSpec
|
|
kabufuda
|
|
${URDE_PLAT_LIBS})
|
|
|
|
target_atdna(metaforce atdna_Space.cpp Space.hpp)
|
|
target_atdna(metaforce atdna_ResourceBrowser.cpp ResourceBrowser.hpp)
|
|
target_atdna(metaforce atdna_ModelViewer.cpp ModelViewer.hpp)
|
|
target_atdna(metaforce atdna_ParticleEditor.cpp ParticleEditor.hpp)
|
|
target_atdna(metaforce atdna_InformationCenter.cpp InformationCenter.hpp)
|
|
target_atdna(metaforce atdna_GameMode.cpp GameMode.hpp)
|
|
|
|
if(COMMAND add_sanitizers)
|
|
add_sanitizers(metaforce)
|
|
endif()
|
|
|
|
if (NOT WINDOWS_STORE)
|
|
add_dependencies(metaforce visigen hecl)
|
|
else()
|
|
set_property(TARGET metaforce PROPERTY VS_WINRT_COMPONENT TRUE)
|
|
# This should match the Package.appxmanifest
|
|
set_property(TARGET metaforce PROPERTY VS_WINDOWS_TARGET_PLATFORM_MIN_VERSION "10.0.14393.0")
|
|
endif()
|