]> git.mxchange.org Git - flightgear.git/blobdiff - utils/TerraSync/CMakeLists.txt
Fix for bug #204 and #222 by Bertrand Coconnier; NaNs (bug #222) were basically gener...
[flightgear.git] / utils / TerraSync / CMakeLists.txt
index ae3af2f994397dae1ea5eb89b77a6c51e2bda008..88b208c1661321ea4d609b8b98cb462d453ddd6a 100644 (file)
@@ -1,14 +1,21 @@
 
-find_package(SvnClient)
-
+       
 add_executable(terrasync terrasync.cxx)
 
 target_link_libraries(terrasync 
        ${SIMGEAR_LIBRARIES}
-       ${ZLIB_LIBRARIES})
+       ${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()