nextcloud-desktop/csync/CMakeLists.txt

58 lines
1.3 KiB
Text
Raw Normal View History

2008-02-27 20:56:47 +03:00
2008-05-06 12:51:12 +04:00
2008-02-27 20:56:47 +03:00
# global needed variables
set(APPLICATION_NAME "ocsync")
set(APPLICATION_VERSION_MAJOR "0")
set(APPLICATION_VERSION_MINOR "91")
2014-02-04 19:21:34 +04:00
set(APPLICATION_VERSION_PATCH "5")
set(APPLICATION_VERSION "${APPLICATION_VERSION_MAJOR}.${APPLICATION_VERSION_MINOR}.${APPLICATION_VERSION_PATCH}")
2013-08-08 18:00:20 +04:00
set(LIBRARY_VERSION "0.2.1")
set(LIBRARY_SOVERSION "0")
2008-02-27 20:56:47 +03:00
# add definitions
include(DefineCMakeDefaults)
2011-10-17 21:07:52 +04:00
include(DefinePlatformDefaults)
2008-02-27 20:56:47 +03:00
include(DefineCompilerFlags)
include(DefineOptions.cmake)
2012-02-21 20:43:30 +04:00
include(DefineInstallationPaths)
2008-02-27 20:56:47 +03:00
# add macros
include(MacroAddPlugin)
include(MacroCopyFile)
2008-02-27 20:56:47 +03:00
if (NOT WIN32)
find_package(Iconv)
endif (NOT WIN32)
find_package(CMocka)
if (CMOCKA_FOUND AND UNIT_TESTING)
include(AddCMockaTest)
endif (CMOCKA_FOUND AND UNIT_TESTING)
2008-02-27 20:56:47 +03:00
include(ConfigureChecks.cmake)
set(SOURCE_DIR ${CMAKE_SOURCE_DIR})
include_directories(${CMAKE_CURRENT_BINARY_DIR})
2008-02-27 20:56:47 +03:00
macro_copy_file(${CMAKE_CURRENT_SOURCE_DIR}/CTestCustom.cmake ${CMAKE_CURRENT_BINARY_DIR}/CTestCustom.cmake)
2008-07-28 13:49:56 +04:00
if (MEM_NULL_TESTS)
add_definitions(-DCSYNC_MEM_NULL_TESTS)
endif (MEM_NULL_TESTS)
2008-02-27 20:56:47 +03:00
add_subdirectory(src)
if (CMOCKA_FOUND AND UNIT_TESTING)
add_subdirectory(tests)
endif (CMOCKA_FOUND AND UNIT_TESTING)
2008-02-27 20:56:47 +03:00
configure_file(config_csync.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config_csync.h)
configure_file(config_test.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config_test.h)