Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix QScintilla2 CMake Issues #97

Merged
merged 8 commits into from
Mar 9, 2020
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ set(RGM_SOURCES
Editors/SpriteEditor.cpp
Editors/BaseEditor.cpp
Editors/RoomEditor.cpp
Widgets/CodeWidgetPlain.cpp
Widgets/AssetView.cpp
Widgets/CodeWidget.cpp
Widgets/BackgroundView.cpp
Expand Down Expand Up @@ -153,7 +152,7 @@ set(RGM_RC
)

# Check for QScintilla
find_library(LIB_QSCINTILLA NAMES qscintilla2)
find_library(LIB_QSCINTILLA NAMES qscintilla2 qscintilla2_qt5 qscintilla2-qt5 qt5scintilla2 libqscintilla2_qt5.so libqscintilla2.so libqscintilla2.a qscintilla2.lib)
if (NOT LIB_QSCINTILLA)
set(EDITOR_SOURCES Widgets/CodeWidgetPlain.cpp)
else()
Expand Down Expand Up @@ -197,6 +196,8 @@ foreach(CompilerFlag ${CompilerFlags})
endforeach()

if (LIB_QSCINTILLA)
message(STATUS "Found QScintilla: ${LIB_QSCINTILLA}")
add_definitions(-DQSCINTILLA_DLL)
target_link_libraries(${EXE} PRIVATE ${LIB_QSCINTILLA})
endif()

Expand Down