added IFCOS libraries; Qt include dir

This commit is contained in:
Dushyant Basson
2023-08-29 09:16:02 +05:30
parent 3783729900
commit 98102b9df0
+13 -4
View File
@@ -31,7 +31,9 @@ if(Qt${QT_VERSION}_FOUND)
message(STATUS "Found Qt Version: ${Qt${QT_VERSION}_VERSION}") message(STATUS "Found Qt Version: ${Qt${QT_VERSION}_VERSION}")
endif() endif()
add_executable(QtViewer set(targetName "QtViewer")
add_executable(${targetName}
IfcViewerWidget.h IfcViewerWidget.h
IfcViewerWidget.cpp IfcViewerWidget.cpp
ParseIfcFile.h ParseIfcFile.h
@@ -41,14 +43,14 @@ add_executable(QtViewer
main.cpp main.cpp
) )
set_target_properties(QtViewer PROPERTIES set_target_properties(${targetName} PROPERTIES
AUTOMOC On AUTOMOC On
WIN32_EXECUTABLE ON WIN32_EXECUTABLE ON
MACOSX_BUNDLE ON MACOSX_BUNDLE ON
) )
target_link_libraries(QtViewer target_link_libraries(${targetName}
${IFCLIBS} ${IFCOPENSHELL_LIBRARIES}
Qt${QT_VERSION}::Core Qt${QT_VERSION}::Core
Qt${QT_VERSION}::Gui Qt${QT_VERSION}::Gui
Qt${QT_VERSION}::OpenGL Qt${QT_VERSION}::OpenGL
@@ -56,3 +58,10 @@ target_link_libraries(QtViewer
Qt${QT_VERSION}::Widgets Qt${QT_VERSION}::Widgets
${OPENCASCADE_LIBRARIES} ${OPENCASCADE_LIBRARIES}
) )
target_include_directories(${targetName} PUBLIC
${QT_DIR}/include
)
get_target_property(targetIncludeDirs ${targetName} INCLUDE_DIRECTORIES)
message(STATUS "target_include_directories: ${targetIncludeDirs}")