Skip to content

Commit

Permalink
Merge pull request #43 from pcgomes/replace_Qtscript_with_QtQml
Browse files Browse the repository at this point in the history
Fix error at CMake with QUiTools detection
  • Loading branch information
pcgomes committed Sep 16, 2020
2 parents 87c25d0 + 818ad8b commit 5540bc4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,10 @@ set(qtbindings_SRCS
scripting/scriptengine/qtbindings/GuiLabel.cpp
scripting/scriptengine/qtbindings/SqlSqlQuery.cpp
)
if( Qt5UiTools_FOUND )
# Append below all files from QtBindings::UiTools namespace
list(APPEND qtbindings_SRCS scripting/scriptengine/qtbindings/UiToolsUiLoader.cpp)
endif()

set(scriptconsole_SRCS
scripting/scriptconsole/CompletionModel.cpp
Expand Down Expand Up @@ -867,8 +871,6 @@ endif()
if( Qt5UiTools_FOUND )
target_link_libraries( amaroklib Qt5::UiTools )
add_definitions( -DWITH_QT_UITOOLS )
# Append below all files from QtBindings::UiTools namespace
list(APPEND qtbindings_SRCS scripting/scriptengine/qtbindings/UiToolsUiLoader.cpp)
endif()

include_directories(${TAGLIB_INCLUDES})
Expand Down

0 comments on commit 5540bc4

Please sign in to comment.