~lubuntu-dev/lxde/liblxqt-mount

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Luís Pereira
  • Date: 2014-06-06 14:13:55 UTC
  • mfrom: (40.1.3)
  • Revision ID: git-v1:d7a0b59a6bc1fd218f3d021306c35dd10b515672
Merge branch 'remove-some-lxqt-dependencies'

* remove-some-lxqt-dependencies:
  Fixes an typo in an CMakeList.txt variable
  Removes the last dependency on liblxqt
  Remove unneeded liblxqt dependencies

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
project(liblxqt-mount)
6
6
 
7
7
set(MAJOR_VERSION 0)
8
 
set(MINOR_VERSION 5)
 
8
set(MINOR_VERSION 7)
9
9
set(PATCH_VERSION 0)
10
 
set(LXQT_MOUNT_VERSION "${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}")
 
10
set(LXQTMOUNT_VERSION "${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}")
11
11
 
12
12
# Set default installation paths
13
13
set(LIB_INSTALL_DIR "lib${LIB_SUFFIX}" CACHE PATH "Installation directory for libraries")
18
18
 
19
19
find_package(X11 REQUIRED QUIET)
20
20
 
21
 
find_package(LXQT REQUIRED)
22
 
include(${LXQT_USE_FILE})
23
 
 
24
21
include_directories (
25
22
    ${CMAKE_CURRENT_BINARY_DIR}
26
23
    ${QT_INCLUDES}
27
24
    ${X11_INCLUDE_DIR}
28
 
    ${LXQT_INCLUDE_DIRS}
29
25
)
30
26
 
31
27
set(lxqtmount_HDRS
56
52
add_library(lxqtmount SHARED ${lxqtmount_SRCS} ${lxqtmount_MOCS})
57
53
 
58
54
target_link_libraries(
59
 
    lxqtmount ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTDBUS_LIBRARY} ${LXQT_LIBRARIES}
 
55
    lxqtmount ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTDBUS_LIBRARY}
60
56
)
61
57
 
62
58
set_target_properties(lxqtmount PROPERTIES
63
 
    VERSION ${LXQT_VERSION}
64
 
    SOVERSION ${LXQT_MAJOR_VERSION}
 
59
    VERSION ${LXQTMOUNT_VERSION}
 
60
    SOVERSION ${MAJOR_VERSION}
65
61
)
66
62
 
67
63
install(TARGETS lxqtmount DESTINATION ${LIB_INSTALL_DIR})