|
@@ -19,23 +19,25 @@ SET(CMAKE_AUTORCC ON)
|
|
|
SET(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
|
|
# Set dependency directory
|
|
|
-LIST(APPEND CMAKE_PREFIX_PATH "${CMAKE_CURRENT_LIST_DIR}/thirdparty/openscenegraph/install")
|
|
|
-LIST(APPEND CMAKE_PREFIX_PATH "${CMAKE_CURRENT_LIST_DIR}/thirdparty/lib3mf/install")
|
|
|
-LIST(APPEND CMAKE_PREFIX_PATH "${CMAKE_CURRENT_LIST_DIR}/thirdparty/json/install")
|
|
|
+#LIST(APPEND CMAKE_PREFIX_PATH "${CMAKE_CURRENT_LIST_DIR}/thirdparty/openscenegraph/install")
|
|
|
+#LIST(APPEND CMAKE_PREFIX_PATH "${CMAKE_CURRENT_LIST_DIR}/thirdparty/lib3mf/install")
|
|
|
+#LIST(APPEND CMAKE_PREFIX_PATH "${CMAKE_CURRENT_LIST_DIR}/thirdparty/json/install")
|
|
|
LIST(APPEND CMAKE_PREFIX_PATH "${CMAKE_CURRENT_LIST_DIR}/thirdparty/qt/install")
|
|
|
|
|
|
# OpenSceneGraph
|
|
|
-FIND_PACKAGE(OpenSceneGraph REQUIRED COMPONENTS osgViewer osgDB osgGA osgText osgUtil)
|
|
|
+INCLUDE(thirdparty/openscenegraph.cmake)
|
|
|
+#FIND_PACKAGE(OpenSceneGraph REQUIRED COMPONENTS osgViewer osgDB osgGA osgText osgUtil)
|
|
|
|
|
|
# Qt
|
|
|
-FIND_PACKAGE(Qt6 COMPONENTS Widgets OpenGLWidgets REQUIRED NO_CMAKE_SYSTEM_PATH)
|
|
|
+FIND_PACKAGE(Qt6 COMPONENTS Core Gui Widgets OpenGLWidgets REQUIRED NO_CMAKE_SYSTEM_PATH)
|
|
|
|
|
|
# lib3mf
|
|
|
INCLUDE(thirdparty/lib3mf.cmake)
|
|
|
-#FIND_LIBRARY(LIB3MFLOCATION lib3mf REQUIRED PATHS ${CMAKE_CURRENT_LIST_DIR}/thirdparty/lib3mf/install)
|
|
|
+#FIND_PACKAGE(Lib3MF REQUIRED)
|
|
|
|
|
|
# Json
|
|
|
-FIND_PACKAGE(nlohmann_json REQUIRED NO_CMAKE_SYSTEM_PATH)
|
|
|
+INCLUDE(thirdparty/json.cmake)
|
|
|
+#FIND_PACKAGE(nlohmann_json REQUIRED NO_CMAKE_SYSTEM_PATH)
|
|
|
|
|
|
# The executable we want to build
|
|
|
QT_ADD_EXECUTABLE(TrackpointApp
|
|
@@ -53,16 +55,19 @@ QT_ADD_EXECUTABLE(TrackpointApp
|
|
|
)
|
|
|
|
|
|
INCLUDE_DIRECTORIES(
|
|
|
- ${OPENSCENEGRAPH_INCLUDE_DIRS}
|
|
|
- ${CMAKE_CURRENT_LIST_DIR}/thirdparty/lib3mf/install/include/Bindings/Cpp
|
|
|
+ ${${OPENSCENEGRAPH_PREFIX}_SOURCE_DIR}/include
|
|
|
+ ${${LIB3MF_PREFIX}_BINARY_DIR}/Autogenerated/Bindings/Cpp
|
|
|
+ ${${JSON_PREFIX}_SOURCE_DIR}/include
|
|
|
include
|
|
|
gui
|
|
|
)
|
|
|
|
|
|
TARGET_LINK_LIBRARIES(TrackpointApp PRIVATE
|
|
|
- ${OPENSCENEGRAPH_LIBRARIES}
|
|
|
+ osg osgViewer osgDB osgGA osgText osgUtil
|
|
|
lib3mf
|
|
|
nlohmann_json::nlohmann_json
|
|
|
+ Qt6::Core
|
|
|
+ Qt6::Gui
|
|
|
Qt6::Widgets
|
|
|
Qt6::OpenGLWidgets
|
|
|
)
|