Cycling74 / min-devkit

Tools, documentation, and reference implementation of a Max Package built using the Min-API.
MIT License
156 stars 30 forks source link

CMake build system refactoring #205

Open Mc-Zen opened 1 year ago

Mc-Zen commented 1 year ago

Changes

Mc-Zen commented 1 year ago

I forgot to note: Each projects CMakeLists.txt can now be replaced with something like

# Copyright 2018 The Min-DevKit Authors. All rights reserved.
# Use of this source code is governed by the MIT License found in the License.md file.

set(target min.beat.pattern)
c74_add_project(${target} SOURCES ${target}.cpp)
c74_add_auto_unit_test(${target})

I tried that out with all the default projects and they all work fine. Some have additional CMake code but this is no problem.

Of course I didn't want to push these changes until you said you'd want to migrate all projects to this new solution.

Best regards