5
set( VERSION_MINOR 10 )
6
set( VERSION_PATCH 10 )
8
8
cmake_minimum_required( VERSION 2.6 )
10
find_package(KDE4 REQUIRED)
10
set( QT_MIN_VERSION 4.7.0 )
11
set( KDE_MIN_VERSION 4.4.0 )
12
find_package( KDE4 REQUIRED )
13
find_package( Msgfmt REQUIRED )
14
find_package( Gettext REQUIRED )
12
16
include(KDE4Defaults)
13
17
include(MacroLibrary)
31
35
${CMAKE_CURRENT_BINARY_DIR}/config.h )
33
37
add_subdirectory( core )
38
add_subdirectory( helpers )
34
39
add_subdirectory( smb4k )
35
add_subdirectory( utilities )
40
add_subdirectory( data )
36
41
add_subdirectory( po )
42
add_subdirectory( doc-translations )
37
43
add_subdirectory( doc )
38
add_subdirectory( data )
40
########### Konqueror plugin ############
42
# The decision what to do with the Konqueror plugin has been
43
# postponed. It has not been ported to KDE 4 yet, so it is
46
# option( COMPILE_KONQPLUGIN "Compile Smb4K with Konqueror plugin" OFF )
45
########### Header files ################
47
option( INSTALL_HEADER_FILES "Install header files" OFF )
49
if ( INSTALL_HEADER_FILES )
50
message( STATUS "Installing Smb4K's core header files (-DINSTALL_HEADER_FILES=false to disable)" )
51
elseif ( NOT INSTALL_HEADER_FILES )
52
message( STATUS "Not installing Smb4K's core header files (-DINSTALL_HEADER_FILES=true to enable)" )
53
endif( INSTALL_HEADER_FILES )
55
########### KIO slave ###################
57
#option( COMPILE_KIOSLAVE "Compile Smb4K with KIO slave" OFF )
48
# if( COMPILE_KONQPLUGIN )
49
# message( STATUS "Building Konqueror plugin (-DCOMPILE_KONQPLUGIN=false to disable)" )
50
# add_subdirectory( plugin )
51
# elseif( NOT COMPILE_KONQPLUGIN )
52
# message( STATUS "Building without Konqueror plugin (-DCOMPILE_KONQPLUGIN=true to enable)" )
53
# endif( COMPILE_KONQPLUGIN )
59
#if ( COMPILE_KIOSLAVE )
60
# message( STATUS "Building with KIO slave (-DCOMPILE_KIOSLAVE=false to disable)" )
61
# add_subdirectory( kioslave )
62
#elseif( NOT COMPILE_KIOSLAVE )
63
# message( STATUS "Building without KIO slave (-DCOMPILE_KIOSLAVE=true to enable)" )
64
#endif( COMPILE_KIOSLAVE )
55
66
########### install files ###############
67
78
set( CPACK_SOURCE_GENERATOR TBZ2 )
68
79
set( CPACK_SOURCE_IGNORE_FILES
70
"^${PROJECT_SOURCE_DIR}.*/CVS/"
71
81
"^${PROJECT_SOURCE_DIR}/Messages.sh"
72
82
"^${PROJECT_SOURCE_DIR}/po/scripts/"
73
83
"^${PROJECT_SOURCE_DIR}/*.kdev4"
84
"^${PROJECT_SOURCE_DIR}.*/.svn/"
74
85
"^${PROJECT_SOURCE_DIR}/build/" )