1
0
Fork 0

Add the hla stuff to the cmake build system.

This commit is contained in:
Mathias Froehlich 2010-12-26 13:55:52 +01:00
parent 70dd6279a7
commit 3134acca83
5 changed files with 35 additions and 8 deletions

View file

@ -163,6 +163,11 @@ endif(HAVE_RT)
endif(NOT CLOCK_GETTIME_IN_LIBC)
endif(HAVE_CLOCK_GETTIME)
find_package(RTI)
if(RTI_FOUND)
set(FG_HAVE_HLA 1)
endif()
if(CMAKE_COMPILER_IS_GNUCXX)
set(WARNING_FLAGS -Wall)
endif(CMAKE_COMPILER_IS_GNUCXX)

View file

@ -33,3 +33,5 @@
#cmakedefine HAVE_LIBSVN_CLIENT_1
#define PKGLIBDIR "@PKGLIBDIR"
#cmakedefine FG_HAVE_HLA

View file

@ -30,8 +30,17 @@ get_property(FG_LIBS GLOBAL PROPERTY FG_LIBS)
#message(STATUS "OSG libs ${OPENSCENEGRAPH_LIBRARIES}")
#message(STATUS "SG libs ${SIMGEAR_LIBRARIES}")
if(RTI_FOUND)
find_sg_component(hla13 SIMGEAR_LIBRARIES)
find_sg_component(hla SIMGEAR_LIBRARIES)
set(HLA_LIBRARIES ${RTI_LIBRARIES})
else()
set(HLA_LIBRARIES "")
endif()
target_link_libraries(fgfs
${FG_LIBS}
${HLA_LIBRARIES}
${SIMGEAR_LIBRARIES}
${OPENSCENEGRAPH_LIBRARIES}
${OPENAL_LIBRARY}

View file

@ -30,3 +30,7 @@ set(SOURCES
flightgear_component(Network "${SOURCES}")
if(RTI_FOUND)
add_subdirectory(HLA)
endif()

View file

@ -0,0 +1,7 @@
include(FlightGearComponent)
set(SOURCES
hla.cxx
)
flightgear_component(HLA "${SOURCES}")