Added CMake for Release version 6.1.3
This commit is contained in:
parent
4c64008fa5
commit
c53c8e821f
28 changed files with 1534 additions and 0 deletions
53
examples/itemeditor/CMakeLists.txt
Normal file
53
examples/itemeditor/CMakeLists.txt
Normal file
|
@ -0,0 +1,53 @@
|
|||
#----------------------------------------------------------------
|
||||
# Packages
|
||||
#----------------------------------------------------------------
|
||||
# Find includes in corresponding build include_directories
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
# Instruct CMake to run moc automatically when needed
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
# Create code from a list of Qt designer ui files
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Sources
|
||||
#----------------------------------------------------------------
|
||||
set(itemeditor_sources
|
||||
editor.cpp
|
||||
editor.h
|
||||
main.cpp
|
||||
plot.cpp
|
||||
plot.h
|
||||
shapefactory.cpp
|
||||
shapefactory.h
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Target
|
||||
#----------------------------------------------------------------
|
||||
add_executable(qwt_example_itemeditor ${itemeditor_sources})
|
||||
|
||||
target_link_libraries(qwt_example_itemeditor
|
||||
PRIVATE
|
||||
qwt
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Deploy
|
||||
#----------------------------------------------------------------
|
||||
add_custom_command(
|
||||
TARGET qwt_example_itemeditor POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Core> $<TARGET_FILE_DIR:qwt_example_itemeditor>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Gui> $<TARGET_FILE_DIR:qwt_example_itemeditor>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::OpenGL> $<TARGET_FILE_DIR:qwt_example_itemeditor>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::PrintSupport> $<TARGET_FILE_DIR:qwt_example_itemeditor>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Svg> $<TARGET_FILE_DIR:qwt_example_itemeditor>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Widgets> $<TARGET_FILE_DIR:qwt_example_itemeditor>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:qwt> $<TARGET_FILE_DIR:qwt_example_itemeditor>
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue