]> git.mxchange.org Git - flightgear.git/commitdiff
Fix Windows dependencies
authorThorstenB <brehmt@gmail.com>
Sat, 25 Feb 2012 00:05:39 +0000 (01:05 +0100)
committerThorstenB <brehmt@gmail.com>
Sat, 25 Feb 2012 00:05:39 +0000 (01:05 +0100)
SimgGear always needs "winmm" on Windows (due to timeGetTime in sgtimestamp.cxx)

CMakeModules/FindSimGear.cmake
utils/GPSsmooth/CMakeLists.txt

index 901b63c6864ca283533b9a0f48ec2fd1a6adbc8b..a1602790c63d1be996a0f18d8c4577f8536dedae 100644 (file)
@@ -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} 
index 47bc1d54f69a084a0aa7f3944f2b2afdeb995657..7992ef05d500a702e547c07a6031920e74078188 100644 (file)
@@ -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)