Refactored CameraTcpClient to CameraTcpServer (to send images we connect to find_object, instead of connecting find_object to an image server), removed parameter CameraIP (missing files) git-svn-id: http://find-object.googlecode.com/svn/trunk/find_object@365 620bd6b2-0a58-f614-fd9a-1bd335dccda9
55 lines
1.2 KiB
CMake
55 lines
1.2 KiB
CMake
### Qt Gui stuff ###
|
|
SET(headers_ui
|
|
TcpResponse.h
|
|
)
|
|
#This will generate moc_* for Qt
|
|
QT4_WRAP_CPP(moc_srcs ${headers_ui})
|
|
### Qt Gui stuff end###
|
|
|
|
SET(SRC_FILES
|
|
TcpResponse.cpp
|
|
main.cpp
|
|
${moc_srcs}
|
|
)
|
|
|
|
SET(INCLUDE_DIRS
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../include
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
${OpenCV_INCLUDE_DIRS}
|
|
)
|
|
|
|
INCLUDE(${QT_USE_FILE})
|
|
|
|
SET(LIBRARIES
|
|
${OpenCV_LIBS}
|
|
${QT_LIBRARIES}
|
|
)
|
|
|
|
IF(JSONCPP_FOUND)
|
|
SET(INCLUDE_DIRS
|
|
${INCLUDE_DIRS}
|
|
${JSONCPP_INCLUDE_DIRS}
|
|
)
|
|
SET(LIBRARIES
|
|
${LIBRARIES}
|
|
${JSONCPP_LIBRARIES}
|
|
)
|
|
ADD_DEFINITIONS("-DWITH_JSONCPP")
|
|
ENDIF(JSONCPP_FOUND)
|
|
|
|
# Make sure the compiler can find include files from our library.
|
|
INCLUDE_DIRECTORIES(${INCLUDE_DIRS})
|
|
|
|
# Add binary called "example" that is built from the source file "main.cpp".
|
|
# The extension is automatically found.
|
|
ADD_EXECUTABLE(tcpRequest ${SRC_FILES})
|
|
TARGET_LINK_LIBRARIES(tcpRequest find_object ${LIBRARIES})
|
|
|
|
SET_TARGET_PROPERTIES( tcpRequest
|
|
PROPERTIES OUTPUT_NAME ${PROJECT_PREFIX}-tcpRequest)
|
|
|
|
INSTALL(TARGETS tcpRequest
|
|
RUNTIME DESTINATION bin COMPONENT runtime
|
|
BUNDLE DESTINATION "${CMAKE_BUNDLE_LOCATION}" COMPONENT runtime)
|
|
|