Changeset View
Changeset View
Standalone View
Standalone View
kstars/CMakeLists.txt
Show First 20 Lines • Show All 964 Lines • ▼ Show 20 Line(s) | 940 | else(BUILD_KSTARS_LITE) | |||
---|---|---|---|---|---|
965 | endif(KF5NotifyConfig_FOUND) | 965 | endif(KF5NotifyConfig_FOUND) | ||
966 | endif(BUILD_KSTARS_LITE) | 966 | endif(BUILD_KSTARS_LITE) | ||
967 | 967 | | |||
968 | if(NOT WIN32) | 968 | if(NOT WIN32) | ||
969 | target_link_libraries(KStarsLib m) | 969 | target_link_libraries(KStarsLib m) | ||
970 | endif(NOT WIN32) | 970 | endif(NOT WIN32) | ||
971 | 971 | | |||
972 | if (CFITSIO_FOUND) | 972 | if (CFITSIO_FOUND) | ||
973 | target_include_directories(KStarsLib PUBLIC ${CFITSIO_INCLUDE_DIR}) | ||||
973 | target_link_libraries(KStarsLib ${CFITSIO_LIBRARIES}) | 974 | target_link_libraries(KStarsLib ${CFITSIO_LIBRARIES}) | ||
974 | endif(CFITSIO_FOUND) | 975 | endif(CFITSIO_FOUND) | ||
975 | 976 | | |||
976 | if(INDI_FOUND) | 977 | if(INDI_FOUND) | ||
977 | if (NOT ANDROID) | 978 | if (NOT ANDROID) | ||
978 | find_package(Nova REQUIRED) | 979 | find_package(Nova REQUIRED) | ||
979 | include_directories(${NOVA_INCLUDE_DIR}) | 980 | include_directories(${NOVA_INCLUDE_DIR}) | ||
980 | endif () | 981 | endif () | ||
▲ Show 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | 1038 | ecm_add_app_icon(KSTARS_APP_SRCS ICONS | |||
1040 | ${CMAKE_CURRENT_SOURCE_DIR}/icons/48-apps-kstars.png | 1041 | ${CMAKE_CURRENT_SOURCE_DIR}/icons/48-apps-kstars.png | ||
1041 | ${CMAKE_CURRENT_SOURCE_DIR}/icons/64-apps-kstars.png | 1042 | ${CMAKE_CURRENT_SOURCE_DIR}/icons/64-apps-kstars.png | ||
1042 | ${CMAKE_CURRENT_SOURCE_DIR}/icons/128-apps-kstars.png | 1043 | ${CMAKE_CURRENT_SOURCE_DIR}/icons/128-apps-kstars.png | ||
1043 | ) | 1044 | ) | ||
1044 | 1045 | | |||
1045 | qt5_add_resources(KSTARS_APP_SRCS data/kstars.qrc) | 1046 | qt5_add_resources(KSTARS_APP_SRCS data/kstars.qrc) | ||
1046 | endif(NOT BUILD_KSTARS_LITE) | 1047 | endif(NOT BUILD_KSTARS_LITE) | ||
1047 | 1048 | | |||
1048 | if (ANDROID) | 1049 | if (CMAKE_TOOLCHAIN_FILE STREQUAL ${CMAKE_SOURCE_DIR}/android/toolchain-android.cmake) | ||
1049 | add_library(kstars SHARED ${KSTARS_APP_SRCS}) | 1050 | add_library(kstars SHARED ${KSTARS_APP_SRCS}) | ||
1050 | add_dependencies(KStarsLib cfitsio indi raw) | 1051 | add_dependencies(KStarsLib cfitsio indi raw) | ||
1051 | set(ANDROID_NDK $ENV{ANDROID_NDK}) | 1052 | set(ANDROID_NDK $ENV{ANDROID_NDK}) | ||
1052 | # This hack is needed by a strange NDK bug. Some symbols are missing in locale.o (libc.a) at linking stage. But | 1053 | # This hack is needed by a strange NDK bug. Some symbols are missing in locale.o (libc.a) at linking stage. But | ||
1053 | # if we force-link with a working libc.a from android-24, there will be duplicated symbols, some symbols will | 1054 | # if we force-link with a working libc.a from android-24, there will be duplicated symbols, some symbols will | ||
1054 | # conflict with libandroid_support.a what is also needed. | 1055 | # conflict with libandroid_support.a what is also needed. | ||
1055 | # Workaround: Extract the needed locale.o from libc.a of android-24 and link KStars Lite with it. | 1056 | # Workaround: Extract the needed locale.o from libc.a of android-24 and link KStars Lite with it. | ||
1056 | ADD_CUSTOM_TARGET(extract_locale_o | 1057 | ADD_CUSTOM_TARGET(extract_locale_o | ||
Show All 22 Lines |