diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000000000000000000000000000000000000..c00635fb7e077d215fa78e992fe063ed6a057be2 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "src/deps/cgal"] + path = src/deps/cgal + url = https://github.com/CGAL/cgal.git diff --git a/README.md b/README.md index 8c829d20c47d505db2ce838a8be0e124d24cdb5e..2ce3557705580a0197ea97e15ad663635b820107 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,14 @@ Let us denote by SRC_DIR the root directory of the gitlab repository. * Boost, with components system and filesystem * Intel TBB * Qt5 - * CGAL, with component Qt5 + + +For CGAL, we have added it as a git submodule. Just run: +``` +git submodule update --recursive --init +``` + + # 3. Compile the programs diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c5e704758aea7cfef3b53cb99d1155039dce23c8..eac34a8e98b49e0c5efa3ae154dc5996a831e3ec 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -26,7 +26,7 @@ find_package(Boost COMPONENTS system filesystem REQUIRED) # ########################################################## # Find some packages -find_package(CGAL COMPONENTS Qt5 REQUIRED) # CGAL and QT5 component +include("${CMAKE_CURRENT_SOURCE_DIR}/deps/cgal/CGALConfig.cmake") if(CGAL_Qt5_FOUND) add_definitions(-DCGAL_USE_BASIC_VIEWER -DQT_NO_KEYWORDS) endif() diff --git a/src/deps/cgal b/src/deps/cgal new file mode 160000 index 0000000000000000000000000000000000000000..e3d5fccf5b9514f1c0ddcca4d417a011b5b26a9e --- /dev/null +++ b/src/deps/cgal @@ -0,0 +1 @@ +Subproject commit e3d5fccf5b9514f1c0ddcca4d417a011b5b26a9e