Cmake fixes: non exported symbols, missing files, shared import, rewrite cmake for demo and designer

This commit is contained in:
Jihadist
2022-10-30 20:44:59 +03:00
parent f00f72efa9
commit e6ead26d31
13 changed files with 83 additions and 61 deletions

View File

@@ -1,3 +1,5 @@
project(LRDesigner)
set(CMAKE_AUTOMOC ON)
set(LRDESIGNER_FILES
@@ -7,14 +9,12 @@ set(LRDESIGNER_FILES
mainicon.rc
)
add_executable(LRDesigner ${LRDESIGNER_FILES})
add_executable(${PROJECT_NAME} ${LRDESIGNER_FILES})
target_include_directories(LRDesigner PUBLIC ${PROJECT_SOURCE_DIR}/include)
target_link_libraries(LRDesigner PUBLIC
target_link_libraries(${PROJECT_NAME} PUBLIC
Qt${QT_VERSION_MAJOR}::Core
Qt${QT_VERSION_MAJOR}::Widgets
Qt${QT_VERSION_MAJOR}::PrintSupport
Qt${QT_VERSION_MAJOR}::Qml
${PROJECT_NAME}-qt${QT_VERSION_MAJOR}
limereport-qt${QT_VERSION_MAJOR}
)