From 1a1e984577ede380ef68de7986e874d1b57cf790 Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Wed, 26 Oct 2011 22:48:14 +0200 Subject: [PATCH] Build fgfs-master and tgvpf under Windows --- src/BuildTiles/Main/master.cxx | 4 +++- src/Prep/TGVPF/CMakeLists.txt | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/BuildTiles/Main/master.cxx b/src/BuildTiles/Main/master.cxx index 57a669da..55aa024f 100644 --- a/src/BuildTiles/Main/master.cxx +++ b/src/BuildTiles/Main/master.cxx @@ -28,7 +28,9 @@ #include // for system() #include // for stat() -#include // for stat() +#ifndef _MSC_VER +# include // for stat() +#endif #include #include diff --git a/src/Prep/TGVPF/CMakeLists.txt b/src/Prep/TGVPF/CMakeLists.txt index 76e61d69..72535b97 100644 --- a/src/Prep/TGVPF/CMakeLists.txt +++ b/src/Prep/TGVPF/CMakeLists.txt @@ -1,10 +1,15 @@ add_executable(tgvpf tgvpf.cxx) +if(MSVC) + set (WINMM_LIB winmm) +endif(MSVC) + target_link_libraries(tgvpf Polygon Geometry Output poly2tri TriangleJRS vpf ${SIMGEAR_CORE_LIBRARIES} ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES} - ${GPC_LIBRARY}) + ${GPC_LIBRARY} + ${WINMM_LIB}) install(TARGETS tgvpf RUNTIME DESTINATION bin)