Open Mc-Zen opened 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
Changes
c74_add_project.cmake
file with commandc74_add_project()
to replace includes of the pre and post scripts. The library output directories are set here instead of in themax-pretarget.cmake
which makes more sense because the path lies in the min-devkit folder, not in the max-sdk-base.min-api
as subdirectory to bring all targets and functions into scope.min-api
can still be a totally independant repository. The change here is that the optionBUILD_DOCUMENTATION
is available. Suggestion: we could add aif(PROJECT_IS_TOP_LEVEL)
in theCMakeLists.txt
file ofmin-api
to only supply that option whenmin-api
is built on its own.