build: Automate source file discovery for C++ sources in src/
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
@@ -28,24 +28,10 @@ endif()
|
|||||||
message(STATUS "OpenCASCADE_INCLUDE_DIRS: ${OpenCASCADE_INCLUDE_DIRS}")
|
message(STATUS "OpenCASCADE_INCLUDE_DIRS: ${OpenCASCADE_INCLUDE_DIRS}")
|
||||||
message(STATUS "OpenCASCADE_LIBRARIES: ${OpenCASCADE_LIBRARIES}")
|
message(STATUS "OpenCASCADE_LIBRARIES: ${OpenCASCADE_LIBRARIES}")
|
||||||
|
|
||||||
|
file(GLOB SOURCES "src/*.cpp")
|
||||||
|
|
||||||
add_executable(OpenCAD
|
add_executable(OpenCAD
|
||||||
src/main.cpp
|
${SOURCES}
|
||||||
src/MainWindow.cpp
|
|
||||||
src/ViewportWidget.cpp
|
|
||||||
src/ViewCube.cpp
|
|
||||||
src/SketchGrid.cpp
|
|
||||||
src/Document.cpp
|
|
||||||
src/Feature.cpp
|
|
||||||
src/SketchFeature.cpp
|
|
||||||
src/SketchLine.cpp
|
|
||||||
src/SketchRectangle.cpp
|
|
||||||
src/FeatureBrowser.cpp
|
|
||||||
src/ApplicationController.cpp
|
|
||||||
src/Camera.cpp
|
|
||||||
src/SketchTool.cpp
|
|
||||||
src/LineTool.cpp
|
|
||||||
src/RectangleTool.cpp
|
|
||||||
src/Snapping.cpp
|
|
||||||
resources.qrc
|
resources.qrc
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user