mirror of https://github.com/vitalif/grive2
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
664 B
CMake
28 lines
664 B
CMake
cmake_minimum_required(VERSION 2.8)
|
|
project(grive2)
|
|
|
|
include(GNUInstallDirs)
|
|
|
|
# Grive version. remember to update it for every new release!
|
|
set( GRIVE_VERSION "0.5.3" CACHE STRING "Grive version" )
|
|
message(WARNING "Version to build: ${GRIVE_VERSION}")
|
|
|
|
# common compile options
|
|
add_definitions( -DVERSION="${GRIVE_VERSION}" )
|
|
add_definitions( -D_FILE_OFFSET_BITS=64 -std=c++0x )
|
|
if ( APPLE )
|
|
add_definitions( -Doff64_t=off_t )
|
|
endif ( APPLE )
|
|
|
|
find_program(
|
|
HAVE_SYSTEMD systemd
|
|
PATHS /lib/systemd /usr/lib/systemd
|
|
NO_DEFAULT_PATH
|
|
)
|
|
if ( HAVE_SYSTEMD )
|
|
add_subdirectory( systemd )
|
|
endif( HAVE_SYSTEMD )
|
|
|
|
add_subdirectory( libgrive )
|
|
add_subdirectory( grive )
|