1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
3 SET(CMAKE_INSTALL_PREFIX /usr)
4 SET(PREFIX ${CMAKE_INSTALL_PREFIX})
7 SET(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/cmake_build_tmp/output/osp)
10 ## Disable build rpath
11 SET(CMAKE_SKIP_BUILD_RPATH TRUE)
14 ADD_DEFINITIONS("-D_EXCEPT_DEPENDENCY_")
18 ADD_DEFINITIONS("-D_SBS_")
21 ## Set Assembly Compiler
22 #SET(CMAKE_ASM_COMPILER "${CMAKE_C_COMPILER}")
24 SET(CMAKE_ASM_COMPILER_ARG1 "${CPPFLAGS} -c")
28 LINK_DIRECTORIES (${LIBRARY_OUTPUT_PATH})
32 INSTALL(FILES ${CMAKE_SOURCE_DIR}/osp-uifw.pc DESTINATION lib/pkgconfig)
34 INSTALL(DIRECTORY ${LIBRARY_OUTPUT_PATH}/ DESTINATION lib/osp
35 FILES_MATCHING PATTERN "*.so*"
36 PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
37 GROUP_EXECUTE GROUP_READ
38 WORLD_EXECUTE WORLD_READ)
39 INSTALL(DIRECTORY ${LIBRARY_OUTPUT_PATH}/debug/ DESTINATION lib/osp/debug
40 FILES_MATCHING PATTERN "*"
41 PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
42 GROUP_EXECUTE GROUP_READ
43 WORLD_EXECUTE WORLD_READ)
45 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res/common/usr/share/osp/themes DESTINATION ../usr/share/osp)
46 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res/common/usr/share/osp/bitmaps DESTINATION ../usr/share/osp)
47 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res/common/usr/share/osp/effects DESTINATION ../usr/share/osp)
49 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/inc/ DESTINATION include/osp FILES_MATCHING PATTERN "*.h")
50 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/src/app/inc/ DESTINATION include/osp/app FILES_MATCHING PATTERN "*.h")
51 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/src/graphics/inc/ DESTINATION include/osp/graphics FILES_MATCHING PATTERN "*.h")
52 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/src/ui/inc/ DESTINATION include/osp/ui FILES_MATCHING PATTERN "*.h")