From 438d661832cce9431ec1b56aa13aae61cb896b47 Mon Sep 17 00:00:00 2001
From: chenshijun <csj_sky@126.com>
Date: 星期六, 30 三月 2019 18:36:45 +0800
Subject: [PATCH] C_RealVideoStart失败后再次打开
---
syncDBTool/CMakeLists.txt | 102 ++++++++++++++++++++++++---------------------------
1 files changed, 48 insertions(+), 54 deletions(-)
diff --git a/syncDBTool/CMakeLists.txt b/syncDBTool/CMakeLists.txt
index 5199a6f..2e3b89b 100755
--- a/syncDBTool/CMakeLists.txt
+++ b/syncDBTool/CMakeLists.txt
@@ -4,37 +4,37 @@
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
@@ -44,55 +44,49 @@
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
- )
\ No newline at end of file
+ )
--
Gitblit v1.8.0