2018-03-15 00:25:29 +00:00
|
|
|
cmake_minimum_required(VERSION 3.10)
|
|
|
|
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
set(CMAKE_AUTOUIC ON)
|
2018-07-09 18:05:31 +00:00
|
|
|
set(AUTORCC ON)
|
2018-03-15 00:25:29 +00:00
|
|
|
|
|
|
|
find_package(Qt5Widgets)
|
|
|
|
find_package(Qt5Network)
|
|
|
|
find_package(Qt5Xml)
|
2018-07-14 06:06:33 +00:00
|
|
|
find_package(Qt5Svg)
|
2018-03-15 00:25:29 +00:00
|
|
|
|
2018-03-23 21:54:52 +00:00
|
|
|
if(WIN32)
|
|
|
|
list(APPEND PLAT_SRCS platforms/win/amuse-gui.rc platforms/win/amuse-gui.manifest)
|
|
|
|
elseif(APPLE)
|
2018-07-09 18:05:31 +00:00
|
|
|
list(APPEND PLAT_SRCS platforms/mac/mainicon.icns MacOSExtras.mm)
|
2018-03-23 21:54:52 +00:00
|
|
|
set_source_files_properties(platforms/mac/mainicon.icns PROPERTIES
|
|
|
|
MACOSX_PACKAGE_LOCATION Resources)
|
|
|
|
endif()
|
|
|
|
|
2018-03-15 00:25:29 +00:00
|
|
|
add_subdirectory(platforms/freedesktop)
|
|
|
|
declare_qticon_target()
|
|
|
|
list(APPEND PLAT_SRCS mainicon_qt.cpp)
|
|
|
|
|
2018-07-09 18:05:31 +00:00
|
|
|
QT5_ADD_RESOURCES(qrc_resources.cpp resources/resources.qrc)
|
|
|
|
|
2018-03-15 00:25:29 +00:00
|
|
|
add_executable(amuse-gui WIN32 MACOSX_BUNDLE
|
2018-07-14 06:06:33 +00:00
|
|
|
Common.hpp Common.cpp
|
2018-03-15 00:25:29 +00:00
|
|
|
MainWindow.ui MainWindow.hpp MainWindow.cpp
|
2018-07-09 18:05:31 +00:00
|
|
|
KeyboardWidget.hpp KeyboardWidget.cpp
|
|
|
|
StatusBarWidget.hpp StatusBarWidget.cpp
|
|
|
|
ProjectModel.hpp ProjectModel.cpp
|
|
|
|
ProjectStatistics.hpp ProjectStatistics.cpp
|
2018-07-14 06:06:33 +00:00
|
|
|
EditorWidget.hpp EditorWidget.cpp
|
2018-07-09 18:05:31 +00:00
|
|
|
SoundMacroEditor.hpp SoundMacroEditor.cpp
|
|
|
|
KeymapEditor.hpp KeymapEditor.cpp
|
|
|
|
LayersEditor.hpp LayersEditor.cpp
|
|
|
|
SampleEditor.hpp SampleEditor.cpp
|
2018-07-14 06:06:33 +00:00
|
|
|
SFXGroupEditor.hpp SFXGroupEditor.cpp
|
2018-07-09 18:05:31 +00:00
|
|
|
SongGroupEditor.hpp SongGroupEditor.cpp
|
2018-07-14 06:06:33 +00:00
|
|
|
AudioGroupModel.hpp AudioGroupModel.cpp
|
2018-07-09 18:05:31 +00:00
|
|
|
resources/resources.qrc qrc_resources.cpp
|
2018-03-15 00:25:29 +00:00
|
|
|
${PLAT_SRCS}
|
|
|
|
main.cpp)
|
2018-07-14 06:06:33 +00:00
|
|
|
if(COMMAND add_sanitizers)
|
|
|
|
add_sanitizers(amuse-gui)
|
|
|
|
endif()
|
2018-03-15 00:25:29 +00:00
|
|
|
|
|
|
|
set_target_properties(amuse-gui PROPERTIES
|
|
|
|
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/platforms/mac/Info.plist")
|
|
|
|
|
|
|
|
target_link_libraries(amuse-gui ${PLAT_LIBS}
|
|
|
|
${Qt5Widgets_LIBRARIES}
|
|
|
|
${Qt5Network_LIBRARIES}
|
|
|
|
${Qt5Xml_LIBRARIES}
|
2018-07-14 06:06:33 +00:00
|
|
|
${Qt5Svg_LIBRARIES}
|
2018-07-17 04:48:38 +00:00
|
|
|
amuse boo ${BOO_SYS_LIBS} logvisor athena-core athena-libyaml xxhash ${ZLIB_LIBRARIES} ${LZO_LIB})
|