You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Having dependencies/targets which are only built sometimes is pretty common. Examples are dependencies/targets needed only for testing and dependencies/targets for optional features. Handling these "sometimes" objects introduces additional logic into the CMakeLists.txt which could be avoided by tagging the object as optional/testing. It's worth noting that the distinction between optional and testing boils down to whether they are installed or not (testing is usually not installed).
Describe the solution you'd like
A brute force approach would be to do something like:
cmaize_find_or_build_xxx_yyy(
)
where xxx would be optional or testing and yyy would be dependency, library, or executable.
Describe alternatives you've considered
Using control flow logic in my CMakeLists.txt files.
Is your feature request related to a problem? Please describe.
Having dependencies/targets which are only built sometimes is pretty common. Examples are dependencies/targets needed only for testing and dependencies/targets for optional features. Handling these "sometimes" objects introduces additional logic into the
CMakeLists.txt
which could be avoided by tagging the object as optional/testing. It's worth noting that the distinction between optional and testing boils down to whether they are installed or not (testing is usually not installed).Describe the solution you'd like
A brute force approach would be to do something like:
where
xxx
would beoptional
ortesting
andyyy
would bedependency
,library
, orexecutable
.Describe alternatives you've considered
Using control flow logic in my
CMakeLists.txt
files.From #121:
cmaize_find_or_build_test_dependency
cmaize_add_test_library
cmaize_add_test_executable
cmaize_add_test
(havecmaize_add_tests
redirect to it)The text was updated successfully, but these errors were encountered: