Add the hla stuff to the cmake build system.
This commit is contained in:
parent
70dd6279a7
commit
3134acca83
5 changed files with 35 additions and 8 deletions
|
@ -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)
|
||||
|
|
|
@ -33,3 +33,5 @@
|
|||
#cmakedefine HAVE_LIBSVN_CLIENT_1
|
||||
|
||||
#define PKGLIBDIR "@PKGLIBDIR"
|
||||
|
||||
#cmakedefine FG_HAVE_HLA
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -30,3 +30,7 @@ set(SOURCES
|
|||
|
||||
flightgear_component(Network "${SOURCES}")
|
||||
|
||||
if(RTI_FOUND)
|
||||
add_subdirectory(HLA)
|
||||
endif()
|
||||
|
||||
|
|
7
src/Network/HLA/CMakeLists.txt
Normal file
7
src/Network/HLA/CMakeLists.txt
Normal file
|
@ -0,0 +1,7 @@
|
|||
include(FlightGearComponent)
|
||||
|
||||
set(SOURCES
|
||||
hla.cxx
|
||||
)
|
||||
|
||||
flightgear_component(HLA "${SOURCES}")
|
Loading…
Reference in a new issue