45 lines
947 B
CMake
45 lines
947 B
CMake
|
|
### Qt Gui stuff ###
|
||
|
|
SET(headers_ui
|
||
|
|
../src/Camera.h
|
||
|
|
ImagesTcpServer.h
|
||
|
|
)
|
||
|
|
#This will generate moc_* for Qt
|
||
|
|
QT4_WRAP_CPP(moc_srcs ${headers_ui})
|
||
|
|
### Qt Gui stuff end###
|
||
|
|
|
||
|
|
SET(SRC_FILES
|
||
|
|
../src/Camera.cpp
|
||
|
|
../src/Settings.cpp
|
||
|
|
../src/QtOpenCV.cpp
|
||
|
|
../src/utilite/UDirectory.cpp
|
||
|
|
../src/utilite/UFile.cpp
|
||
|
|
ImagesTcpServer.cpp
|
||
|
|
main.cpp
|
||
|
|
${moc_srcs}
|
||
|
|
)
|
||
|
|
|
||
|
|
SET(INCLUDE_DIRS
|
||
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||
|
|
${OpenCV_INCLUDE_DIRS}
|
||
|
|
../src
|
||
|
|
)
|
||
|
|
|
||
|
|
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.
|
||
|
|
ADD_EXECUTABLE(imagesTcpServer ${SRC_FILES})
|
||
|
|
TARGET_LINK_LIBRARIES(imagesTcpServer ${LIBRARIES})
|
||
|
|
|
||
|
|
SET_TARGET_PROPERTIES( imagesTcpServer
|
||
|
|
PROPERTIES OUTPUT_NAME ${PROJECT_PREFIX}-imagesTcpServer)
|
||
|
|
|