diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..61ffe98 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,11 @@ +cmake_minimum_required(VERSION 3.14) +project(iPlug2OOS) + +set(IPLUG2_DIR ${CMAKE_SOURCE_DIR}/iPlug2) +include(${IPLUG2_DIR}/iPlug2.cmake) + +find_package(iPlug2 REQUIRED COMPONENTS IPlug APP) + +# # # Add subdirectories for each project +add_subdirectory(TemplateProject) +# add_subdirectory(TemplateProject2) \ No newline at end of file diff --git a/TemplateProject/CMakeLists.txt b/TemplateProject/CMakeLists.txt new file mode 100644 index 0000000..ad7024e --- /dev/null +++ b/TemplateProject/CMakeLists.txt @@ -0,0 +1,26 @@ +cmake_minimum_required(VERSION 3.14) +project(TemplateProject VERSION 1.0.0) + +set(PROJECT_DIR ${CMAKE_CURRENT_SOURCE_DIR}) + +set(SOURCE_FILES + TemplateProject.cpp + TemplateProject.h + resources/resource.h +) + +# create a private library target called "__${PROJECT_NAME}_BASE" for shared code +add_library(_${PROJECT_NAME}_BASE INTERFACE) +iplug_add_target(_${PROJECT_NAME}_BASE INTERFACE + INCLUDE ${PROJECT_DIR} ${PROJECT_DIR}/resources + LINK iPlug2::IPlug +) + +# create an executable target called "_${PROJECT_NAME}_APP" +add_executable(${PROJECT_NAME}_APP ${SOURCE_FILES}) +iplug_add_target(${PROJECT_NAME}_APP PUBLIC + LINK iPlug2::APP _${PROJECT_NAME}_BASE + RESOURCE ${RESOURCES} + DEFINE NO_IGRAPHICS +) +iplug_configure_target(${PROJECT_NAME}_APP APP ${PROJECT_NAME}) \ No newline at end of file diff --git a/iPlug2 b/iPlug2 index bb455a4..2916815 160000 --- a/iPlug2 +++ b/iPlug2 @@ -1 +1 @@ -Subproject commit bb455a4e120fa74f6ae1e8a15c07bfda909b348e +Subproject commit 2916815623534624b8b6ebd8891568a416b35e1c