Commit Graph

26 Commits

Author SHA1 Message Date
Matteo Cypriani 44dcf42180 CMake: rename test target to "tests"
Comply with CMake policy CMP0037: "test" is a reserved target name.
2016-11-03 22:06:17 -04:00
Matteo Cypriani bc6ec14fa8 Update COPYRIGHT.t2t URL 2016-11-03 22:00:33 -04:00
Matteo Cypriani f3e63ec20f CMake: precise "g++" in error message 2014-07-25 15:22:59 -04:00
Matteo Cypriani 093b93a3c5 CMake: make sure OWLPS_VERSION is defined
If not defined in the environment and could not retrieved from Git,
OWLPS_VERSION is defined to "unknown version".
2014-07-25 15:17:46 -04:00
Matteo Cypriani 703e78ff1a [scripts] Add CMakeLists.txt (install files)
Add installation targets for the scripts and Perl modules.
2013-09-23 17:03:51 -04:00
Matteo Cypriani 1eac9bb718 [Positioner] tests: review and update (100% pass)
Review and fix all the tests so that 100% of the tests pass.
2013-07-17 18:09:14 -04:00
Matteo Cypriani 6c1c182039 [Listener] Adapt get_mac_addr() to build on BSD
The get_mac_addr() function was the only real blocker that prevented
building on BSD systems, as it used the Linux-specific SIOCGIFHWADDR
ioctl. When compiling for Linux, we still use this ioctl, but for the
BSD version we use sysctl().

This allows OwlPS Listener to build on BSD (tested on NetBSD, OpenBSD
and DragonFly). That doesn't mean it will actually work when trying to
capture packets though (that has to be tested on real hardware), but
that's still a progress.
2013-07-17 18:09:12 -04:00
Matteo Cypriani b0bb4094d8 CMake: get rid of the OWLPS_DEBUG option
The constant is not used in any program any more, so we can stop
declaring it.
2013-06-12 09:38:38 -04:00
Matteo Cypriani 9701a2d393 [Positioner] Allow building with clang++
This patch is to have clang++ (>= 3.2) happily build OwlPS Positioner.
For some reason it doesn't work on NetBSD, but it is fine on GNU/Linux
and (a couple of warnings apart) on DragonFly BSD.
2013-06-12 09:38:38 -04:00
Matteo Cypriani eb2715e249 CMake: make sure doxygen is available 2013-06-04 11:07:54 -04:00
Matteo Cypriani 87f390f288 CMake: handle doc/ 2013-06-04 11:07:54 -04:00
Matteo Cypriani 80fd5b287b Update and centralise copyright information 2013-05-29 13:19:06 -04:00
Matteo Cypriani 9aa9099e6a DEBUG compile-time option -> OWLPS_DEBUG
The former DEBUG compilation-time option was renamed OWLPS_DEBUG to be
consistent with the other options.
2013-05-23 12:24:11 -04:00
Matteo Cypriani 245c7f38b2 CMake: "fix" static linking (remove -pie)
Stop linking with -pie, as it prevents from linking statically.
2013-05-23 12:24:11 -04:00
Matteo Cypriani 0c6af63657 CMake: test for the presence of Confuse 2013-05-22 18:36:21 -04:00
Matteo Cypriani 8e46aae55c CMake: test for the presence of POSIX threads
We chose a centralised approach, since threads are needed in several
modules: the find_package() is done only once in the rood directory.
Not sure it's the best approach though, but this test is several lines
long so doing that avoids duplication of this code.
2013-05-22 18:36:21 -04:00
Matteo Cypriani 1cb5742ef9 CMake: rework compilation/link flags
- Default compiler and linker flags were added silently. They are now
  set in the cache if no previous values are present.
- Debug flags and regular flags have been merged.
- Position-independent code (doesn't appear in the cache because CMake
  lacks variables like CMAKE_EXE_COMPILE_FLAGS):
  - Shared libraries are compiled with -fPIC.
  - Executables and static libraries are compiled with -fPIE.
  - Executables are linked with -pie -fPIE.
2013-05-22 18:36:21 -04:00
Matteo Cypriani 464e3f223f CMake: link libowlps-* to libowlps
Libraries libowlps-client and libowlps-resultreader are now linked to
libowlps. Linker flag --no-undefined was added to detect such errors.
2013-05-22 18:36:20 -04:00
Matteo Cypriani 4264210dcc CMake: add static targets
The pseudo-targets "semistatic" and "static" were added to build
everything in semistatic or static mode.
2013-05-22 18:36:20 -04:00
Matteo Cypriani 93a184f083 CMake: test compiler version for Positioner 2013-05-22 18:36:20 -04:00
Matteo Cypriani 0de28cb3eb CMake: compile Positioner 2013-05-22 18:36:20 -04:00
Matteo Cypriani aa88bcf0fd CMake: configurations & compilation flags 2013-05-22 18:36:20 -04:00
Matteo Cypriani 77fcc23026 CMake: handle OwlPS' version 2013-05-22 18:36:20 -04:00
Matteo Cypriani 7598bc9451 CMake: handle DEBUG and NDEBUG options 2013-05-22 18:36:20 -04:00
Matteo Cypriani 93adfdc55c CMake: handle Client's options 2013-05-21 14:23:36 -04:00
Matteo Cypriani 4467fcd52c Initial CMake setup 2013-05-21 14:23:36 -04:00