mirror of https://github.com/CGAL/cgal
Save the current source directory to `CGAL_CURRENT_SOURCE_DIR`. The variable value is modified by a `CMakeLists.txt` file when it is generated by `cgal_create_cmake_script` in the binary tree. The script `cgal_create_cmake_script` itself it called by CMake, by the function `process_CGAL_subdirectory` (see its definition in `Installation/cmake/modules/CGAL_Macros.cmake`), called in `(examples|test|demo)/CMakeLists.txt`. Eventually, that variable value is supposed to be the directory to the current sources, even if the current `CMakeLists.txt` is within the binary tree. That is used in `CGAL_CreateSingleSourceCGALProgram.cmake` for the CTest support, so set correctly the current working directory (in the directory of the tests/examples). |
||
|---|---|---|
| .. | ||
| developer_scripts | ||
| package_info/Scripts | ||
| scripts | ||