Changeset View
Changeset View
Standalone View
Standalone View
sheets/CMakeLists.txt
1 | project(calligra-sheets) | 1 | project(calligra-sheets) | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | # TEMPORARY: for Qt5/KF5 build porting phase deprecation warnings are only annoying noise | 3 | # TEMPORARY: for Qt5/KF5 build porting phase deprecation warnings are only annoying noise | ||
4 | if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUC) | 4 | if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUC) | ||
5 | add_definitions(-Wno-deprecated -Wno-deprecated-declarations) | 5 | add_definitions(-Wno-deprecated -Wno-deprecated-declarations) | ||
6 | endif () | 6 | endif () | ||
7 | 7 | | |||
8 | if (SHOULD_BUILD_PART_SHEETS) | ||||
9 | | ||||
8 | include_directories( ${CMAKE_SOURCE_DIR}/interfaces | 10 | include_directories( ${CMAKE_SOURCE_DIR}/interfaces | ||
9 | ${KOMAIN_INCLUDES} | 11 | ${KOMAIN_INCLUDES} | ||
10 | ${KOTEXT_INCLUDES} | 12 | ${KOTEXT_INCLUDES} | ||
11 | ${TEXTLAYOUT_INCLUDES} | 13 | ${TEXTLAYOUT_INCLUDES} | ||
12 | ${Boost_INCLUDE_DIR} | 14 | ${Boost_INCLUDE_DIR} | ||
13 | ${EIGEN3_INCLUDE_DIR} ) | 15 | ${EIGEN3_INCLUDE_DIR} ) | ||
14 | 16 | | |||
15 | if (SHOULD_BUILD_PART_SHEETS) | | |||
16 | | ||||
17 | # have their own translation domain | 17 | # have their own translation domain | ||
18 | add_subdirectory( shape ) | 18 | add_subdirectory( shape ) | ||
19 | add_subdirectory( plugins ) | 19 | add_subdirectory( plugins ) | ||
20 | 20 | | |||
21 | add_definitions(-DTRANSLATION_DOMAIN=\"calligrasheets\") | 21 | add_definitions(-DTRANSLATION_DOMAIN=\"calligrasheets\") | ||
22 | 22 | | |||
23 | add_subdirectory( data ) | 23 | add_subdirectory( data ) | ||
24 | if(BUILD_TESTING) | 24 | if(BUILD_TESTING) | ||
▲ Show 20 Lines • Show All 298 Lines • ▼ Show 20 Line(s) | |||||
323 | ) | 323 | ) | ||
324 | 324 | | |||
325 | target_link_libraries(calligrasheetsodf | 325 | target_link_libraries(calligrasheetsodf | ||
326 | PUBLIC | 326 | PUBLIC | ||
327 | komain | 327 | komain | ||
328 | KF5::KDELibs4Support | 328 | KF5::KDELibs4Support | ||
329 | PRIVATE | 329 | PRIVATE | ||
330 | koplugin | 330 | koplugin | ||
331 | KF5::Completion | ||||
331 | ) | 332 | ) | ||
332 | 333 | | |||
333 | set_target_properties(calligrasheetsodf PROPERTIES | 334 | set_target_properties(calligrasheetsodf PROPERTIES | ||
334 | VERSION ${GENERIC_CALLIGRA_LIB_VERSION} SOVERSION ${GENERIC_CALLIGRA_LIB_SOVERSION} | 335 | VERSION ${GENERIC_CALLIGRA_LIB_VERSION} SOVERSION ${GENERIC_CALLIGRA_LIB_SOVERSION} | ||
335 | ) | 336 | ) | ||
336 | install(TARGETS calligrasheetsodf ${INSTALL_TARGETS_DEFAULT_ARGS}) | 337 | install(TARGETS calligrasheetsodf ${INSTALL_TARGETS_DEFAULT_ARGS}) | ||
337 | 338 | | |||
338 | 339 | | |||
339 | add_library(calligrasheetscommon SHARED ${calligrasheetscommon_LIB_SRCS}) | 340 | add_library(calligrasheetscommon SHARED ${calligrasheetscommon_LIB_SRCS}) | ||
340 | generate_export_header(calligrasheetscommon | 341 | generate_export_header(calligrasheetscommon | ||
341 | EXPORT_FILE_NAME sheets_common_generated_export.h | 342 | EXPORT_FILE_NAME sheets_common_generated_export.h | ||
342 | BASE_NAME CALLIGRA_SHEETS_COMMON | 343 | BASE_NAME CALLIGRA_SHEETS_COMMON | ||
343 | ) | 344 | ) | ||
344 | 345 | | |||
345 | target_link_libraries(calligrasheetscommon | 346 | target_link_libraries(calligrasheetscommon | ||
346 | PUBLIC | 347 | PUBLIC | ||
347 | komain | 348 | komain | ||
348 | calligrasheetsodf | 349 | calligrasheetsodf | ||
349 | PRIVATE | 350 | PRIVATE | ||
350 | koplugin | 351 | koplugin | ||
352 | KF5::Completion | ||||
353 | KF5::GuiAddons | ||||
351 | KF5::SonnetCore | 354 | KF5::SonnetCore | ||
352 | KF5::SonnetUi | 355 | KF5::SonnetUi | ||
353 | KF5::NotifyConfig | 356 | KF5::NotifyConfig | ||
354 | KF5::KCMUtils | 357 | KF5::KCMUtils | ||
355 | ) | 358 | ) | ||
356 | if(Qt5Sql_FOUND) | 359 | if(Qt5Sql_FOUND) | ||
357 | target_link_libraries(calligrasheetscommon PRIVATE Qt5::Sql) | 360 | target_link_libraries(calligrasheetscommon PRIVATE Qt5::Sql) | ||
358 | endif() | 361 | endif() | ||
▲ Show 20 Lines • Show All 131 Lines • Show Last 20 Lines |