~elementary-apps/pantheon-files/trunk

473.1.1 by xapantu
CMake port
1
# Check http://elementaryos.org/docs/developer-guide/cmake for documentation
2
2004.1.1 by Corentin Noël
Use CMake the right way.
3
cmake_minimum_required (VERSION 2.8)
4
cmake_policy (VERSION 2.8)
1335.1.1 by David Gomes
Removed need for CMake to check for a C++ compiler.
5
project (pantheon-files C)
1318.1.1 by David Gomes
CMakeLists.txt's code style fixes.
6
enable_testing ()
1035 by Victor Eduardo
Bump vala version to 0.16
7
2004.1.1 by Corentin Noël
Use CMake the right way.
8
include (GNUInstallDirs)
1318.1.1 by David Gomes
CMakeLists.txt's code style fixes.
9
list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
2004.1.1 by Corentin Noël
Use CMake the right way.
10
set (GETTEXT_PACKAGE ${CMAKE_PROJECT_NAME})
11
set (PIXMAP_DIR "${CMAKE_INSTALL_PREFIX}/share/pixmaps/${CMAKE_PROJECT_NAME}/")
1318.1.1 by David Gomes
CMakeLists.txt's code style fixes.
12
set (GNOMELOCALEDIR "${CMAKE_INSTALL_PREFIX}/share/locale/")
2004.1.1 by Corentin Noël
Use CMake the right way.
13
set (PLUGIN_DIR "${CMAKE_INSTALL_FULL_LIBDIR}/${CMAKE_PROJECT_NAME}/plugins/")
14
set (UI_DIR "${CMAKE_INSTALL_PREFIX}/share/${CMAKE_PROJECT_NAME}/ui/")
2569 by Cody Garver
Release 0.3.5
15
set (PACKAGE_VERSION 0.3.5)
16
set (VERSION 0.3.5)
1280.2.18 by Julián Unrrein
Use config.h instead of Config.vala. Fix debug mode again.
17
configure_file (${CMAKE_SOURCE_DIR}/config.h.cmake ${CMAKE_BINARY_DIR}/config.h)
1181.3.1 by Victor
Avoid redefining constants from the Config namespace and fix incorrect values.
18
1318.1.1 by David Gomes
CMakeLists.txt's code style fixes.
19
add_definitions ("-DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\"")
1424.1.4 by Jeremy Wootten
Remove commented out lines, some reformatting
20
add_definitions ("-w")
1018 by Mario Guerriero
Added LIB_ONLY argument to CMake in order to be able to build lib only to make the package libfiles.
21
22
option (LIB_ONLY "Build libcore and libwidgets only" FALSE)
1813.1.1 by donadigo
Initial commit; new custom elementary-style file chooser added as gtk-module; test with: GTK_MODULES=pantheon-files-module app_cmd; original branch: lp:~tintou/pantheon-files/gtk-module
23
option (MODULE_ONLY "Build only custom gtk filechooser dialog module" FALSE)
1018 by Mario Guerriero
Added LIB_ONLY argument to CMake in order to be able to build lib only to make the package libfiles.
24
1318.1.1 by David Gomes
CMakeLists.txt's code style fixes.
25
find_package (Vala REQUIRED)
26
include (ValaVersion)
2359.1.1 by Rico Tzschichholz
Remove gtk+-3.0.vapi and use the one shipped with valac 0.34.0
27
ensure_vala_version ("0.34.0" MINIMUM)
1318.1.1 by David Gomes
CMakeLists.txt's code style fixes.
28
include (ValaPrecompile)
1035 by Victor Eduardo
Bump vala version to 0.16
29
1813.1.1 by donadigo
Initial commit; new custom elementary-style file chooser added as gtk-module; test with: GTK_MODULES=pantheon-files-module app_cmd; original branch: lp:~tintou/pantheon-files/gtk-module
30
if (MODULE_ONLY)
1813.1.4 by donadigo
Initial commit; filechooser gtk module
31
    add_subdirectory (filechooser-module)
1813.1.1 by donadigo
Initial commit; new custom elementary-style file chooser added as gtk-module; test with: GTK_MODULES=pantheon-files-module app_cmd; original branch: lp:~tintou/pantheon-files/gtk-module
32
ELSEIF (LIB_ONLY)
1018 by Mario Guerriero
Added LIB_ONLY argument to CMake in order to be able to build lib only to make the package libfiles.
33
    add_subdirectory (libcore)
34
    add_subdirectory (libwidgets)
35
ELSE ()
36
    add_subdirectory (src)
37
    add_subdirectory (data)
1562.1.1 by xapantu
Rename more elements marlin -> pantheon-files
38
    add_subdirectory (pantheon-files-daemon)
1018 by Mario Guerriero
Added LIB_ONLY argument to CMake in order to be able to build lib only to make the package libfiles.
39
    add_subdirectory (libcore)
40
    add_subdirectory (libwidgets)
41
    add_subdirectory (plugins)
1813.1.4 by donadigo
Initial commit; filechooser gtk module
42
    add_subdirectory (filechooser-module)
1018 by Mario Guerriero
Added LIB_ONLY argument to CMake in order to be able to build lib only to make the package libfiles.
43
    add_subdirectory (po)
1813.1.1 by donadigo
Initial commit; new custom elementary-style file chooser added as gtk-module; test with: GTK_MODULES=pantheon-files-module app_cmd; original branch: lp:~tintou/pantheon-files/gtk-module
44
ENDIF ()