-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
28 lines (20 loc) · 925 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
cmake_minimum_required(VERSION 3.21)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
project(projectM-Apple-Music-PlugIn
VERSION 3.0
LANGUAGES OBJC C CXX
)
if(NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin")
message(FATAL_ERROR "This plug-in only builds on macOS.")
endif()
set(CODESIGN_IDENTITY_BUNDLE "-" CACHE STRING "Code signing identity for signing the plug-in bundle. Default is \"-\" (automatic signing).")
set(CODESIGN_IDENTITY_INSTALLER "" CACHE STRING "Code signing identity for signing the installer package. Default is \"\" (no signing).")
set(PRESET_DIRS "" CACHE STRING "List of paths with presets and textures. Required.")
if(PRESET_DIRS STREQUAL "")
message(FATAL_ERROR "PRESET_DIRS must be set to at least one preset and/or texture dir.")
endif()
find_package(libprojectM REQUIRED)
add_subdirectory(src)
include(packaging.cmake)