1
0
Fork 0

Cmake: finally build terrasync under Windows

This commit is contained in:
Frederic Bouvier 2011-01-05 23:47:08 +01:00
parent 6939abc9af
commit b0a61f6110
2 changed files with 7 additions and 2 deletions

View file

@ -5,7 +5,8 @@ add_executable(terrasync terrasync.cxx)
target_link_libraries(terrasync target_link_libraries(terrasync
${SIMGEAR_LIBRARIES} ${SIMGEAR_LIBRARIES}
${ZLIB_LIBRARIES}) ${ZLIB_LIBRARIES}
${WINSOCK_LIBRARY})
if(HAVE_SVN_CLIENT) if(HAVE_SVN_CLIENT)
target_link_libraries(terrasync ${SVN_CLIENT_LIBRARIES}) target_link_libraries(terrasync ${SVN_CLIENT_LIBRARIES})

View file

@ -33,7 +33,11 @@
#include <time.h> #include <time.h>
#include <unistd.h> #include <unistd.h>
#elif defined(_MSC_VER) #elif defined(_MSC_VER)
#include <io.h> # include <io.h>
# ifndef HAVE_SVN_CLIENT_H
# include <time.h>
# include <process.h>
# endif
#endif #endif
#include <stdlib.h> // atoi() atof() abs() system() #include <stdlib.h> // atoi() atof() abs() system()