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

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

set(kritalibbrush_LIB_SRCS
8
    kis_predefined_brush_factory.cpp
Halla Rempt's avatar
Halla Rempt committed
9
    kis_auto_brush.cpp
10
    kis_boundary.cc
Halla Rempt's avatar
Halla Rempt committed
11
    kis_brush.cpp
Dmitry Kazakov's avatar
Dmitry Kazakov committed
12
    kis_scaling_size_brush.cpp
Halla Rempt's avatar
Halla 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
Halla Rempt's avatar
Halla Rempt committed
18
    kis_imagepipe_brush.cpp
19
    kis_pipebrush_parasite.cpp
20 21
    kis_png_brush.cpp
    kis_svg_brush.cpp
22
    kis_vectoranimated_brush.cpp
23
    kis_vectorbrush_parasite.cpp
24
    kis_qimage_pyramid.cpp
25
    KisSharedQImagePyramid.cpp
Halla Rempt's avatar
Halla Rempt committed
26
    kis_text_brush.cpp
27 28
    kis_auto_brush_factory.cpp
    kis_text_brush_factory.cpp
Halla Rempt's avatar
Halla Rempt committed
29 30
)

31
add_library(kritalibbrush SHARED ${kritalibbrush_LIB_SRCS} )
32
generate_export_header(kritalibbrush BASE_NAME kritabrush EXPORT_MACRO_NAME BRUSH_EXPORT)
Halla Rempt's avatar
Halla Rempt committed
33

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

40 41

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

Halla Rempt's avatar
Halla Rempt committed
47
set_target_properties(kritalibbrush PROPERTIES
48
    VERSION ${GENERIC_KRITA_LIB_VERSION} SOVERSION ${GENERIC_KRITA_LIB_SOVERSION}
Halla Rempt's avatar
Halla Rempt committed
49 50 51 52
)

install(TARGETS kritalibbrush  ${INSTALL_TARGETS_DEFAULT_ARGS})