]> git.mxchange.org Git - flightgear.git/blob - utils/TerraSync/CMakeLists.txt
autotools build updated with sgthreads library
[flightgear.git] / utils / TerraSync / CMakeLists.txt
1
2
3 add_executable(terrasync terrasync.cxx)
4
5 target_link_libraries(terrasync
6         ${SIMGEAR_LIBRARIES}
7         ${ZLIB_LIBRARIES}
8     ${WINSOCK_LIBRARY}
9     ${RT_LIBRARY})
10
11 if(LIBSVN_FOUND)
12         target_link_libraries(terrasync ${LIBSVN_LIBRARIES})
13         set_property(TARGET terrasync APPEND PROPERTY COMPILE_FLAGS "${APR_CFLAGS}")
14
15         IF(APPLE)
16             set_property(SOURCE terrasync.cxx PROPERTY COMPILE_FLAGS "-iwithsysroot ${LIBSVN_INCLUDE_DIR}")
17         ELSE()
18             include_directories(${LIBSVN_INCLUDE_DIR})
19         ENDIF(APPLE)
20 endif()
21
22
23 install(TARGETS terrasync RUNTIME DESTINATION bin)