Build fgfs-master and tgvpf under Windows
This commit is contained in:
parent
2572c4ffab
commit
1a1e984577
2 changed files with 9 additions and 2 deletions
|
@ -28,7 +28,9 @@
|
||||||
|
|
||||||
#include <stdlib.h> // for system()
|
#include <stdlib.h> // for system()
|
||||||
#include <sys/stat.h> // for stat()
|
#include <sys/stat.h> // for stat()
|
||||||
#include <unistd.h> // for stat()
|
#ifndef _MSC_VER
|
||||||
|
# include <unistd.h> // for stat()
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
|
@ -1,10 +1,15 @@
|
||||||
|
|
||||||
add_executable(tgvpf tgvpf.cxx)
|
add_executable(tgvpf tgvpf.cxx)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
set (WINMM_LIB winmm)
|
||||||
|
endif(MSVC)
|
||||||
|
|
||||||
target_link_libraries(tgvpf
|
target_link_libraries(tgvpf
|
||||||
Polygon Geometry Output poly2tri TriangleJRS vpf
|
Polygon Geometry Output poly2tri TriangleJRS vpf
|
||||||
${SIMGEAR_CORE_LIBRARIES}
|
${SIMGEAR_CORE_LIBRARIES}
|
||||||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
||||||
${GPC_LIBRARY})
|
${GPC_LIBRARY}
|
||||||
|
${WINMM_LIB})
|
||||||
|
|
||||||
install(TARGETS tgvpf RUNTIME DESTINATION bin)
|
install(TARGETS tgvpf RUNTIME DESTINATION bin)
|
||||||
|
|
Loading…
Reference in a new issue