open-dis / open-dis-cpp

C++ implementation of the IEEE-1278.1 Distributed Interactive Simulation (DIS) application protocol v6 and v7
BSD 2-Clause "Simplified" License
90 stars 65 forks source link

Modernize and modularize cmake build system for more robust usage #72

Closed wadehunk closed 1 year ago

wadehunk commented 1 year ago

I re-factored the cmake build system to be more consistent with modern cmake conventions and best practices. I think this also simplifies and makes the overall build more maintainable. There was a previous PR that attempted to do this a few years ago, but looked like it got bogged down with too many changes. This implementation is a bit more direct.

A quick summary of the changes:

Things that did NOT change:

This should keep any impact to users of OpenDIS to a minimum if at all.

Tested locally on RedHat 8 and 9.