Commit 5d460b08 authored by Albert  Babí Oller's avatar Albert Babí Oller

cmake: fix setting definition

- definitions should be set with COMPILE_DEFINITIONS

Change-Id: Icdd47a010fd51ff4f061ef744d9004ef6b8fca2e
Gitlab: #262, #263
parent 8caf659b
......@@ -13,8 +13,8 @@ set(CMAKE_AUTOUIC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(SRC_DIR ${PROJECT_SOURCE_DIR}/src)
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}
-DJAMI_DATA_DIR='"'${CMAKE_INSTALL_PREFIX}/share/jami-qt'"')
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}
${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS})
set(QML_RESOURCES ${PROJECT_SOURCE_DIR}/resources.qrc)
set(QML_RESOURCES_QML ${PROJECT_SOURCE_DIR}/qml.qrc)
......@@ -207,6 +207,9 @@ add_executable(${PROJECT_NAME}
${QML_RESOURCES_QML}
${LRC_SRC_PATH}/webresource.qrc)
target_compile_definitions(jami-qt PRIVATE
JAMI_DATA_DIR="${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME}")
find_library(ringclient ringclient ${LRCLIBDIR} NO_DEFAULT_PATH)
find_library(qrencode qrencode)
find_library(X11 X11)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment