-
Notifications
You must be signed in to change notification settings - Fork 11
/
CMakeLists.txt
54 lines (41 loc) · 1.64 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
cmake_minimum_required(VERSION 3.17)
cmake_policy(SET CMP0091 NEW) # use CMAKE_MSVC_RUNTIME_LIBRARY
cmake_policy(SET CMP0100 NEW) # handle .hh files
enable_testing()
set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreadedDLL)
set(CMAKE_OSX_DEPLOYMENT_TARGET 12.0)
project(CLAP_PLUGINS C CXX)
set(CMAKE_AUTOMOC ON)
if(${CMAKE_CXX_COMPILER_ID} MATCHES "AppleClang|Clang|GNU")
add_compile_options(-fvisibility=hidden -fvisibility-inlines-hidden
-Werror=return-type -Werror=unused-result -Wno-unused-parameter
-Wuninitialized -Wvla -Wmultichar -Werror=non-virtual-dtor -Woverloaded-virtual)
endif()
if(${CMAKE_CXX_COMPILER_ID} MATCHES "AppleClang|Clang")
add_compile_options(-Wmost -Wsuper-class-method-mismatch)
endif()
if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
add_compile_options(/utf-8 /Zi)
add_link_options($<$<CONFIG:Release>:/OPT:REF>)
add_link_options($<$<CONFIG:Release>:/OPT:ICF=3>)
add_link_options($<$<CONFIG:Release>:/Qvec>)
add_link_options($<$<CONFIG:Release>:/GR>)
endif()
add_subdirectory(clap EXCLUDE_FROM_ALL)
add_subdirectory(clap-helpers EXCLUDE_FROM_ALL)
include_directories(yas/include)
add_subdirectory(plugins)
###########
## CPACK ##
###########
set(CPACK_PACKAGE_NAME "clap-plugins")
set(CPACK_PACKAGE_VENDOR "CLAP")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "CLAP Reference Plugins")
set(CPACK_PACKAGE_HOMEPAGE_URL "https://github.com/free-audio/clap-plugins")
set(CPACK_PACKAGE_VERSION_MAJOR "1")
set(CPACK_PACKAGE_VERSION_MINOR "0")
set(CPACK_PACKAGE_VERSION_PATCH "0")
set(CPACK_PACKAGE_INSTALL_DIRECTORY "clap-plugins")
set(CPACK_NSIS_MANIFEST_DPI_AWARE TRUE)
set(CPACK_NSIS_INSTALL_DIRECTORY "$COMMONPROGRAMDATA/CLAP")
include(CPack)