From: Thomas Geymayer Date: Tue, 11 Jun 2013 18:26:07 +0000 (+0200) Subject: Use TEST_LIBS to include all libraries needed (on Mac) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=830fb3b752b67e2c8f86ed46517741851b5ca3f6;p=simgear.git Use TEST_LIBS to include all libraries needed (on Mac) --- diff --git a/simgear/package/CMakeLists.txt b/simgear/package/CMakeLists.txt index 977b285d..1822205c 100644 --- a/simgear/package/CMakeLists.txt +++ b/simgear/package/CMakeLists.txt @@ -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)