2016-03-31 02:44:43 +00:00
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/DataSpec ${CMAKE_SOURCE_DIR}/Runtime)
|
2015-12-06 01:27:02 +00:00
|
|
|
add_subdirectory(locale)
|
2016-01-18 00:40:11 +00:00
|
|
|
add_subdirectory(icons)
|
2016-07-16 19:21:12 +00:00
|
|
|
add_subdirectory(badging)
|
2015-12-06 01:27:02 +00:00
|
|
|
|
2016-01-07 00:40:27 +00:00
|
|
|
atdna(atdna_Space.cpp Space.hpp)
|
|
|
|
atdna(atdna_ResourceBrowser.cpp ResourceBrowser.hpp)
|
2016-01-18 00:40:11 +00:00
|
|
|
atdna(atdna_ModelViewer.cpp ModelViewer.hpp)
|
2016-02-02 04:29:58 +00:00
|
|
|
atdna(atdna_ParticleEditor.cpp ParticleEditor.hpp)
|
2016-02-02 08:31:05 +00:00
|
|
|
atdna(atdna_InformationCenter.cpp InformationCenter.hpp)
|
2016-12-13 02:56:43 +00:00
|
|
|
atdna(atdna_GameMode.cpp GameMode.hpp)
|
2016-01-07 00:40:27 +00:00
|
|
|
|
2018-01-03 00:25:48 +00:00
|
|
|
if(URDE_DLPACKAGE)
|
|
|
|
set(METADATA_VERSION_STRING ${URDE_DLPACKAGE})
|
|
|
|
else()
|
|
|
|
set(METADATA_VERSION_STRING "BETA")
|
|
|
|
endif()
|
|
|
|
|
2018-02-28 01:46:14 +00:00
|
|
|
unset(URDE_PLAT_LIBS)
|
|
|
|
|
2016-01-27 00:44:22 +00:00
|
|
|
if(WIN32)
|
2018-01-03 00:43:07 +00:00
|
|
|
configure_file(platforms/win/urde.rc.in "${CMAKE_CURRENT_SOURCE_DIR}/platforms/win/urde.rc" @ONLY)
|
2018-01-10 06:20:34 +00:00
|
|
|
set(PLAT_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/platforms/win/urde.rc" platforms/win/urde.manifest)
|
2017-12-06 03:26:15 +00:00
|
|
|
if(WINDOWS_STORE)
|
2018-01-10 06:20:34 +00:00
|
|
|
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/urde.scale-100.png
|
|
|
|
platforms/win/Assets/urde.scale-125.png
|
|
|
|
platforms/win/Assets/urde.scale-150.png
|
|
|
|
platforms/win/Assets/urde.scale-200.png
|
|
|
|
platforms/win/Assets/urde.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)
|
2017-12-06 03:26:15 +00:00
|
|
|
endif()
|
2016-01-27 00:44:22 +00:00
|
|
|
elseif(APPLE)
|
|
|
|
set(PLAT_SRCS platforms/mac/mainicon.icns)
|
|
|
|
set_source_files_properties(platforms/mac/mainicon.icns PROPERTIES
|
|
|
|
MACOSX_PACKAGE_LOCATION Resources)
|
2018-01-03 00:25:48 +00:00
|
|
|
configure_file(platforms/mac/Info.plist.in "${CMAKE_CURRENT_BINARY_DIR}/Info.plist" @ONLY)
|
2016-01-27 23:27:56 +00:00
|
|
|
elseif(UNIX)
|
|
|
|
add_subdirectory(platforms/freedesktop)
|
|
|
|
declare_wmicon_target()
|
2017-12-31 00:08:45 +00:00
|
|
|
set(PLAT_SRCS mainicon_netwm.cpp)
|
2018-02-28 01:46:14 +00:00
|
|
|
set(URDE_PLAT_LIBS rt)
|
2016-01-27 00:44:22 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
add_executable(urde WIN32 MACOSX_BUNDLE
|
|
|
|
main.cpp ${PLAT_SRCS}
|
2015-12-12 00:37:32 +00:00
|
|
|
Space.hpp Space.cpp atdna_Space.cpp
|
2015-12-24 03:32:21 +00:00
|
|
|
SplashScreen.hpp SplashScreen.cpp
|
2016-01-07 00:40:27 +00:00
|
|
|
ResourceBrowser.hpp ResourceBrowser.cpp atdna_ResourceBrowser.cpp
|
2016-01-18 00:40:11 +00:00
|
|
|
ModelViewer.hpp ModelViewer.cpp atdna_ModelViewer.cpp
|
2016-02-02 04:29:58 +00:00
|
|
|
ParticleEditor.hpp ParticleEditor.cpp atdna_ParticleEditor.cpp
|
2016-02-02 08:31:05 +00:00
|
|
|
InformationCenter.hpp InformationCenter.hpp atdna_InformationCenter.cpp
|
2015-12-13 21:01:32 +00:00
|
|
|
ProjectManager.hpp ProjectManager.cpp
|
2016-01-17 22:41:49 +00:00
|
|
|
ViewManager.hpp ViewManager.cpp
|
2016-02-02 04:29:58 +00:00
|
|
|
Resource.hpp Resource.cpp
|
2016-12-13 02:56:43 +00:00
|
|
|
Camera.hpp Camera.cpp
|
|
|
|
GameMode.hpp GameMode.cpp atdna_GameMode.cpp)
|
2015-11-21 01:23:55 +00:00
|
|
|
|
2017-12-30 01:09:45 +00:00
|
|
|
set_target_properties(urde PROPERTIES COMPILE_DEFINITIONS URDE_DLPACKAGE="${URDE_DLPACKAGE}")
|
|
|
|
|
2016-01-05 09:53:16 +00:00
|
|
|
target_link_libraries(urde
|
|
|
|
UrdeLocales
|
2016-01-18 00:40:11 +00:00
|
|
|
UrdeIcons
|
2016-07-16 19:21:12 +00:00
|
|
|
UrdeBadging
|
2018-02-01 23:19:34 +00:00
|
|
|
RuntimeCommon NESEmulator
|
2016-10-07 18:44:45 +00:00
|
|
|
specter specter-fonts freetype ${DATA_SPEC_LIBS}
|
2018-01-10 06:20:34 +00:00
|
|
|
hecl-full hecl-blender-addon
|
2017-01-08 02:52:49 +00:00
|
|
|
athena-core nod logvisor athena-libyaml amuse boo
|
|
|
|
${PNG_LIB} libjpeg-turbo squish xxhash zeus
|
2018-01-16 06:42:28 +00:00
|
|
|
kabufuda jbus discord-rpc ${ZLIB_LIBRARIES} ${LZO_LIB}
|
2018-02-28 01:46:14 +00:00
|
|
|
${BOO_SYS_LIBS} ${URDE_PLAT_LIBS})
|
2017-12-12 02:06:19 +00:00
|
|
|
if(COMMAND add_sanitizers)
|
|
|
|
add_sanitizers(urde)
|
|
|
|
endif()
|
2017-12-29 08:08:12 +00:00
|
|
|
if(COMMAND cotire)
|
2018-01-10 06:20:34 +00:00
|
|
|
set_target_properties(urde PROPERTIES COTIRE_ADD_UNITY_BUILD FALSE)
|
|
|
|
cotire(urde)
|
2017-12-29 08:08:12 +00:00
|
|
|
endif()
|
2016-01-27 00:44:22 +00:00
|
|
|
|
|
|
|
set_target_properties(urde PROPERTIES
|
2018-01-03 00:25:48 +00:00
|
|
|
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_BINARY_DIR}/Info.plist"
|
2017-12-28 03:49:27 +00:00
|
|
|
MACOSX_BUNDLE_BUNDLE_NAME "urde")
|
2017-08-29 13:17:52 +00:00
|
|
|
|
2017-12-06 03:26:15 +00:00
|
|
|
if (NOT WINDOWS_STORE)
|
|
|
|
add_dependencies(urde visigen hecl)
|
|
|
|
add_custom_command(TARGET urde POST_BUILD
|
2017-08-29 13:17:52 +00:00
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:visigen> $<TARGET_FILE_DIR:urde>)
|
2017-12-06 03:26:15 +00:00
|
|
|
add_custom_command(TARGET urde POST_BUILD
|
2017-10-27 10:10:32 +00:00
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:visigen> $<TARGET_FILE_DIR:hecl>)
|
2017-12-06 03:26:15 +00:00
|
|
|
add_custom_command(TARGET urde POST_BUILD
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:hecl> $<TARGET_FILE_DIR:urde>)
|
|
|
|
else()
|
|
|
|
set_property(TARGET urde PROPERTY VS_WINRT_COMPONENT TRUE)
|
2017-12-08 02:55:12 +00:00
|
|
|
# This should match the Package.appxmanifest
|
|
|
|
set_property(TARGET urde PROPERTY VS_WINDOWS_TARGET_PLATFORM_MIN_VERSION "10.0.14393.0")
|
2017-12-06 03:26:15 +00:00
|
|
|
endif()
|