summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rwxr-xr-xmain/CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt
index bf2d55f..c4463aa 100755
--- a/main/CMakeLists.txt
+++ b/main/CMakeLists.txt
@@ -51,11 +51,11 @@ TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS} ${CMAKE_LDFLAGS} msg-commo
#Install desktop file & icon.
INSTALL(TARGETS message DESTINATION bin)
-IF("${ARCH}" MATCHES "^arm.*")
+IF("${SIMULATOR}" MATCHES "yes")
+ CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/${PKGNAME}.xml.emul ${CMAKE_SOURCE_DIR}/${PKGNAME}.xml)
+ELSE("${SIMULATOR}" MATCHES "yes")
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/${PKGNAME}.xml.target ${CMAKE_SOURCE_DIR}/${PKGNAME}.xml)
-ELSE("${ARCH}" MATCHES "^arm.*")
- CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/${PKGNAME}.xml.emul ${CMAKE_SOURCE_DIR}/${PKGNAME}.xml)
-ENDIF("${ARCH}" MATCHES "^arm.*")
+ENDIF("${SIMULATOR}" MATCHES "yes")
INSTALL(FILES ${CMAKE_SOURCE_DIR}/${PKGNAME}.xml DESTINATION /usr/share/packages)
INSTALL(FILES ${CMAKE_SOURCE_COMMON_DIR}/data/image/${PKGNAME}.png DESTINATION ${ICONDIR})
INSTALL(FILES ${CMAKE_SOURCE_COMMON_DIR}/data/image/${PKGNAME}.voice.png DESTINATION ${ICONDIR})