metaforce/Editor/CMakeLists.txt

62 lines
2.3 KiB
CMake
Raw Normal View History

include_directories(${CMAKE_CURRENT_SOURCE_DIR})
add_subdirectory(locale)
2016-01-17 16:40:11 -08:00
add_subdirectory(icons)
2016-01-04 16:01:02 -08:00
if("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
2016-01-04 20:20:45 -08:00
option(RUDE_BINARY_CONFIGS
"Use binary Athena formats for serializing save data structures, rather than YAML"
YES)
else()
option(RUDE_BINARY_CONFIGS
"Use binary Athena formats for serializing save data structures, rather than YAML"
NO)
endif()
if(RUDE_BINARY_CONFIGS)
2016-01-05 01:53:16 -08:00
add_definitions("-DURDE_BINARY_CONFIGS=1")
2016-01-04 16:01:02 -08:00
endif()
2016-01-06 16:40:27 -08:00
atdna(atdna_Space.cpp Space.hpp)
atdna(atdna_ResourceBrowser.cpp ResourceBrowser.hpp)
2016-01-17 16:40:11 -08:00
atdna(atdna_ModelViewer.cpp ModelViewer.hpp)
2016-02-01 12:04:55 -08:00
atdna(atdna_EffectEditor.cpp EffectEditor.hpp)
2016-01-06 16:40:27 -08:00
if(WIN32)
set(PLAT_SRCS platforms/win/urde.rc)
elseif(APPLE)
set(PLAT_SRCS platforms/mac/mainicon.icns)
set_source_files_properties(platforms/mac/mainicon.icns PROPERTIES
MACOSX_PACKAGE_LOCATION Resources)
2016-01-27 15:27:56 -08:00
elseif(UNIX)
add_subdirectory(platforms/freedesktop)
declare_wmicon_target()
set(PLAT_SRCS mainicon_netwm.c)
endif()
add_executable(urde WIN32 MACOSX_BUNDLE
main.cpp ${PLAT_SRCS}
Space.hpp Space.cpp atdna_Space.cpp
2015-12-23 19:32:21 -08:00
SplashScreen.hpp SplashScreen.cpp
2016-01-06 16:40:27 -08:00
ResourceBrowser.hpp ResourceBrowser.cpp atdna_ResourceBrowser.cpp
2016-01-17 16:40:11 -08:00
ModelViewer.hpp ModelViewer.cpp atdna_ModelViewer.cpp
2016-02-01 12:04:55 -08:00
EffectEditor.hpp EffectEditor.cpp atdna_EffectEditor.cpp
2015-12-13 13:01:32 -08:00
ProjectManager.hpp ProjectManager.cpp
2016-01-17 14:41:49 -08:00
ViewManager.hpp ViewManager.cpp
Camera.hpp Camera.cpp)
2015-11-20 17:23:55 -08:00
2016-01-05 01:53:16 -08:00
target_link_libraries(urde
UrdeLocales
2016-01-17 16:40:11 -08:00
UrdeIcons
2015-11-20 17:23:55 -08:00
RuntimeCommonCharacter
RuntimeCommonInput
RuntimeCommon
DNAMP3 DNAMP2 DNAMP1
2016-01-03 21:31:02 -08:00
DNACommon Specter SpecterFonts freetype ${DATA_SPEC_LIBS}
HECLDatabase HECLBackend HECLFrontend HECLBlender HECLRuntime HECLCommon AthenaCore NOD
2015-11-20 17:23:55 -08:00
LogVisor AthenaLibYaml Boo ${PNG_LIB} squish xxhash Math
${ZLIB_LIBRARIES} ${LZO_LIB}
${BOO_SYS_LIBS})
set_target_properties(urde PROPERTIES
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/platforms/mac/Info.plist")