Added
Link Here
|
1 |
--- CMakeLists.txt.orig 2020-02-28 16:02:25 UTC |
2 |
+++ CMakeLists.txt |
3 |
@@ -16,6 +16,8 @@ set(CMAKE_AUTOUIC ON) |
4 |
set(CMAKE_AUTORCC ON) |
5 |
|
6 |
find_package(Qt5 COMPONENTS LinguistTools Multimedia Network WebEngine WebEngineWidgets Widgets REQUIRED) |
7 |
+find_library(EB_LIBRARY eb) |
8 |
+find_library(Z_LIBRARY z) |
9 |
|
10 |
add_executable(qolibri MACOSX_BUNDLE WIN32 |
11 |
images/qolibri.icns |
12 |
@@ -154,6 +156,6 @@ set_source_files_properties(${TS_FILES} PROPERTIES OUT |
13 |
qt5_add_translation(QM_FILES ${TS_FILES}) |
14 |
target_sources(qolibri PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/translations/translations.qrc" ${QM_FILES} ${TS_FILES}) |
15 |
|
16 |
-target_link_libraries(qolibri Qt5::Multimedia Qt5::Network Qt5::WebEngine Qt5::WebEngineWidgets Qt5::Widgets eb z) |
17 |
+target_link_libraries(qolibri Qt5::Multimedia Qt5::Network Qt5::WebEngine Qt5::WebEngineWidgets Qt5::Widgets ${EB_LIBRARY} ${Z_LIBRARY}) |
18 |
|
19 |
install(TARGETS qolibri DESTINATION "${CMAKE_INSTALL_BINDIR}") |