Make tsync part of libSimGearCore when building shared libraries
This commit is contained in:
parent
63081c94a1
commit
ae0b8eb3b3
@ -59,17 +59,18 @@ if(SIMGEAR_SHARED)
|
||||
target_link_libraries(SimGearCore ${ZLIB_LIBRARY} ${RT_LIBRARY})
|
||||
install(TARGETS SimGearCore LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
|
||||
if(LIBSVN_FOUND)
|
||||
add_definitions(${APR_CFLAGS})
|
||||
|
||||
IF(APPLE)
|
||||
set_property(SOURCE scene/tsync/terrasync.cxx PROPERTY COMPILE_FLAGS "-iwithsysroot ${LIBSVN_INCLUDE_DIR}")
|
||||
ELSE()
|
||||
include_directories(${LIBSVN_INCLUDE_DIR})
|
||||
ENDIF(APPLE)
|
||||
target_link_libraries(SimGearCore ${LIBSVN_LIBRARIES})
|
||||
endif(LIBSVN_FOUND)
|
||||
|
||||
if(NOT SIMGEAR_HEADLESS)
|
||||
if(LIBSVN_FOUND)
|
||||
add_definitions(${APR_CFLAGS})
|
||||
|
||||
IF(APPLE)
|
||||
set_property(SOURCE scene/tsync/terrasync.cxx PROPERTY COMPILE_FLAGS "-iwithsysroot ${LIBSVN_INCLUDE_DIR}")
|
||||
ELSE()
|
||||
include_directories(${LIBSVN_INCLUDE_DIR})
|
||||
ENDIF(APPLE)
|
||||
endif(LIBSVN_FOUND)
|
||||
|
||||
list(APPEND sceneSources scene/util/SGCoreOSGDependant.cxx)
|
||||
|
||||
add_library(SimGearScene SHARED ${sceneSources})
|
||||
@ -87,10 +88,6 @@ if(SIMGEAR_SHARED)
|
||||
${OPENGL_LIBRARY}
|
||||
${JPEG_LIBRARY})
|
||||
|
||||
if(LIBSVN_FOUND)
|
||||
target_link_libraries(SimGearScene ${LIBSVN_LIBRARIES})
|
||||
endif(LIBSVN_FOUND)
|
||||
|
||||
install(TARGETS SimGearScene LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
endif()
|
||||
|
||||
|
@ -19,4 +19,4 @@ if(LIBSVN_FOUND)
|
||||
|
||||
endif()
|
||||
|
||||
simgear_scene_component(tsync scene/tsync "${SOURCES}" "${HEADERS}")
|
||||
simgear_component(tsync scene/tsync "${SOURCES}" "${HEADERS}")
|
||||
|
@ -688,7 +688,7 @@ SGTerraSync::~SGTerraSync()
|
||||
void SGTerraSync::init()
|
||||
{
|
||||
_refreshDisplay = _terraRoot->getNode("refresh-display",true);
|
||||
_terraRoot->getNode("built-in-svn-available",true)->setBoolValue(svn_built_in_available);
|
||||
_terraRoot->setBoolValue("built-in-svn-available",svn_built_in_available);
|
||||
reinit();
|
||||
}
|
||||
|
||||
@ -711,7 +711,7 @@ void SGTerraSync::reinit()
|
||||
#ifdef HAVE_SVN_CLIENT_H
|
||||
_svnThread->setUseBuiltin(_terraRoot->getBoolValue("use-built-in-svn",true));
|
||||
#else
|
||||
_terraRoot->getNode("use-built-in-svn",true)->setBoolValue(false);
|
||||
_terraRoot->setBoolValue("use-built-in-svn",false);
|
||||
#endif
|
||||
_svnThread->setUseSvn(_terraRoot->getBoolValue("use-svn",true));
|
||||
_svnThread->setExtSvnUtility(_terraRoot->getStringValue("ext-svn-utility","svn"));
|
||||
|
Loading…
Reference in New Issue
Block a user