I always compile my own cgal programs in my laptop (which cgal has been installed as root, and in the standard location) like this:
cgal_create_CMakeLists -s executable
cmake -DCGAL_DIR=$HOME/CGAL-4.9.1 .
make
I installed CGAL in my account in our cluster, in a non standard location:
/data/home/user1/CGAL-1.4.9
, and I added this line to the .bashrc file:
export CGAL_DIR=$HOME/CGAL-4.9.1
Now compiling a test code using the above command, gives me:
-bash: cgal_create_CMakeLists: command not found
I also tried the following, according to this post:
$ g++ chull.cpp -lCGAL -I/data/home/user1/CGAL-4.9.1/include
$/usr/bin/ld: cannot find -lCGAL
collect2: error: ld returned 1 exit status
How can I compile a cgal program with this type of installation?