CMakeLists.txt 1.3 KB
Newer Older
Boudewijn Rempt's avatar
Boudewijn Rempt committed
1
add_subdirectory( tests )
2

3
include_directories(SYSTEM
4 5
    ${EIGEN3_INCLUDE_DIR}
)
Boudewijn Rempt's avatar
Boudewijn Rempt committed
6 7

set(kritalibbrush_LIB_SRCS
8
    kis_predefined_brush_factory.cpp
Boudewijn Rempt's avatar
Boudewijn Rempt committed
9
    kis_auto_brush.cpp
10
    kis_boundary.cc
Boudewijn Rempt's avatar
Boudewijn Rempt committed
11
    kis_brush.cpp
Dmitry Kazakov's avatar
Dmitry Kazakov committed
12
    kis_scaling_size_brush.cpp
Boudewijn Rempt's avatar
Boudewijn Rempt committed
13 14 15
    kis_brush_registry.cpp
    kis_brush_server.cpp
    kis_gbr_brush.cpp
16 17
    kis_abr_brush.cpp
    kis_abr_brush_collection.cpp
Boudewijn Rempt's avatar
Boudewijn Rempt committed
18
    kis_imagepipe_brush.cpp
19
    kis_pipebrush_parasite.cpp
20 21
    kis_png_brush.cpp
    kis_svg_brush.cpp
22
    kis_qimage_pyramid.cpp
23
    KisSharedQImagePyramid.cpp
Boudewijn Rempt's avatar
Boudewijn Rempt committed
24
    kis_text_brush.cpp
25 26
    kis_auto_brush_factory.cpp
    kis_text_brush_factory.cpp
Boudewijn Rempt's avatar
Boudewijn Rempt committed
27 28
)

29
add_library(kritalibbrush SHARED ${kritalibbrush_LIB_SRCS} )
30
generate_export_header(kritalibbrush BASE_NAME kritabrush EXPORT_MACRO_NAME BRUSH_EXPORT)
Boudewijn Rempt's avatar
Boudewijn Rempt committed
31

32
if (WIN32)
33
    target_link_libraries(kritalibbrush kritaimage Qt5::Svg ${WIN32_PLATFORM_NET_LIBS})
34
else ()
35
    target_link_libraries(kritalibbrush kritaimage Qt5::Svg)
36
endif ()
37

38 39

if(HAVE_VC)
40
  include_directories(SYSTEM ${Vc_INCLUDE_DIR})
41
  target_link_libraries(kritalibbrush  ${Vc_LIBRARIES})
42
#  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Vc_DEFINITIONS}")
43
endif()
44

Boudewijn Rempt's avatar
Boudewijn Rempt committed
45
set_target_properties(kritalibbrush PROPERTIES
46
    VERSION ${GENERIC_KRITA_LIB_VERSION} SOVERSION ${GENERIC_KRITA_LIB_SOVERSION}
Boudewijn Rempt's avatar
Boudewijn Rempt committed
47 48 49 50
)

install(TARGETS kritalibbrush  ${INSTALL_TARGETS_DEFAULT_ARGS})