amuse/Editor/CMakeLists.txt

121 lines
2.6 KiB
CMake
Raw Normal View History

2018-03-15 00:25:29 +00:00
cmake_minimum_required(VERSION 3.10)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
find_package(Qt5 COMPONENTS LinguistTools Network Qml Svg Widgets Xml REQUIRED)
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)
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-25 06:01:01 +00:00
configure_file(resources/translation_res.qrc translation_res.qrc @ONLY)
set(TRANSLATIONS
resources/lang_de.ts)
QT5_CREATE_TRANSLATION(QM_FILES ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../lib ${TRANSLATIONS})
QT5_ADD_RESOURCES(qrc_resources.cpp resources/resources.qrc)
2018-07-25 06:01:01 +00:00
QT5_ADD_RESOURCES(qrc_translation_res.cpp ${CMAKE_CURRENT_BINARY_DIR}/translation_res.qrc OPTIONS -no-compress)
2018-08-04 02:31:47 +00:00
QT5_WRAP_UI(MAIN_WINDOW_UI MainWindow.ui)
QT5_WRAP_CPP(AMUSE_MOC
ADSREditor.hpp
Common.hpp
CurveEditor.hpp
EditorWidget.hpp
LayersEditor.hpp
MainWindow.hpp
NewSoundMacroDialog.hpp
KeyboardWidget.hpp
KeymapEditor.hpp
ProjectModel.hpp
SampleEditor.hpp
SongGroupEditor.hpp
SoundGroupEditor.hpp
SoundMacroEditor.hpp
StatusBarWidget.hpp
StudioSetupWidget.hpp
)
2018-08-04 02:31:47 +00:00
2018-03-15 00:25:29 +00:00
add_executable(amuse-gui WIN32 MACOSX_BUNDLE
ADSREditor.cpp
ADSREditor.hpp
Common.cpp
Common.hpp
CurveEditor.cpp
CurveEditor.hpp
EditorWidget.cpp
EditorWidget.hpp
KeyboardWidget.cpp
KeyboardWidget.hpp
KeymapEditor.cpp
KeymapEditor.hpp
LayersEditor.cpp
LayersEditor.hpp
MainWindow.cpp
MainWindow.hpp
MainWindow.ui
MIDIReader.cpp
MIDIReader.hpp
NewSoundMacroDialog.cpp
NewSoundMacroDialog.hpp
ProjectModel.cpp
ProjectModel.hpp
SampleEditor.cpp
SampleEditor.hpp
SongGroupEditor.cpp
SongGroupEditor.hpp
SoundGroupEditor.cpp
SoundGroupEditor.hpp
SoundMacroEditor.cpp
SoundMacroEditor.hpp
StatusBarWidget.cpp
StatusBarWidget.hpp
StudioSetupWidget.cpp
StudioSetupWidget.hpp
main.cpp
qrc_resources.cpp
qrc_translation_res.cpp
resources/resources.qrc
${AMUSE_MOC}
${MAIN_WINDOW_UI}
${PLAT_SRCS}
${QM_FILES}
)
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"
)
2018-03-15 00:25:29 +00:00
target_link_libraries(amuse-gui
${PLAT_LIBS}
Qt5::Network
Qt5::Qml
Qt5::Svg
Qt5::Widgets
Qt5::Xml
amuse
athena-core
boo
${BOO_SYS_LIBS}
logvisor
lzokay
xxhash
${ZLIB_LIBRARIES}
)