2014-05-21 21:31:42 +00:00
|
|
|
### Qt Gui stuff ###
|
|
|
|
|
SET(headers_ui
|
|
|
|
|
ImagesTcpServer.h
|
|
|
|
|
)
|
|
|
|
|
#This will generate moc_* for Qt
|
|
|
|
|
QT4_WRAP_CPP(moc_srcs ${headers_ui})
|
|
|
|
|
### Qt Gui stuff end###
|
|
|
|
|
|
|
|
|
|
SET(SRC_FILES
|
|
|
|
|
ImagesTcpServer.cpp
|
|
|
|
|
main.cpp
|
|
|
|
|
${moc_srcs}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
SET(INCLUDE_DIRS
|
2014-08-01 21:11:26 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../include
|
2014-05-21 21:31:42 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
|
${OpenCV_INCLUDE_DIRS}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
INCLUDE(${QT_USE_FILE})
|
|
|
|
|
|
|
|
|
|
SET(LIBRARIES
|
|
|
|
|
${OpenCV_LIBS}
|
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# 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.
|
2014-08-01 21:11:26 +00:00
|
|
|
ADD_EXECUTABLE(tcpImagesServer ${SRC_FILES})
|
|
|
|
|
TARGET_LINK_LIBRARIES(tcpImagesServer find_object ${LIBRARIES})
|
2014-05-21 21:31:42 +00:00
|
|
|
|
2014-08-01 21:11:26 +00:00
|
|
|
SET_TARGET_PROPERTIES( tcpImagesServer
|
|
|
|
|
PROPERTIES OUTPUT_NAME ${PROJECT_PREFIX}-tcpImagesServer)
|
2014-06-10 21:32:15 +00:00
|
|
|
|
2014-08-01 21:11:26 +00:00
|
|
|
INSTALL(TARGETS tcpImagesServer
|
2014-06-10 21:32:15 +00:00
|
|
|
RUNTIME DESTINATION bin COMPONENT runtime
|
|
|
|
|
BUNDLE DESTINATION "${CMAKE_BUNDLE_LOCATION}" COMPONENT runtime)
|
2014-05-21 21:31:42 +00:00
|
|
|
|