git-svn-id: http://find-object.googlecode.com/svn/trunk/find_object@332 620bd6b2-0a58-f614-fd9a-1bd335dccda9
29 lines
648 B
CMake
29 lines
648 B
CMake
|
|
|
|
SET(SRC_FILES
|
|
main.cpp
|
|
)
|
|
|
|
SET(INCLUDE_DIRS
|
|
${OpenCV_INCLUDE_DIRS}
|
|
)
|
|
|
|
SET(LIBRARIES
|
|
${OpenCV_LIBS}
|
|
)
|
|
|
|
# Make sure the compiler can find include files from our library.
|
|
INCLUDE_DIRECTORIES(${INCLUDE_DIRS})
|
|
|
|
# Add binary called "console" that is built from the source file "main.cpp".
|
|
# The extension is automatically found.
|
|
ADD_EXECUTABLE(console ${SRC_FILES})
|
|
TARGET_LINK_LIBRARIES(console ${LIBRARIES})
|
|
|
|
SET_TARGET_PROPERTIES( console
|
|
PROPERTIES OUTPUT_NAME ${PROJECT_PREFIX}-console)
|
|
|
|
INSTALL(TARGETS console
|
|
RUNTIME DESTINATION bin COMPONENT runtime
|
|
BUNDLE DESTINATION "${CMAKE_BUNDLE_LOCATION}" COMPONENT runtime)
|