-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
33 lines (29 loc) · 1.3 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
project(protorpcpp)
cmake_minimum_required(VERSION 2.6)
set(QT_MIN_VERSION "4.4.0")
SET(QT_USE_QTCORE true)
SET(QT_USE_QTNETWORK true)
SET(QT_DONT_USE_QTGUI true)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
include(MacroLibrary)
include(FindQt4)
include(FindProtobuf)
include(${QT_USE_FILE})
include(UsePkgConfig)
if(PROTOBUF_FOUND)
ELSE (PROTOBUF_FOUND)
MESSAGE(FATAL_ERROR "Could not find libprotobuf headers")
ENDIF (PROTOBUF_FOUND)
IF(QT4_FOUND)
ELSE (QT4_FOUND)
MESSAGE(FATAL_ERROR "Could not find QT4")
ENDIF (QT4_FOUND)
# qclientold
set(qtproject_SRCS twowaystream.cpp simplerpccontroller.cpp prototools.cpp Message.pb.cc callentry.cpp streamcallbackinfo.cpp twowayrpccontroller.cpp twowaystream.h simplerpccontroller.h test/test.pb.cc socketserver.cpp responsewaiter.cpp responsewaiter.h responsewaiterprivate.cpp responsewaiterprivate.h )
set(qtproject_HDRS)
QT4_AUTOMOC( twowaystream.h simplerpccontroller.h responsewaiterprivate.h responsewaiter.h )
#SET(qtproject_UIS slimemain.ui slimeplayermain.ui)
#QT4_WRAP_UI(qtproject_UIS_H ${qtproject_UIS})
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${QT_INCLUDE_DIR} ${PROTOBUF_INCLUDE} )
add_library(protorpcpp SHARED ${qtproject_SRCS} ${qtproject_UIS_H} )
target_link_libraries(protorpcpp ${QT_LIBRARIES} ${PROTOBUF_LIBRARY} )