Build system refactored to be comatible with ConanCenter

This commit is contained in:
Mateusz Pusz committed 2020-09-06 00:00:06 +02:00
1 parent 2078de7151
commit 32779e01f0
16 files changed
+77 -50

No files matched your search

@@ -20,9 +20,11 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
cmake_minimum_required(VERSION 3.12)
function(add_example target)
add_executable(${target}_alt ${target}.cpp)
target_link_libraries(${target}_alt PRIVATE mp::units)
target_link_libraries(${target}_alt PRIVATE mp-units::mp-units)
endfunction()
add_example(box_example)