Merge "Fix N_SE-46297" into tizen_2.2
[platform/framework/native/uifw.git] / CMakeLists.txt
1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
2
3 SET(CMAKE_INSTALL_PREFIX /usr)
4 SET(PREFIX ${CMAKE_INSTALL_PREFIX})
5
6 ## OUTPUT PATHS
7 SET(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/cmake_build_tmp/output/osp)
8
9
10 ## Disable build rpath
11 SET(CMAKE_SKIP_BUILD_RPATH TRUE)
12
13 IF(SBS OR OBS)
14 ADD_DEFINITIONS("-D_EXCEPT_DEPENDENCY_")
15 ENDIF(SBS OR OBS)
16
17 IF(SBS)
18 ADD_DEFINITIONS("-D_SBS_")
19 ENDIF(SBS)
20
21 ADD_DEFINITIONS("-D_FOCUS_UI_")
22
23 ## Set Assembly Compiler
24 #SET(CMAKE_ASM_COMPILER "${CMAKE_C_COMPILER}")
25
26 SET(CMAKE_ASM_COMPILER_ARG1 "${CPPFLAGS} -c")
27 ENABLE_LANGUAGE(ASM)
28
29 ## LIBRARY PATH
30 LINK_DIRECTORIES (${LIBRARY_OUTPUT_PATH})
31
32 ADD_SUBDIRECTORY(src)
33
34 INSTALL(FILES ${CMAKE_SOURCE_DIR}/osp-uifw.pc DESTINATION lib/pkgconfig)
35
36 INSTALL(DIRECTORY ${LIBRARY_OUTPUT_PATH}/ DESTINATION lib/osp
37                 FILES_MATCHING PATTERN "*.so*"
38                 PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
39                     GROUP_EXECUTE GROUP_READ
40                     WORLD_EXECUTE WORLD_READ)
41 INSTALL(DIRECTORY ${LIBRARY_OUTPUT_PATH}/debug/ DESTINATION lib/osp/debug
42                 FILES_MATCHING PATTERN "*"
43                 PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
44                                         GROUP_EXECUTE GROUP_READ
45                                         WORLD_EXECUTE WORLD_READ)
46
47 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res/common/usr/share/osp/bitmaps DESTINATION ../usr/share/osp)
48 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res/common/usr/share/osp/effects DESTINATION ../usr/share/osp)
49
50 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/inc/ DESTINATION include/osp FILES_MATCHING PATTERN "*.h")
51 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/src/app/inc/ DESTINATION include/osp/app FILES_MATCHING PATTERN "*.h")
52 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/src/graphics/inc/ DESTINATION include/osp/graphics FILES_MATCHING PATTERN "*.h")
53 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/src/ui/inc/ DESTINATION include/osp/ui FILES_MATCHING PATTERN "*.h")