CMake has reasonable defaults for Debug and Release builds but the build
type isn't specified by default. That led to me adding explicit flags.
Remove those flags and default to using Release builds.
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
No need to spend time building all the tests unless you specifically
want them. To build them, run 'cmake -DPRJXRAY_BUILD_TESTING=ON ..' in
the build directory.
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
By setting CMAKE_CXX_STANDARD, CMake will figure out the right flag to
pass to the compiler being used as well as error if the compiler doesn't
support that standard. The standard can also be changed on a per-target
basis.
Using add_compiler_options() is just a bit cleaner syntactically and
will apply the flags to C and C++.
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>
Debugging failing tests is awful when optimizations are turned on.
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>
Any explicit dependencies on a third_party library will cause that
target to get built. This commit only removes the targets from the
implicit "all" target.
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>
Some flag-related string parsing is also replaced with methods from
abseil.
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>
Building with CMake makes it a lot easier to bring in other libraries
such as gflags and abseil.
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>