]> git.mxchange.org Git - simgear.git/commitdiff
Use TEST_LIBS to include all libraries needed (on Mac)
authorThomas Geymayer <tomgey@gmail.com>
Tue, 11 Jun 2013 18:26:07 +0000 (20:26 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Tue, 11 Jun 2013 18:26:07 +0000 (20:26 +0200)
simgear/package/CMakeLists.txt

index 977b285dc3795b74aec4dba8c68d46e2de97bd08..1822205c1a9a5a90a31e5333abb61680b53b9280 100644 (file)
@@ -22,20 +22,8 @@ set(SOURCES
 
 simgear_component(package package "${SOURCES}" "${HEADERS}")
 
-if (SIMGEAR_SHARED)
-    set(APP_LIBS SimGearCore)
-else()
-    set(APP_LIBS
-        SimGearCore
-        ${CMAKE_THREAD_LIBS_INIT}
-        ${WINSOCK_LIBRARY}
-        ${ZLIB_LIBRARY}
-        ${RT_LIBRARY}
-    )
-endif()
-
 add_executable(sg_pkgutil pkgutil.cxx)
-target_link_libraries(sg_pkgutil ${APP_LIBS})
+target_link_libraries(sg_pkgutil ${TEST_LIBS})
 
 if(ENABLE_TESTS)