Make OWNCLOUD_CLIENT compile flag depending on the compile target.

This commit is contained in:
Klaas Freitag 2012-05-02 15:45:38 +02:00
parent 69e6096d14
commit 125d2a4533
2 changed files with 6 additions and 3 deletions

View file

@ -58,9 +58,11 @@ include(CTest)
enable_testing()
#
# Uncomment this to build the ownCloud client.
# Comment this to build the original mirall client
add_definitions(-DOWNCLOUD_CLIENT)
# This cmake builds two targets (aka apps), mirall and owncloud. For the owncloud
# target, OWNCLOUD_CLIENT needs to be a compile flag. It is set in src/CMakeLists.txt
# but if that fails because cmake is too old, uncomment this here if you want to build
# owncloud.
# add_definitions(-DOWNCLOUD_CLIENT)
# Handle Translations, pick all mirall_* files from trans directory.
file( GLOB TRANS_FILES ${CMAKE_SOURCE_DIR}/translations/mirall_*.ts)

View file

@ -123,6 +123,7 @@ if(NOT BUILD_OWNCLOUD_OSX_BUNDLE)
# we may not add MACOSX_BUNDLE here, if not building one
add_executable(owncloud WIN32 main.cpp ${final_src})
set_target_properties( owncloud PROPERTIES COMPILE_DEFINITIONS OWNCLOUD_CLIENT)
# add_executable(owncloud main.cpp ${final_src})
# mirall is not built for the bundle