Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
1 | # | 1 | # | ||
---|---|---|---|---|---|
2 | # Copyright (c) 2010-2015, Gilles Caulier, <caulier dot gilles at gmail dot com> | 2 | # Copyright (c) 2010-2015, Gilles Caulier, <caulier dot gilles at gmail dot com> | ||
3 | # | 3 | # | ||
4 | # Redistribution and use is allowed according to the terms of the BSD license. | 4 | # Redistribution and use is allowed according to the terms of the BSD license. | ||
5 | # For details see the accompanying COPYING-CMAKE-SCRIPTS file. | 5 | # For details see the accompanying COPYING-CMAKE-SCRIPTS file. | ||
6 | 6 | | |||
7 | kde_enable_exceptions() | 7 | kde_enable_exceptions() | ||
8 | 8 | | |||
9 | include_directories(${EXIV2_INCLUDE_DIR}) | | |||
10 | include_directories(${CMAKE_CURRENT_BINARY_DIR}/..) | 9 | include_directories(${CMAKE_CURRENT_BINARY_DIR}/..) | ||
11 | 10 | | |||
12 | add_definitions(${EXIV2_DEFINITIONS}) | 11 | add_definitions(${EXIV2_DEFINITIONS}) | ||
13 | 12 | | |||
14 | if( WIN32 ) | 13 | if( WIN32 ) | ||
15 | add_definitions( -DEXV_HAVE_DLL ) | 14 | add_definitions( -DEXV_HAVE_DLL ) | ||
16 | endif() | 15 | endif() | ||
17 | 16 | | |||
Show All 32 Lines | |||||
50 | 49 | | |||
51 | target_include_directories(KF5KExiv2 INTERFACE | 50 | target_include_directories(KF5KExiv2 INTERFACE | ||
52 | "$<INSTALL_INTERFACE:${KF5_INCLUDE_INSTALL_DIR}/KExiv2;${KF5_INCLUDE_INSTALL_DIR}/KExiv2/kexiv2>" | 51 | "$<INSTALL_INTERFACE:${KF5_INCLUDE_INSTALL_DIR}/KExiv2;${KF5_INCLUDE_INSTALL_DIR}/KExiv2/kexiv2>" | ||
53 | "$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/..>" | 52 | "$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/..>" | ||
54 | ) | 53 | ) | ||
55 | 54 | | |||
56 | target_link_libraries(KF5KExiv2 | 55 | target_link_libraries(KF5KExiv2 | ||
57 | PRIVATE | 56 | PRIVATE | ||
58 | ${EXIV2_LIBRARIES} | 57 | LibExiv2::LibExiv2 | ||
59 | PUBLIC | 58 | PUBLIC | ||
60 | Qt5::Core | 59 | Qt5::Core | ||
61 | Qt5::Gui | 60 | Qt5::Gui | ||
62 | ) | 61 | ) | ||
63 | 62 | | |||
64 | if( WIN32 ) | 63 | if( WIN32 ) | ||
65 | target_link_libraries( KF5KExiv2 ${EXPAT_LIBRARIES} ) | 64 | target_link_libraries( KF5KExiv2 ${EXPAT_LIBRARIES} ) | ||
66 | endif() | 65 | endif() | ||
Show All 30 Lines |