Fix Windows dependencies
SimgGear always needs "winmm" on Windows (due to timeGetTime in sgtimestamp.cxx)
This commit is contained in:
parent
da73dd97d3
commit
ecb2e77e5b
2 changed files with 22 additions and 24 deletions
|
@ -193,7 +193,8 @@ else(SIMGEAR_SHARED)
|
|||
set(SIMGEAR_CORE_LIBRARY_DEPENDENCIES
|
||||
${CMAKE_THREAD_LIBS_INIT}
|
||||
${ZLIB_LIBRARY}
|
||||
${LIBSVN_LIBRARIES})
|
||||
${LIBSVN_LIBRARIES}
|
||||
${WINMM_LIBRARY})
|
||||
|
||||
set(SIMGEAR_SCENE_LIBRARY_DEPENDENCIES
|
||||
${ALUT_LIBRARY}
|
||||
|
|
|
@ -1,38 +1,35 @@
|
|||
|
||||
add_executable(GPSsmooth gps.cxx gps.hxx gps_main.cxx)
|
||||
add_executable(MIDGsmooth MIDG-II.cxx MIDG-II.hxx MIDG_main.cxx)
|
||||
add_executable(UGsmooth
|
||||
add_executable(GPSsmooth
|
||||
gps.cxx gps.hxx
|
||||
gps_main.cxx
|
||||
)
|
||||
|
||||
add_executable(MIDGsmooth
|
||||
MIDG-II.cxx MIDG-II.hxx
|
||||
MIDG_main.cxx
|
||||
)
|
||||
|
||||
add_executable(UGsmooth
|
||||
UGear.cxx UGear.hxx
|
||||
UGear_command.cxx UGear_command.hxx
|
||||
UGear_telnet.cxx UGear_telnet.hxx
|
||||
UGear_main.cxx
|
||||
UGear_telnet.cxx
|
||||
UGear_telnet.hxx)
|
||||
)
|
||||
|
||||
target_link_libraries(GPSsmooth
|
||||
${SIMGEAR_CORE_LIBRARIES}
|
||||
${PLIB_SG_LIBRARY}
|
||||
${PLIB_UL_LIBRARY}
|
||||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
||||
${ZLIB_LIBRARY}
|
||||
${WINMM_LIBRARY}
|
||||
${SIMGEAR_CORE_LIBRARIES}
|
||||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
||||
)
|
||||
|
||||
target_link_libraries(MIDGsmooth
|
||||
${SIMGEAR_CORE_LIBRARIES}
|
||||
${PLIB_SG_LIBRARY}
|
||||
${PLIB_UL_LIBRARY}
|
||||
${WINMM_LIBRARY}
|
||||
${ZLIB_LIBRARY}
|
||||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
||||
${SIMGEAR_CORE_LIBRARIES}
|
||||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
||||
)
|
||||
|
||||
target_link_libraries(UGsmooth
|
||||
${SIMGEAR_CORE_LIBRARIES}
|
||||
${PLIB_SG_LIBRARY}
|
||||
${PLIB_UL_LIBRARY}
|
||||
${WINMM_LIBRARY}
|
||||
${ZLIB_LIBRARY}
|
||||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
||||
${SIMGEAR_CORE_LIBRARIES}
|
||||
${ZLIB_LIBRARY}
|
||||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
||||
)
|
||||
|
||||
install(TARGETS GPSsmooth MIDGsmooth UGsmooth RUNTIME DESTINATION bin)
|
||||
|
|
Loading…
Reference in a new issue