cmake: Remove defaults for COMPONENT_SRCDIRS, COMPONENT_SRCS, COMPONENT_ADD_INCLUDEDIRS

* Philosophical: "explicit is better than implicit".
* Practical: Allows useful errors if invalid directories given in components as the defaults aren't
  always used. Also trims the -I path from a number of components that have no actual include
  directory.
* Simplifies knowing which components will be header-only and which won't
This commit is contained in:
Angus Gratton
2018-04-30 09:59:20 +10:00
committed by Angus Gratton
parent 3fac2b2ddc
commit 4f1a856dbf
30 changed files with 80 additions and 32 deletions
+2
View File
@@ -1 +1,3 @@
set(COMPONENT_SRCDIRS ".")
set(COMPONENT_ADD_INCLUDEDIRS "include")
register_component()