-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
get nzmqt, rbkit-lib, and rbkit-app compilation working
- Loading branch information
Showing
5 changed files
with
170 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
cmake_minimum_required(VERSION 3.2.2) | ||
|
||
set(CMAKE_INCLUDE_CURRENT_DIR ON) | ||
set(CMAKE_AUTOMOC ON) | ||
set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/local) | ||
|
||
# find packages | ||
find_package(Qt5Core) | ||
|
||
include_directories( | ||
include | ||
3rdparty/cppzmq | ||
${CMAKE_SOURCE_DIR}/zeromq-4.0.4/include) | ||
|
||
|
||
add_library(nzmqt | ||
src/nzmqt/nzmqt.cpp | ||
|
||
include/nzmqt/global.hpp | ||
include/nzmqt/nzmqt.hpp | ||
include/nzmqt/impl.hpp) | ||
|
||
|
||
target_link_libraries(nzmqt Qt5::Core) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
cmake_minimum_required(VERSION 3.2.2) | ||
|
||
set(CMAKE_INCLUDE_CURRENT_DIR ON) | ||
set(CMAKE_AUTOMOC ON) | ||
|
||
|
||
# find packages | ||
find_package(Qt5WebKitWidgets) | ||
find_package(Qt5PrintSupport) | ||
find_package(Qt5Sql) | ||
|
||
|
||
include_directories( | ||
${CMAKE_SOURCE_DIR}/msgpack-c/src/msgpack | ||
${CMAKE_SOURCE_DIR}/msgpack-c/src | ||
${CMAKE_SOURCE_DIR}/rbkit-lib) | ||
|
||
|
||
add_executable(RbkitClient | ||
main.cpp) | ||
|
||
|
||
set_property(TARGET RbkitClient PROPERTY CXX_STANDARD 11) | ||
|
||
|
||
target_link_libraries(RbkitClient Qt5::WebKitWidgets) | ||
target_link_libraries(RbkitClient Qt5::Sql) | ||
target_link_libraries(RbkitClient rbkit) | ||
target_link_libraries(RbkitClient msgpack) | ||
target_link_libraries(RbkitClient libzmq) | ||
target_link_libraries(RbkitClient nzmqt) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
cmake_minimum_required(VERSION 3.2.2) | ||
|
||
set(CMAKE_INCLUDE_CURRENT_DIR ON) | ||
set(CMAKE_AUTOMOC ON) | ||
|
||
# find packages | ||
find_package(Qt5WebKitWidgets) | ||
find_package(Qt5PrintSupport) | ||
find_package(Qt5Sql) | ||
|
||
|
||
include_directories( | ||
${CMAKE_SOURCE_DIR}/msgpack-c/src/msgpack | ||
${CMAKE_SOURCE_DIR}/msgpack-c/src | ||
${CMAKE_SOURCE_DIR}/nzmqt/include | ||
${CMAKE_SOURCE_DIR}/nzmqt/3rdparty/cppzmq | ||
${CMAKE_SOURCE_DIR}/zeromq-4.0.4/include) | ||
|
||
|
||
QT5_WRAP_UI(RBKIT_UI_HEADERS | ||
ui/rbkitmainwindow.ui | ||
ui/askhost.ui | ||
ui/heapdumpform.ui | ||
ui/memoryview.ui | ||
ui/comparesnapshotform.ui | ||
ui/aboutdialog.ui | ||
ui/parentviewform.ui) | ||
|
||
|
||
QT5_ADD_RESOURCES(RBKIT_UI_RESOURCES | ||
tool_icons.qrc) | ||
|
||
|
||
|
||
add_library(rbkit | ||
subscriber.cpp | ||
rbcommands.cpp | ||
zmqsockets.cpp | ||
mpparser.cpp | ||
rbevents.cpp | ||
rbeventparser.cpp | ||
stringutil.cpp | ||
sqlconnectionpool.cpp | ||
model/appstate.cpp | ||
model/heapdatamodel.cpp | ||
model/jsbridge.cpp | ||
model/objectaggregator.cpp | ||
model/objectdetail.cpp | ||
model/objectstore.cpp | ||
model/snapshotstate.cpp | ||
model/sortobjectproxymodel.cpp | ||
ui/askhost.cpp | ||
ui/comparesnapshotform.cpp | ||
ui/diffviewform.cpp | ||
ui/heapdumpform.cpp | ||
ui/memoryview.cpp | ||
ui/actiontoolbar.cpp | ||
ui/aboutdialog.cpp | ||
model/parentobject.cpp | ||
ui/parentviewform.cpp | ||
model/heap_item_types/baseheapitem.cpp | ||
model/heap_item_types/heapitem.cpp | ||
model/heap_item_types/leafitem.cpp | ||
ui/processdetail.cpp | ||
ui/appmainwindow.cpp | ||
ui/centralwidget.cpp | ||
ui/ribbontoolbar.cpp | ||
|
||
subscriber.h | ||
zmqsockets.h | ||
mpparser.h | ||
rbevents.h | ||
rbeventparser.h | ||
rbcommands.h | ||
stringutil.h | ||
sqlconnectionpool.h | ||
model/appstate.h | ||
model/heapdatamodel.h | ||
model/jsbridge.h | ||
model/objectaggregator.h | ||
model/objectdetail.h | ||
model/objectstore.h | ||
model/sortobjectproxymodel.h | ||
ui/askhost.h | ||
ui/comparesnapshotform.h | ||
ui/diffviewform.h | ||
ui/heapdumpform.h | ||
ui/memoryview.h | ||
ui/actiontoolbar.h | ||
ui/aboutdialog.h | ||
model/parentobject.h | ||
ui/parentviewform.h | ||
model/heap_item_types/baseheapitem.h | ||
model/heap_item_types/heapitem.h | ||
model/heap_item_types/leafitem.h | ||
model/snapshotstate.h | ||
ui/processdetail.h | ||
ui/appmainwindow.h | ||
ui/centralwidget.h | ||
ui/ribbontoolbar.h | ||
layoututil.hpp | ||
common.h | ||
|
||
${RBKIT_UI_HEADERS} | ||
${RBKIT_UI_RESOURCES}) | ||
|
||
|
||
set_property(TARGET rbkit PROPERTY CXX_STANDARD 11) | ||
|
||
|
||
target_link_libraries(rbkit Qt5::WebKitWidgets) | ||
target_link_libraries(rbkit Qt5::Sql) |