mirror of
https://github.com/dgirardeau/q3DMASC.git
synced 2026-08-29 16:40:49 +08:00
33 lines
1.0 KiB
CMake
33 lines
1.0 KiB
CMake
cmake_minimum_required(VERSION 2.8)
|
|
|
|
option( INSTALL_Q3DMASC_PLUGIN "Check to install q3DMASC plugin" OFF )
|
|
|
|
if (INSTALL_Q3DMASC_PLUGIN)
|
|
|
|
#New classification plugin (Dimitri Lague/OSUR)
|
|
project( Q3DMASC_PLUGIN )
|
|
|
|
#need OpenCV
|
|
find_package( OpenCV REQUIRED )
|
|
|
|
#As we are going to re-use several components of the main qCC project
|
|
#we define its sources path relatively to the plugin's dir
|
|
set(CloudCompare_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../../qCC)
|
|
|
|
#include the whole CC directory (easier)
|
|
include_directories( ${CloudCompare_SOURCE_DIR} )
|
|
#include_directories( ${OpenCV_INCLUDE_DIR} )
|
|
|
|
#we need the "order choice" dialog
|
|
file( GLOB CC_PLUGIN_CUSTOM_HEADER_LIST ${CloudCompare_SOURCE_DIR}/ccOrderChoiceDlg*.h )
|
|
file( GLOB CC_PLUGIN_CUSTOM_SOURCE_LIST ${CloudCompare_SOURCE_DIR}/ccOrderChoiceDlg*.cpp )
|
|
|
|
#don't forget associated widgets(.ui)
|
|
set( CC_PLUGIN_CUSTOM_UI_LIST ${CloudCompare_SOURCE_DIR}/ui_templates/roleChoiceDlg.ui )
|
|
|
|
include( ../../CMakePluginTpl.cmake )
|
|
|
|
target_link_libraries( ${PROJECT_NAME} ${OpenCV_LIBS} )
|
|
|
|
endif()
|