2012-07-09 16:16:20 +04:00
|
|
|
project( ocmod C )
|
|
|
|
|
2012-07-11 20:01:08 +04:00
|
|
|
add_definitions(-DUNIT_TESTING=1)
|
|
|
|
|
|
|
|
find_package(CMocka REQUIRED)
|
|
|
|
|
2012-07-09 16:16:20 +04:00
|
|
|
include_directories(
|
|
|
|
${CMAKE_BINARY_DIR}
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
${CMOCKA_INCLUDE_DIRS}
|
|
|
|
${NEON_INCLUDE_DIRS}
|
2013-01-29 17:58:54 +04:00
|
|
|
${HTTPBF_PUBLIC_INCLUDE_DIRS}
|
2012-07-09 16:16:20 +04:00
|
|
|
)
|
|
|
|
|
|
|
|
|
2013-05-08 20:39:07 +04:00
|
|
|
add_executable(ocmod_test ocmod_test.c ${CMAKE_SOURCE_DIR}/modules/csync_owncloud_recursive_propfind.c
|
|
|
|
${CMAKE_SOURCE_DIR}/modules/csync_owncloud_util.c)
|
2012-07-18 19:00:46 +04:00
|
|
|
|
2013-01-29 17:58:54 +04:00
|
|
|
target_link_libraries(ocmod_test ${CMOCKA_LIBRARIES} ${NEON_LIBRARIES} ${CSYNC_LIBRARY} ${HTTPBF_LIBRARY})
|
2012-07-09 16:16:20 +04:00
|
|
|
|