Incorporating CGAL into an existing QT6 project #8565
-
I have a QT6 project with a .pro file and I want to include the CGAL libraries I saw in a StackOverflow question where a person asked the same question but in linux and I can't find the libs folder in the windows installation folder. The link to the question I found from stack is this: https://stackoverflow.com/questions/8524217/how-do-you-include-cgal-into-a-qt-project-in-qt-creator This is my .pro file but as you can imagine, I don't have the usr/include folder so I don't know how to proceed. # TestCGAL.pro
CONFIG += c++17
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += \
main.cpp \
mainwindow.cpp
HEADERS += \
mainwindow.h
INCLUDEPATH += C:/dev/CGAL-6.0/include\
LIBS += -L/usr/include/
LIBS += -lCGAL
LIBS += -lgmp
LIBS += -lmpfr // not really needed for me, but added since gmp had to be added too
QMAKE_CXXFLAGS += -frounding-math -O3
FORMS += \
mainwindow.ui
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
As far as I know, there is not any CGAL developer that uses You will probably not get any useful answer here. I am sorry. |
Beta Was this translation helpful? Give feedback.
CMake is cross-platform. That is the reason why it was adopted by CGAL.
I suggest you have a lot at the documentation. A few references: