File: CMakeLists.txt

package info (click to toggle)
cloudcompare 2.10.1-2
  • links: PTS
  • area: main
  • in suites: buster
  • size: 55,916 kB
  • sloc: cpp: 219,837; ansic: 29,944; makefile: 67; sh: 45
file content (23 lines) | stat: -rw-r--r-- 632 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
cmake_minimum_required(VERSION 3.0)

option( INSTALL_QPCV_PLUGIN "Check to install qPCV plugin" OFF )

# CloudCompare 'PCV' plugin
if (INSTALL_QPCV_PLUGIN)
    add_subdirectory (PCV)

    project( QPCV_PLUGIN )
    
	find_package( OpenGL REQUIRED )
	if( NOT OPENGL_FOUND )
		message( SEND_ERROR "OpenGL required, but not found with 'find_package()'" )
	endif()

    include( ../../CMakePluginTpl.cmake )
    
	include_directories( ${OpenGL_INCLUDE_DIR} )
    include_directories( ${PCV_LIB_SOURCE_DIR} )
    
    target_link_libraries( ${PROJECT_NAME} PCV_LIB )
	target_link_libraries( ${PROJECT_NAME} ${OPENGL_LIBRARIES} )
endif()