~mterry/ubuntu-calculator-app/confined

« back to all changes in this revision

Viewing changes to app/CMakeLists.txt

  • Committer: Riccardo Padovani
  • Date: 2014-12-11 17:46:47 UTC
  • Revision ID: rpadovani@ubuntu.com-20141211174647-54o03ly8usgg5fzk
Started to work on CMake

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Searches for all qml and javascript files in the current directory
2
 
# to add them to the project, if you add new files in the directory
3
 
# rerun cmake to make sure they show up in the project tree
4
 
file(GLOB QML_JS_FILES *.qml *.js)
5
 
 
6
 
# Make the files visible in qtcreator
7
 
add_custom_target(ubuntu-calculator-app_QMlFiles ALL SOURCES ${QML_JS_FILES})
8
 
 
9
 
# Substitute variables in the desktop file
10
 
configure_file(${DESKTOP_FILE_NAME}.in ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE_NAME}.in)
11
 
 
12
 
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE_NAME} DESTINATION ${DESKTOP_DIR})
13
 
install(FILES ${QML_JS_FILES} DESTINATION ${UBUNTU-CALCULATOR-APP_DIR})
 
1
if(NOT "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
 
2
  file(GLOB QML_JS_FILES *.qml *.js)
 
3
  add_custom_target(ubuntu-calculator-app_QMlFiles ALL SOURCES ${QML_JS_FILES})
 
4
endif(NOT "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
 
5
 
 
6
if(CLICK_MODE)
 
7
  set(ICON ${ICON})
 
8
  install(FILES ${ICON} DESTINATION ${CMAKE_INSTALL_PREFIX})
 
9
endif(CLICK_MODE)
 
10
 
 
11
install(FILES ${MAIN_QML} DESTINATION ${UBUNTU-CALCULATOR-APP_DIR})
14
12
 
15
13
add_subdirectory(engine)
16
14
add_subdirectory(ui)
17
15
add_subdirectory(upstreamcomponents)
18
 
 
19
 
# Make the autpilot files visible in qtcreator
20
 
file(GLOB_RECURSE AUTOPILOT_TEST_FILES *.py)
21
 
add_custom_target(ubuntu-calculator-app_AutopilotFiles ALL SOURCES ${AUTOPILOT_TEST_FILES})
22