| | |
| | | set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/build) |
| | | set(CMAKE_CXX_STANDARD 11) |
| | | set(CMAKE_BUILD_TYPE debug) |
| | | #add_compile_options(-fPIC -fpermissive) |
| | | add_compile_options(-fPIC -fpermissive) |
| | | add_definitions(-DGLOG) |
| | | add_definitions(-DDEBUG_INFO -DDEBUG_ERR) |
| | | |
| | | |
| | | include_directories( |
| | | /home/ps/boost_1_68_0 |
| | | |
| | | /usr/include/x86_64-linux-gnu/qt5 |
| | | /usr/include/x86_64-linux-gnu/qt5/QtCore/ |
| | | /usr/include/x86_64-linux-gnu/qt5/QtSql/ |
| | | |
| | | /usr/include/ |
| | | ../../Qt/BasicPlatForm/ |
| | | ../../Qt/BasicPlatForm/libs/libuuid/include |
| | | ../../Qt/BasicPlatForm/libs/jsoncpp/include |
| | | ../../Qt/BasicPlatForm/libs/glog/include |
| | | ../../BasicPlatForm/ |
| | | ../../BasicPlatForm/libs/libuuid/include |
| | | ../../BasicPlatForm/libs/jsoncpp/include |
| | | ../../BasicPlatForm/libs/glog/include |
| | | ) |
| | | |
| | | link_directories( |
| | | /usr/lib/erlang/lib/erl_interface-3.8.2/lib/ |
| | | ../../Qt/BasicPlatForm/libs/libuuid/lib |
| | | ../../Qt/BasicPlatForm/libs/jsoncpp/lib |
| | | ../../Qt/BasicPlatForm/libs/glog/lib |
| | | |
| | | |
| | | ../../BasicPlatForm/libs/libuuid/lib |
| | | ../../BasicPlatForm/libs/jsoncpp/lib |
| | | ../../BasicPlatForm/libs/glog/lib |
| | | ) |
| | | |
| | | |
| | | add_executable(syncDBTool |
| | | main2.cpp |
| | | # main.cpp |
| | | ShareMemoryTool.hpp |
| | | ErlangDbTool.cpp |
| | | ) |
| | | |
| | | target_link_libraries( |
| | | syncDBTool |
| | | SET(Libs |
| | | Qt5Core |
| | | Qt5Sql |
| | | ei |
| | | erl_interface_st |
| | | ei_st |
| | |
| | | glog |
| | | jsoncpp |
| | | pthread |
| | | ) |
| | | |
| | | add_executable(syncDBTool |
| | | main2.cpp |
| | | # main.cpp |
| | | ShareMemoryTool.hpp |
| | | ErlangDbTool.cpp |
| | | ) |
| | | |
| | | target_link_libraries( |
| | | syncDBTool |
| | | ${Libs} |
| | | ) |
| | | |
| | | |
| | | add_executable(syncDBClient main2.cpp ShareMemoryTool.hpp |
| | | ErlangDbTool.cpp testCallBack.cpp testCallBack.h) |
| | | add_executable(syncDBClient |
| | | main2.cpp |
| | | ShareMemoryTool.hpp |
| | | ErlangDbTool.cpp |
| | | ) |
| | | |
| | | target_link_libraries( |
| | | syncDBClient |
| | | glog |
| | | ei |
| | | erl_interface_st |
| | | ei_st |
| | | erl_interface |
| | | rt |
| | | jsoncpp |
| | | pthread |
| | | ${Libs} |
| | | ) |
| | | |
| | | add_executable(TestCilent |
| | | Client.cpp ShareMemoryTool.hpp |
| | | ErlangDbTool.cpp) |
| | | Client.cpp |
| | | ShareMemoryTool.hpp |
| | | ErlangDbTool.cpp |
| | | ) |
| | | |
| | | target_link_libraries(TestCilent |
| | | pthread |
| | | glog |
| | | rt |
| | | ${Libs} |
| | | |
| | | ) |
| | | add_executable(cNodeTest |
| | | cnode.cpp ShareMemoryTool.hpp cnode.cpp) |
| | | |
| | | target_link_libraries(cNodeTest |
| | | ei |
| | | erl_interface_st |
| | | ei_st |
| | | glog |
| | | erl_interface |
| | | pthread |
| | | rt |
| | | cnode.cpp |
| | | ShareMemoryTool.hpp |
| | | cnode.cpp |
| | | ) |
| | | |
| | | add_executable(callbacktest |
| | | testCallBack.cpp) |
| | | target_link_libraries(cNodeTest |
| | | ${Libs} |
| | | |
| | | target_link_libraries(callbacktest |
| | | ei |
| | | erl_interface_st |
| | | ei_st |
| | | glog |
| | | erl_interface |
| | | pthread |
| | | rt |
| | | ) |
| | | ) |