mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Refactoring: move undo commands to top level
In the future we might want to use undo-commands for mobile as well (even if not implementing undo). Therefore, move the undo-command source from desktop-widgets to their own commands top-level folder. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
685b92b9c2
commit
5e29245e68
34 changed files with 45 additions and 31 deletions
26
commands/CMakeLists.txt
Normal file
26
commands/CMakeLists.txt
Normal file
|
@ -0,0 +1,26 @@
|
|||
# the undo-commands that perform undoable actions.
|
||||
|
||||
# models used both mobile and desktop builds
|
||||
set(SUBSURFACE_GENERIC_COMMANDS_SRCS
|
||||
command_base.cpp
|
||||
command_base.h
|
||||
command.cpp
|
||||
command.h
|
||||
command_divelist.cpp
|
||||
command_divelist.h
|
||||
command_divesite.cpp
|
||||
command_divesite.h
|
||||
command_edit.cpp
|
||||
command_edit.h
|
||||
command_edit_trip.cpp
|
||||
command_edit_trip.h
|
||||
command_private.cpp
|
||||
command_private.h
|
||||
)
|
||||
if (SUBSURFACE_TARGET_EXECUTABLE MATCHES "DesktopExecutable")
|
||||
add_library(subsurface_commands_desktop STATIC ${SUBSURFACE_GENERIC_COMMANDS_SRCS})
|
||||
target_link_libraries(subsurface_commands_desktop ${QT_LIBRARIES})
|
||||
#elseif (SUBSURFACE_TARGET_EXECUTABLE MATCHES "MobileExecutable")
|
||||
# add_library(subsurface_commands_mobile STATIC ${SUBSURFACE_GENERIC_COMMANDS_SRCS})
|
||||
# target_link_libraries(subsurface_commands_mobile ${QT_LIBRARIES})
|
||||
endif()
|
Loading…
Add table
Add a link
Reference in a new issue