2018-04-02 12:47:26 -04:00
|
|
|
add_library(main SHARED
|
|
|
|
ButtonManager.cpp
|
|
|
|
MainAndroid.cpp
|
|
|
|
)
|
2016-01-06 15:35:15 -06:00
|
|
|
|
2018-04-02 12:47:26 -04:00
|
|
|
target_link_libraries(main
|
|
|
|
PRIVATE
|
|
|
|
core
|
|
|
|
uicommon
|
|
|
|
)
|
2016-01-06 15:35:15 -06:00
|
|
|
|
2018-04-02 12:47:26 -04:00
|
|
|
target_link_libraries(main
|
|
|
|
PRIVATE
|
|
|
|
android
|
|
|
|
log
|
|
|
|
"-Wl,--no-warn-mismatch"
|
|
|
|
"-Wl,--whole-archive"
|
|
|
|
"-Wl,--no-whole-archive"
|
2016-01-20 10:32:53 -06:00
|
|
|
)
|
2016-06-08 19:49:46 +02:00
|
|
|
|
|
|
|
file(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/Source/Android/app/src/main/assets/)
|
2017-09-09 11:27:24 +02:00
|
|
|
file(REMOVE_RECURSE ${CMAKE_SOURCE_DIR}/Source/Android/app/src/main/assets/Sys/)
|
|
|
|
file(COPY ${CMAKE_SOURCE_DIR}/Data/Sys DESTINATION ${CMAKE_SOURCE_DIR}/Source/Android/app/src/main/assets/)
|
|
|
|
file(REMOVE_RECURSE ${CMAKE_SOURCE_DIR}/Source/Android/app/src/main/assets/Sys/Resources/) # not used on Android
|
2016-01-06 15:35:15 -06:00
|
|
|
|
2018-04-02 12:47:26 -04:00
|
|
|
set(CPACK_PACKAGE_EXECUTABLES ${CPACK_PACKAGE_EXECUTABLES} main)
|