-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
51 lines (38 loc) · 1.21 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
cmake_minimum_required(VERSION 3.21)
include(CMake/CMakeCommon.cmake)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
set(CMAKE_CXX_EXTENSIONS NO)
set(productName "amigaMon")
project("${productName}" VERSION 0.1.0)
set(CMAKE_OSX_DEPLOYMENT_TARGET "11.0")
createProject("${productName}")
CPMAddPackage(
NAME vAmiga
GIT_REPOSITORY https://github.com/asimilon/vAmiga.git
GIT_TAG origin/warnings
SOURCE_SUBDIR Emulator
)
set(SourceFolders
Source
)
include(Source/SourceFiles.cmake)
set(JUCE_DEPENDENCIES
juce::juce_gui_extra
juce::juce_audio_basics
juce::juce_audio_devices
juce::juce_opengl
vAmigaCore
)
set(JUCE_OPTIONS
JUCE_APPLICATION_NAME_STRING="${productName}"
JUCE_APPLICATION_VERSION_STRING="${PROJECT_VERSION}"
JUCE_WEB_BROWSER=0
)
target_compile_definitions(vAmigaCore
PUBLIC
TPP=1
)
addGuiApp("${productName}" "${SourceFiles}" "${JUCE_DEPENDENCIES}" "${SourceFolders}" "Resources/icon.png" "${JUCE_OPTIONS}")
list(TRANSFORM SourceFolders PREPEND ${CMAKE_CURRENT_SOURCE_DIR}/)
target_include_directories("${PROJECT_NAME}" PRIVATE "${SourceFolders}" "${CMAKE_CURRENT_SOURCE_DIR}")