ADD: new track message, Entity class and Position class
This commit is contained in:
@@ -1,58 +1,72 @@
|
||||
cmake_minimum_required (VERSION 3.1 FATAL_ERROR)
|
||||
project (SimCore VERSION 0.1.0 LANGUAGES CXX C)
|
||||
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/Modules)
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules)
|
||||
include(defaultOptions)
|
||||
|
||||
IF(NOT TARGET eigen)
|
||||
set(EIGEN_BUILD_DOC OFF CACHE INTERNAL "")
|
||||
add_subdirectory(libs/eigen EXCLUDE_FROM_ALL)
|
||||
ENDIF()
|
||||
|
||||
|
||||
IF(NOT TARGET GeographicLib)
|
||||
# configure_file(${PROJECT_SOURCE_DIR}/CTestCustom.cmake ${CMAKE_BINARY_DIR})
|
||||
add_subdirectory(libs/geographiclib EXCLUDE_FROM_ALL)
|
||||
ENDIF()
|
||||
|
||||
IF(NOT TARGET whisper-com)
|
||||
add_subdirectory(libs/whisper-com EXCLUDE_FROM_ALL)
|
||||
ENDIF()
|
||||
|
||||
protobuf_generate_cpp(PROTO_PATH include/SimCore/Messages/Protos CPP_PATH include/SimCore/Messages/Protos HPP_PATH include/SimCore/Messages/Protos)
|
||||
|
||||
|
||||
|
||||
add_library(SimCore STATIC
|
||||
include/Gateway/Gateway.hpp
|
||||
src/Gateway/Gateway.cpp
|
||||
include/Gateway/PduProcessors/EntityStateProcessor.hpp
|
||||
src/Gateway/PduProcessors/EntityStateProcessor.cpp
|
||||
include/SimCore/Entity.hpp
|
||||
src/SimCore/Entity.cpp
|
||||
|
||||
include/SimCore/Messages/Track.hpp
|
||||
src/SimCore/Messages/Track.cpp
|
||||
|
||||
include/SimCore/Messages/Protos/Track.pb.cc
|
||||
|
||||
include/SimCore/Position.hpp
|
||||
src/SimCore/Position.cpp
|
||||
|
||||
)
|
||||
|
||||
|
||||
target_link_libraries(Gateway
|
||||
OpenDIS6
|
||||
target_link_libraries(SimCore
|
||||
whisper-com
|
||||
sfml-network
|
||||
loguru
|
||||
libprotobuf
|
||||
eigen
|
||||
GeographicLib
|
||||
)
|
||||
# add_dependencies(SimCore protoc)
|
||||
|
||||
target_include_directories(Gateway PUBLIC
|
||||
target_include_directories(SimCore PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
||||
$<INSTALL_INTERFACE:include>
|
||||
src)
|
||||
|
||||
|
||||
add_executable(main
|
||||
# add_executable(main
|
||||
|
||||
src/main.cpp
|
||||
# src/main.cpp
|
||||
|
||||
|
||||
)
|
||||
# )
|
||||
|
||||
|
||||
target_link_libraries(main
|
||||
Gateway
|
||||
CLI11
|
||||
loguru
|
||||
)
|
||||
target_include_directories(main PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
||||
$<INSTALL_INTERFACE:include>
|
||||
src)
|
||||
# target_link_libraries(main
|
||||
# Gateway
|
||||
# CLI11
|
||||
# loguru
|
||||
# )
|
||||
# target_include_directories(main PUBLIC
|
||||
# $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
||||
# $<INSTALL_INTERFACE:include>
|
||||
# src)
|
||||
|
||||
|
||||
# #
|
||||
|
||||
Reference in New Issue
Block a user