Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(AnnoTool)
# Build configuration (copied from PCL 1.7.0)
SET(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "possible configurations" FORCE)
# In case the user does not setup CMAKE_BUILD_TYPE, assume it's Debug
IF("${CMAKE_BUILD_TYPE}" STREQUAL "")
SET(CMAKE_BUILD_TYPE Debug CACHE STRING "build type default to Debug, set to Release to improve performance" FORCE)
ENDIF("${CMAKE_BUILD_TYPE}" STREQUAL "")
# OpenCV for image reading and writing
FIND_PACKAGE(OpenCV REQUIRED)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")# C++11 support on gcc
# Qt for file/directory handling
SET(QT_MIN_VERSION "4.8.0")
FIND_PACKAGE(Qt4 REQUIRED)
INCLUDE(${QT_USE_FILE})
SET(CPP_FILES AnnoTool.cpp Helpers.hpp)
INCLUDE_DIRECTORIES(${QT4_INCLUDE_DIR})
ADD_EXECUTABLE(${PROJECT_NAME} ${CPP_FILES})
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${OpenCV_LIBS} ${QT_LIBRARIES})