I have installed Opencascads 6.5.0 on my Ubuntu 12.04 LTS 64 bit system. My gcc version is 4.6.3. The opencascade header file is in /usr/include/opencascade/, and the libs is in /usr/lib/opencas/. I have the following test example, and I want to write a CMakeLists.txt file and use cmake tool to manage and compile it. But I am a new user of Opencascade and I am also not familiar with cmake tool. I am very appreciate for that someone can offer me such a CMakeLists.txt file as an example. Thanks very much!
//loads file MyFile.igs
Handle(TColStd_HSequenceOfTransient) myList =
//selects all IGES faces in the file and puts them into a listcalled
nIgesFaces = myList->Length();
nTransFaces = myIgesReader.TransferList(myList);
cout TopoDS_Shape sh = myIgesReader.OneShape();
//and obtains the results in an Open CASCADE shape.