-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
88 lines (73 loc) · 2.77 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
cmake_minimum_required(VERSION 3.23)
project(animation-demo-dev VERSION 0.1.0 LANGUAGES C CXX)
find_program(CCACHE ccache)
if (CCACHE)
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE})
set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE})
endif ()
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_C_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
add_subdirectory(3rd_party/JUCE)
set_directory_properties(PROPERTIES JUCE_COMPANY_COPYRIGHT "Copyright 2023 neo-sonar")
set_directory_properties(PROPERTIES JUCE_COMPANY_NAME "neo-sonar")
juce_add_gui_app(AnimationDemo PRODUCT_NAME "Animation Demo")
target_sources(AnimationDemo
PRIVATE
"src/neo/Main.cpp"
"src/neo/MainComponent.hpp"
"src/neo/MainComponent.cpp"
"src/neo/animations/Animation.cpp"
"src/neo/animations/Animation.hpp"
"src/neo/animations/KeyframeTimer.hpp"
"src/neo/animations/KeyframeTimer.cpp"
"src/neo/animations/KeyframeProperty.hpp"
"src/neo/animations/KeyframeInterpolator.hpp"
"src/neo/animations/TimingFunction.hpp"
"src/neo/animations/Transition.cpp"
"src/neo/animations/Transition.hpp"
"src/neo/components/AnimatedButton.cpp"
"src/neo/components/AnimatedButton.hpp"
"src/neo/components/BannerCarousel.hpp"
"src/neo/components/LoaderCarousel.hpp"
"src/neo/components/MouseHoverListener.hpp"
"src/neo/components/TabSelector.hpp"
"src/neo/components/TabSelector.cpp"
"src/neo/examples/BannerExamples.hpp"
"src/neo/examples/BannerExamples.cpp"
"src/neo/examples/GridExamples.hpp"
"src/neo/examples/GridExamples.cpp"
"src/neo/examples/PathExamples.hpp"
"src/neo/examples/PathExamples.cpp"
"src/neo/examples/TimingExamples.hpp"
"src/neo/examples/TimingExamples.cpp"
"src/neo/examples/WidgetsExamples.hpp"
"src/neo/examples/WidgetsExamples.cpp"
"src/neo/graphics/TrimPathEffect.hpp"
"src/neo/graphics/TrimPathEffect.cpp"
)
target_compile_definitions(AnimationDemo
PRIVATE
JUCE_WEB_BROWSER=0
JUCE_USE_CURL=0
JUCE_APPLICATION_NAME_STRING="$<TARGET_PROPERTY:AnimationDemo,JUCE_PRODUCT_NAME>"
JUCE_APPLICATION_VERSION_STRING="$<TARGET_PROPERTY:AnimationDemo,JUCE_VERSION>"
)
target_include_directories(AnimationDemo
PUBLIC
${PROJECT_SOURCE_DIR}/src
)
target_link_libraries(AnimationDemo
PRIVATE
juce::juce_gui_extra
PUBLIC
juce::juce_recommended_config_flags
juce::juce_recommended_lto_flags
juce::juce_recommended_warning_flags
)