2015-01-12 01:19:09 +00:00
|
|
|
|
|
|
|
|
SET(SRC_FILES
|
|
|
|
|
main.cpp
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
SET(INCLUDE_DIRS
|
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../include
|
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
|
${OpenCV_INCLUDE_DIRS}
|
|
|
|
|
)
|
|
|
|
|
|
2016-05-06 16:54:18 -04:00
|
|
|
IF(QT4_FOUND)
|
2015-11-29 18:39:20 -05:00
|
|
|
INCLUDE(${QT_USE_FILE})
|
2016-05-06 16:54:18 -04:00
|
|
|
ENDIF(QT4_FOUND)
|
2015-01-12 01:19:09 +00:00
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
ADD_EXECUTABLE(tcpService ${SRC_FILES})
|
|
|
|
|
TARGET_LINK_LIBRARIES(tcpService find_object ${LIBRARIES})
|
2016-05-06 16:54:18 -04:00
|
|
|
IF(Qt5_FOUND)
|
2015-11-29 18:39:20 -05:00
|
|
|
QT5_USE_MODULES(tcpService Widgets Core Gui Network PrintSupport)
|
2016-05-06 16:54:18 -04:00
|
|
|
ENDIF(Qt5_FOUND)
|
2015-01-12 01:19:09 +00:00
|
|
|
|
|
|
|
|
SET_TARGET_PROPERTIES( tcpService
|
|
|
|
|
PROPERTIES OUTPUT_NAME ${PROJECT_PREFIX}-tcpService)
|
|
|
|
|
|
|
|
|
|
INSTALL(TARGETS tcpService
|
2015-11-29 18:39:20 -05:00
|
|
|
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT runtime
|
2015-01-12 01:19:09 +00:00
|
|
|
BUNDLE DESTINATION "${CMAKE_BUNDLE_LOCATION}" COMPONENT runtime)
|
|
|
|
|
|