Permalink
Cannot retrieve contributors at this time
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?
AnnoTool/CMakeLists.txt
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
25 lines (19 sloc)
916 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}) |