Skip to content

Commit

Permalink
Ensure consistent output directories across configurations and remove…
Browse files Browse the repository at this point in the history
… unused debug includes
  • Loading branch information
dongzgh committed Feb 24, 2025
1 parent 87b5044 commit c2ca6bc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)

# Ensure the output directory is the same for all configurations
foreach(CONFIGURATION ${CMAKE_CONFIGURATION_TYPES})
string(TOUPPER ${CONFIGURATION} CONFIGURATION_UPPER)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_${CONFIGURATION_UPPER} ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_${CONFIGURATION_UPPER} ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_${CONFIGURATION_UPPER} ${CMAKE_BINARY_DIR}/lib)
endforeach()

# Find Qt6 component for Regular Expression.
find_package(Qt6 COMPONENTS Core Widgets Svg REQUIRED)

Expand Down
1 change: 0 additions & 1 deletion include/visScene.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include <QGraphicsScene>
#include <QGraphicsSceneMouseEvent>
#include <QGraphicsProxyWidget>
#include <QDebug>

#include "include/visNode.h"
#include "include/visConnector.h"
Expand Down
1 change: 0 additions & 1 deletion src/visNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <QFontMetrics>
#include <QLineEdit>
#include <QGraphicsProxyWidget>
#include <QDebug>
#include <QCompleter>
#include <QIntValidator>
#include <QDoubleValidator>
Expand Down

0 comments on commit c2ca6bc

Please sign in to comment.