-find_package(SvnClient)
-
+
add_executable(terrasync terrasync.cxx)
target_link_libraries(terrasync
${ZLIB_LIBRARIES}
${WINSOCK_LIBRARY})
-if(HAVE_SVN_CLIENT)
- target_link_libraries(terrasync ${SVN_CLIENT_LIBRARIES})
+if(LIBSVN_FOUND)
+ target_link_libraries(terrasync ${LIBSVN_LIBRARIES})
+ set_property(TARGET terrasync APPEND PROPERTY COMPILE_FLAGS "${APR_CFLAGS}")
+
+ IF(APPLE)
+ set_property(SOURCE terrasync.cxx PROPERTY COMPILE_FLAGS "-iwithsysroot ${LIBSVN_INCLUDE_DIR}")
+ ELSE()
+ include_directories(${LIBSVN_INCLUDE_DIR})
+ ENDIF(APPLE)
endif()