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) include(defaultOptions) IF(NOT TARGET whisper-com) add_subdirectory(libs/whisper-com EXCLUDE_FROM_ALL) ENDIF() add_library(SimCore STATIC include/Gateway/Gateway.hpp src/Gateway/Gateway.cpp include/Gateway/PduProcessors/EntityStateProcessor.hpp src/Gateway/PduProcessors/EntityStateProcessor.cpp ) target_link_libraries(Gateway OpenDIS6 whisper-com sfml-network loguru ) target_include_directories(Gateway PUBLIC $ $ src) add_executable(main src/main.cpp ) target_link_libraries(main Gateway CLI11 loguru ) target_include_directories(main PUBLIC $ $ src) # # # # Everything TEST related # # # option(TEST_WHISPER_COMMUNICATION_LIBRARY "Turn running of application template specific tests off" ON) # IF (${TEST_WHISPER_COMMUNICATION_LIBRARY}) # add_executable(test_test tests/test_test.cpp) # target_link_libraries(test_test Catch2::Catch2 whisper-com loguru) # catch_discover_tests(test_test) # ENDIF()