2016-04-29 16:13:32 +03:00
|
|
|
cmake_minimum_required(VERSION 3.0.0 FATAL_ERROR)
|
|
|
|
|
|
|
|
project(profiler_gui)
|
|
|
|
|
2016-06-26 12:48:59 +03:00
|
|
|
#set(CMAKE_PREFIX_PATH f:/qt/5.5/5.6/msvc2013_64/lib/cmake)
|
|
|
|
|
2016-04-29 16:13:32 +03:00
|
|
|
set(CMAKE_AUTOMOC ON)
|
2016-09-14 21:52:11 +03:00
|
|
|
set(CMAKE_AUTORCC ON)
|
2016-04-29 16:13:32 +03:00
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
|
|
|
|
find_package(Qt5Widgets REQUIRED)
|
2016-09-11 18:23:47 +03:00
|
|
|
find_package(Qt5Network REQUIRED)
|
2016-11-02 22:37:51 +03:00
|
|
|
find_package(Qt5Svg REQUIRED)
|
2016-09-08 21:03:05 +03:00
|
|
|
|
2016-06-26 18:46:51 +03:00
|
|
|
add_executable(${PROJECT_NAME}
|
|
|
|
main.cpp
|
|
|
|
blocks_graphics_view.h
|
|
|
|
blocks_graphics_view.cpp
|
|
|
|
blocks_tree_widget.h
|
|
|
|
blocks_tree_widget.cpp
|
2016-09-17 15:39:31 +03:00
|
|
|
descriptors_tree_widget.h
|
|
|
|
descriptors_tree_widget.cpp
|
2016-09-15 22:30:32 +03:00
|
|
|
easy_chronometer_item.h
|
|
|
|
easy_chronometer_item.cpp
|
|
|
|
easy_graphics_item.h
|
|
|
|
easy_graphics_item.cpp
|
|
|
|
easy_graphics_scrollbar.h
|
|
|
|
easy_graphics_scrollbar.cpp
|
2016-08-03 23:00:04 +03:00
|
|
|
globals.h
|
|
|
|
globals.cpp
|
2016-08-08 22:45:57 +03:00
|
|
|
globals_qobjects.cpp
|
2016-06-26 20:54:16 +03:00
|
|
|
main_window.h
|
|
|
|
main_window.cpp
|
2016-08-18 23:26:41 +03:00
|
|
|
tree_widget_item.h
|
|
|
|
tree_widget_item.cpp
|
|
|
|
tree_widget_loader.h
|
|
|
|
tree_widget_loader.cpp
|
2016-08-14 22:22:44 +03:00
|
|
|
#treemodel.h
|
|
|
|
#treemodel.cpp
|
|
|
|
#treeitem.h
|
|
|
|
#treeitem.cpp
|
2016-09-14 21:52:11 +03:00
|
|
|
resources.qrc
|
2016-09-16 00:54:44 +03:00
|
|
|
resources.rc
|
2016-06-26 18:46:51 +03:00
|
|
|
)
|
|
|
|
|
2016-08-18 23:50:53 +03:00
|
|
|
if(UNIX)
|
|
|
|
set(SPECIAL_LIB pthread)
|
|
|
|
endif(UNIX)
|
|
|
|
|
2016-09-08 21:03:05 +03:00
|
|
|
target_link_libraries(${PROJECT_NAME} Qt5::Widgets Qt5::Network easy_profiler ${SPECIAL_LIB})
|
2016-11-02 22:37:51 +03:00
|
|
|
|
|
|
|
install(TARGETS ${PROJECT_NAME}
|
|
|
|
DESTINATION bin
|
|
|
|
COMPONENT binaries
|
|
|
|
)
|
|
|
|
|
|
|
|
get_target_property(QtCore_location Qt5::Core LOCATION)
|
|
|
|
get_target_property(QtWidgets_location Qt5::Widgets LOCATION)
|
|
|
|
get_target_property(QtNetwork_location Qt5::Network LOCATION)
|
|
|
|
get_target_property(QtGui_location Qt5::Gui LOCATION)
|
|
|
|
get_target_property(QtSvg_location Qt5::Svg LOCATION)
|
|
|
|
|
|
|
|
install(FILES
|
|
|
|
${QtCore_location}
|
|
|
|
${QtWidgets_location}
|
|
|
|
${QtNetwork_location}
|
|
|
|
${QtGui_location}
|
|
|
|
${QtSvg_location}
|
|
|
|
DESTINATION bin
|
|
|
|
COMPONENT binaries
|
|
|
|
)
|