Commit Graph

14 Commits

Author SHA1 Message Date
Emery Berger
352d9f4720 Bumped up version requirement. 2022-08-11 18:13:39 -04:00
Stefan Büttner
8f8ce2c6d1 Use common CMake config practices for exporting libcoz
It's safer to use CMakePackageConfigHelpers to create relocatable
packages. These macros avoid common pitfalls.

This commit also adds the project version to the cmake config.
There are commits tagged with a project version which was not reflected
in the CMake installation.
2021-05-22 15:39:15 +02:00
Stefan Büttner
803480cfb1 Fix cmake build with INSTALL_COZ=ON
The subdirectory libcoz was relying on the GNUInstallDirs which was
included later.

This fixes #182
2021-05-22 14:04:20 +02:00
Alexey Klimkin
14d6aa01a3 Fix an issue libcoz not picking-up INSTALL_COZ option 2021-03-22 20:23:46 -07:00
Alexey Klimkin
f1a7978f82 Provide default Findlibelfin.cmake if not using Conan 2021-01-21 13:17:26 -08:00
Alexey Klimkin
33a2a5a930 Relocate coz-profilerConfig.cmake to cmake subdir 2021-01-21 12:15:05 -08:00
Alexey Klimkin
c387678315 Add an option to disable Coz install when embedding 2021-01-21 11:23:42 -08:00
Alexey Klimkin
ee410664f8 Avoid globbing sources
Helps to automatically re-run cmake if new files added.
2021-01-21 11:16:06 -08:00
Alexey Klimkin
43637b877a Make coz-profilerConfig.cmake to be relocatable 2021-01-21 11:04:52 -08:00
Alexey Klimkin
44edb3f3e2 Add -gdwarf-3 compile option
Restores original build flag.
2021-01-21 10:53:30 -08:00
Alexey Klimkin
b929ee2ce7 Reduce CMake requirement to v3.4 2021-01-08 16:58:29 -08:00
Alexey Klimkin
ffd1cd8ff2 Set required CMake version to 3.13
Required for `target_link_options`.
2021-01-08 11:15:52 -08:00
Alexey Klimkin
0659e3ab1d Port old "check" target and update CI
Use "make test" to run the old target. Only works for Debug and
RelWithDebInfo, since coz requires debug symbols in the program under
profile.
2021-01-08 09:59:15 -08:00
Alexey Klimkin
3d9f3b9107 Build with CMake 2021-01-08 09:14:00 -08:00