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)
|
|
|
|
|
2016-12-02 00:08:25 +03:00
|
|
|
find_package(Qt5Widgets)
|
|
|
|
|
2017-06-08 17:13:32 +03:00
|
|
|
if (Qt5Widgets_FOUND)
|
2019-10-06 17:34:42 +03:00
|
|
|
message(STATUS "Using Qt v${Qt5Widgets_VERSION}")
|
2017-06-08 17:13:32 +03:00
|
|
|
if (NOT("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") AND WIN32)
|
|
|
|
set(APPLICATION_PLATFORM WIN32)
|
|
|
|
endif ()
|
|
|
|
add_executable(profiler_gui ${APPLICATION_PLATFORM}
|
|
|
|
main.cpp
|
2017-11-30 22:21:08 +03:00
|
|
|
arbitrary_value_inspector.h
|
|
|
|
arbitrary_value_inspector.cpp
|
2018-03-29 01:56:21 +03:00
|
|
|
arbitrary_value_tooltip.h
|
|
|
|
arbitrary_value_tooltip.cpp
|
2017-06-08 17:13:32 +03:00
|
|
|
blocks_graphics_view.h
|
|
|
|
blocks_graphics_view.cpp
|
|
|
|
blocks_tree_widget.h
|
|
|
|
blocks_tree_widget.cpp
|
2018-06-09 02:18:39 +03:00
|
|
|
bookmarks_editor.h
|
|
|
|
bookmarks_editor.cpp
|
2017-12-07 22:36:53 +03:00
|
|
|
common_functions.h
|
|
|
|
common_functions.cpp
|
2017-11-23 22:01:44 +03:00
|
|
|
common_types.h
|
2017-06-08 17:13:32 +03:00
|
|
|
descriptors_tree_widget.h
|
|
|
|
descriptors_tree_widget.cpp
|
2018-06-09 02:18:39 +03:00
|
|
|
dialog.h
|
|
|
|
dialog.cpp
|
2019-10-29 23:52:53 +03:00
|
|
|
file_reader.h
|
|
|
|
file_reader.cpp
|
2018-05-07 21:58:37 +03:00
|
|
|
fps_widget.h
|
|
|
|
fps_widget.cpp
|
2017-06-08 17:13:32 +03:00
|
|
|
globals.h
|
|
|
|
globals.cpp
|
|
|
|
globals_qobjects.cpp
|
2018-05-07 21:58:37 +03:00
|
|
|
graphics_block_item.h
|
|
|
|
graphics_block_item.cpp
|
2018-01-20 15:23:28 +03:00
|
|
|
graphics_image_item.h
|
|
|
|
graphics_image_item.cpp
|
2018-05-07 21:58:37 +03:00
|
|
|
graphics_ruler_item.h
|
|
|
|
graphics_ruler_item.cpp
|
|
|
|
graphics_scrollbar.h
|
|
|
|
graphics_scrollbar.cpp
|
2018-01-20 15:23:28 +03:00
|
|
|
graphics_slider_area.h
|
|
|
|
graphics_slider_area.cpp
|
2017-06-08 17:13:32 +03:00
|
|
|
main_window.h
|
|
|
|
main_window.cpp
|
2018-05-19 23:41:01 +03:00
|
|
|
round_progress_widget.h
|
|
|
|
round_progress_widget.cpp
|
2019-10-29 23:52:53 +03:00
|
|
|
socket_listener.h
|
|
|
|
socket_listener.cpp
|
2019-10-20 16:12:37 +03:00
|
|
|
text_highlighter.h
|
|
|
|
text_highlighter.cpp
|
2018-05-07 21:58:37 +03:00
|
|
|
timer.h
|
|
|
|
timer.cpp
|
2018-01-28 20:52:17 +03:00
|
|
|
thread_pool.h
|
|
|
|
thread_pool.cpp
|
|
|
|
thread_pool_task.h
|
|
|
|
thread_pool_task.cpp
|
2017-06-08 17:13:32 +03:00
|
|
|
tree_widget_item.h
|
|
|
|
tree_widget_item.cpp
|
|
|
|
tree_widget_loader.h
|
|
|
|
tree_widget_loader.cpp
|
2018-06-09 02:18:39 +03:00
|
|
|
window_header.h
|
|
|
|
window_header.cpp
|
2017-06-08 17:13:32 +03:00
|
|
|
resources.qrc
|
|
|
|
resources.rc
|
2017-02-14 21:22:26 +03:00
|
|
|
)
|
2017-06-08 17:13:32 +03:00
|
|
|
target_link_libraries(profiler_gui Qt5::Widgets easy_profiler)
|
|
|
|
if (WIN32)
|
|
|
|
target_compile_definitions(profiler_gui PRIVATE -D_WIN32_WINNT=0x0600)
|
|
|
|
endif ()
|
|
|
|
if (MINGW)
|
|
|
|
target_compile_definitions(profiler_gui PRIVATE -DSTRSAFE_NO_DEPRECATE)
|
|
|
|
endif ()
|
2017-09-01 00:01:38 +03:00
|
|
|
|
|
|
|
install(
|
|
|
|
TARGETS
|
|
|
|
profiler_gui
|
|
|
|
RUNTIME
|
|
|
|
DESTINATION
|
|
|
|
bin
|
|
|
|
)
|
|
|
|
|
|
|
|
set_property(TARGET profiler_gui PROPERTY INSTALL_RPATH_USE_LINK_PATH TRUE)
|
2017-02-08 21:47:20 +03:00
|
|
|
else ()
|
2017-06-08 17:13:32 +03:00
|
|
|
message(STATUS "INFO\n\n\tQt5 not found! Generating EasyProfiler projects without GUI.\n")
|
|
|
|
endif ()
|
2016-12-02 00:08:25 +03:00
|
|
|
|