Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/CMakeLists.txt
| 1 | include_directories( | 1 | include_directories( | ||
|---|---|---|---|---|---|
| 2 | ${CMAKE_CURRENT_SOURCE_DIR}/qtlockedfile | 2 | ${CMAKE_CURRENT_SOURCE_DIR}/qtlockedfile | ||
| 3 | ${EXIV2_INCLUDE_DIR} | 3 | ${EXIV2_INCLUDE_DIR} | ||
| 4 | ) | 4 | ) | ||
| 5 | 5 | | |||
| 6 | include_directories(SYSTEM | 6 | include_directories(SYSTEM | ||
| 7 | ${EIGEN3_INCLUDE_DIR} | 7 | ${EIGEN3_INCLUDE_DIR} | ||
| 8 | ${OCIO_INCLUDE_DIR} | 8 | ${OCIO_INCLUDE_DIR} | ||
| 9 | ${Boost_INCLUDE_DIRS} | 9 | ${Boost_INCLUDE_DIRS} | ||
| 10 | ) | 10 | ) | ||
| 11 | 11 | | |||
| 12 | add_subdirectory( tests ) | 12 | add_subdirectory( tests ) | ||
| 13 | 13 | | |||
| 14 | if (APPLE) | 14 | if (APPLE) | ||
| 15 | find_library(FOUNDATION_LIBRARY Foundation) | 15 | find_library(FOUNDATION_LIBRARY Foundation) | ||
| 16 | find_library(APPKIT_LIBRARY AppKit) | ||||
| 16 | endif () | 17 | endif () | ||
| 17 | 18 | | |||
| 18 | set(kritaui_LIB_SRCS | 19 | set(kritaui_LIB_SRCS | ||
| 19 | canvas/kis_canvas_widget_base.cpp | 20 | canvas/kis_canvas_widget_base.cpp | ||
| 20 | canvas/kis_canvas2.cpp | 21 | canvas/kis_canvas2.cpp | ||
| 21 | canvas/kis_canvas_updates_compressor.cpp | 22 | canvas/kis_canvas_updates_compressor.cpp | ||
| 22 | canvas/kis_canvas_controller.cpp | 23 | canvas/kis_canvas_controller.cpp | ||
| 23 | canvas/kis_paintop_transformation_connector.cpp | 24 | canvas/kis_paintop_transformation_connector.cpp | ||
| ▲ Show 20 Lines • Show All 396 Lines • ▼ Show 20 Line(s) | 419 | set(kritaui_LIB_SRCS | |||
| 420 | input/wintab/kis_tablet_support_x11.cpp | 421 | input/wintab/kis_tablet_support_x11.cpp | ||
| 421 | input/wintab/qxcbconnection_xi2.cpp | 422 | input/wintab/qxcbconnection_xi2.cpp | ||
| 422 | input/wintab/qxcbconnection.cpp | 423 | input/wintab/qxcbconnection.cpp | ||
| 423 | input/wintab/kis_xi2_event_filter.cpp | 424 | input/wintab/kis_xi2_event_filter.cpp | ||
| 424 | ) | 425 | ) | ||
| 425 | endif() | 426 | endif() | ||
| 426 | endif() | 427 | endif() | ||
| 427 | 428 | | |||
| 429 | if(APPLE) | ||||
| 430 | set(kritaui_LIB_SRCS | ||||
| 431 | ${kritaui_LIB_SRCS} | ||||
| 432 | osx.mm | ||||
| 433 | ) | ||||
| 434 | endif() | ||||
| 428 | 435 | | |||
| 429 | ki18n_wrap_ui(kritaui_LIB_SRCS | 436 | ki18n_wrap_ui(kritaui_LIB_SRCS | ||
| 430 | forms/wdgdlgpngimport.ui | 437 | forms/wdgdlgpngimport.ui | ||
| 431 | forms/wdgfullscreensettings.ui | 438 | forms/wdgfullscreensettings.ui | ||
| 432 | forms/wdgautogradient.ui | 439 | forms/wdgautogradient.ui | ||
| 433 | forms/wdggeneralsettings.ui | 440 | forms/wdggeneralsettings.ui | ||
| 434 | forms/wdgperformancesettings.ui | 441 | forms/wdgperformancesettings.ui | ||
| 435 | forms/wdggenerators.ui | 442 | forms/wdggenerators.ui | ||
| ▲ Show 20 Lines • Show All 83 Lines • ▼ Show 20 Line(s) | |||||
| 519 | if (NOT WIN32 AND NOT APPLE) | 526 | if (NOT WIN32 AND NOT APPLE) | ||
| 520 | target_link_libraries(kritaui ${X11_X11_LIB} | 527 | target_link_libraries(kritaui ${X11_X11_LIB} | ||
| 521 | ${X11_Xinput_LIB} | 528 | ${X11_Xinput_LIB} | ||
| 522 | ${XCB_LIBRARIES}) | 529 | ${XCB_LIBRARIES}) | ||
| 523 | endif() | 530 | endif() | ||
| 524 | 531 | | |||
| 525 | if(APPLE) | 532 | if(APPLE) | ||
| 526 | target_link_libraries(kritaui ${FOUNDATION_LIBRARY}) | 533 | target_link_libraries(kritaui ${FOUNDATION_LIBRARY}) | ||
| 534 | target_link_libraries(kritaui ${APPKIT_LIBRARY}) | ||||
| 527 | endif () | 535 | endif () | ||
| 528 | 536 | | |||
| 529 | 537 | | |||
| 530 | target_link_libraries(kritaui ${OPENEXR_LIBRARIES}) | 538 | target_link_libraries(kritaui ${OPENEXR_LIBRARIES}) | ||
| 531 | 539 | | |||
| 532 | # Add VSync disable workaround | 540 | # Add VSync disable workaround | ||
| 533 | if(NOT WIN32 AND NOT APPLE) | 541 | if(NOT WIN32 AND NOT APPLE) | ||
| 534 | target_link_libraries(kritaui ${CMAKE_DL_LIBS} Qt5::X11Extras) | 542 | target_link_libraries(kritaui ${CMAKE_DL_LIBS} Qt5::X11Extras) | ||
| Show All 26 Lines | |||||