diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-12-11 19:16:43 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-12-13 11:00:26 +0200 |
commit | d3fc24ee989b48bc8a7761c323aea4005c01e01b (patch) | |
tree | 271070e02ac086bb9bda65df4d5bc39d900d7958 /CMakeLists.txt | |
parent | f8522b0c3c90e61748df4553734794a714d085e4 (diff) |
Android: Setting up the build
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 18789f9c..22fe36f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -285,7 +285,12 @@ else () | |||
285 | endif () | 285 | endif () |
286 | 286 | ||
287 | # Target. | 287 | # Target. |
288 | add_executable (app ${SOURCES} ${RESOURCES}) | 288 | if (NOT ANDROID) |
289 | add_executable (app ${SOURCES} ${RESOURCES}) | ||
290 | else () | ||
291 | # The whole app becomes one shared library, based on this static one. | ||
292 | add_library (app STATIC ${SOURCES}) | ||
293 | endif () | ||
289 | set_property (TARGET app PROPERTY C_STANDARD 11) | 294 | set_property (TARGET app PROPERTY C_STANDARD 11) |
290 | if (TARGET ext-deps) | 295 | if (TARGET ext-deps) |
291 | add_dependencies (app ext-deps) | 296 | add_dependencies (app ext-deps) |