Add export package to cmake

This will add CGAL to the local cmake package cache and enable find_package to find it without manually providing the build dir.
(See: https://cmake.org/cmake/help/latest/command/export.html)
This commit is contained in:
Raphael Grimm 2018-11-02 16:04:34 +01:00 committed by Laurent Rineau
parent a586226ff1
commit f924d51c6f
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# Top level CMakeLists.txt for CGAL-branchbuild # Top level CMakeLists.txt for CGAL-branchbuild
message( "== CMake setup ==" ) message( "== CMake setup ==" )
project(CGAL CXX C) project(CGAL CXX C)
export(PACKAGE CGAL)
# Minimal version of CMake: # Minimal version of CMake:
cmake_minimum_required(VERSION 3.1) cmake_minimum_required(VERSION 3.1)