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)