mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 22:46:04 +03:00
Make OWNCLOUD_CLIENT compile flag depending on the compile target.
This commit is contained in:
parent
69e6096d14
commit
125d2a4533
2 changed files with 6 additions and 3 deletions
|
@ -58,9 +58,11 @@ include(CTest)
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
|
||||||
#
|
#
|
||||||
# Uncomment this to build the ownCloud client.
|
# This cmake builds two targets (aka apps), mirall and owncloud. For the owncloud
|
||||||
# Comment this to build the original mirall client
|
# target, OWNCLOUD_CLIENT needs to be a compile flag. It is set in src/CMakeLists.txt
|
||||||
add_definitions(-DOWNCLOUD_CLIENT)
|
# 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.
|
# Handle Translations, pick all mirall_* files from trans directory.
|
||||||
file( GLOB TRANS_FILES ${CMAKE_SOURCE_DIR}/translations/mirall_*.ts)
|
file( GLOB TRANS_FILES ${CMAKE_SOURCE_DIR}/translations/mirall_*.ts)
|
||||||
|
|
|
@ -123,6 +123,7 @@ if(NOT BUILD_OWNCLOUD_OSX_BUNDLE)
|
||||||
|
|
||||||
# we may not add MACOSX_BUNDLE here, if not building one
|
# we may not add MACOSX_BUNDLE here, if not building one
|
||||||
add_executable(owncloud WIN32 main.cpp ${final_src})
|
add_executable(owncloud WIN32 main.cpp ${final_src})
|
||||||
|
set_target_properties( owncloud PROPERTIES COMPILE_DEFINITIONS OWNCLOUD_CLIENT)
|
||||||
# add_executable(owncloud main.cpp ${final_src})
|
# add_executable(owncloud main.cpp ${final_src})
|
||||||
|
|
||||||
# mirall is not built for the bundle
|
# mirall is not built for the bundle
|
||||||
|
|
Loading…
Reference in a new issue