-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCMakeLists.txt
59 lines (45 loc) · 1.7 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
cmake_minimum_required(VERSION 3.10)
project(TodoMVC)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(BDN_BUILD_TESTS OFF CACHE BOOL "Don't include boden tests")
set(BDN_BUILD_EXAMPLES OFF CACHE BOOL "Don't include boden examples")
add_subdirectory(boden)
set(_sources
./source/AppController.h
./source/AppController.cpp
./source/MainViewController.h
./source/MainViewController.cpp
./source/main.cpp
./source/TodoListDataSource.cpp
./source/TodoListDataSource.h
./source/TodoItemView.cpp
./source/TodoItemView.h
./source/TodoStore.cpp
./source/TodoStore.h
./source/Todo.cpp
./source/Todo.h
)
set(MACOSX_BUNDLE_BUNDLE_NAME TodoMVC)
set(MACOSX_BUNDLE_GUI_IDENTIFIER "io.boden.example.TodoMVC")
set(ANDROID_PACKAGEID "io.boden.example.TodoMVC")
ios_configure_asset(_assets ./ios-assets/Base.lproj/LaunchScreen.storyboard)
ios_configure_asset(_assets DemoIcon/black.png)
roger_add(
TodoMVC
_assets
${CMAKE_CURRENT_LIST_DIR}/DemoIcon/demo_icon.json)
set(ANDROID_ICON "android:icon=\"@mipmap/ic_launcher_png\"")
add_universal_executable(TodoMVC SOURCES ${_sources} ${_assets})
ios_configure_app_info(TARGET TodoMVC
LAUNCHSCREEN "LaunchScreen"
TARGETED_DEVICES IPHONE IPAD
IPHONE_ORIENTATIONS ALL
IPAD_ORIENTATIONS ALL)
set_xcode_appicon_asset(TodoMVC "ApplicationIcon")
use_boden_template_info_plist(TARGET TodoMVC
BUNDLE_NAME "TodoMVC"
BUNDLE_ID "io.boden.todomvc")
get_git_short_revision(GIT_REV)
set_target_version(TARGET TodoMVC VERSION "1.0.0" SHORTVERSION "1.0" LONGVERSION "1.0.0.${GIT_REV}" ANDROID_VERSION_ID 1)
target_link_libraries(TodoMVC Boden::All)