/alps/ipecamera

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/ipecamera

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Suren A. Chilingaryan
  • Date: 2016-03-16 19:06:45 UTC
  • Revision ID: csa@suren.me-20160316190645-v6hied0rs59ttcn4
Use GNUInstallDirs

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
include(cmake/version.cmake)
20
20
VERSION_TO_VARS(${IPECAMERA_VERSION} IPECAMERA_VERSION_MAJOR IPECAMERA_VERSION_MINOR IPECAMERA_VERSION_MICRO)
21
21
 
 
22
include(GNUInstallDirs)
22
23
 
23
24
add_subdirectory(apps)
24
25
 
40
41
target_link_libraries(ipecamera ${PCILIB_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${UFODECODE_LIBRARIES} )
41
42
 
42
43
install(FILES ipecamera.h
43
 
    DESTINATION include
 
44
    DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
44
45
)
45
46
 
46
47
install(TARGETS ipecamera
69
70
add_custom_target(dist DEPENDS dist_clean COMMAND ${CMAKE_MAKE_PROGRAM} package_source)
70
71
 
71
72
 
72
 
if(NOT DEFINED BIN_INSTALL_DIR)
73
 
    set(BIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/bin")
74
 
endif(NOT DEFINED BIN_INSTALL_DIR)
75
 
 
76
 
if(NOT DEFINED LIB_INSTALL_DIR)
77
 
    set(LIB_INSTALL_DIR "${LIB_INSTALL_DIR}")
78
 
endif(NOT DEFINED LIB_INSTALL_DIR)
79
 
 
80
 
if(NOT DEFINED INCLUDE_INSTALL_DIR)
81
 
    set(INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include")
82
 
endif(NOT DEFINED INCLUDE_INSTALL_DIR)
83
 
 
84
73
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/ipecamera.pc.in ${CMAKE_CURRENT_BINARY_DIR}/ipecamera.pc)
85
74
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/version.h.in ${CMAKE_CURRENT_BINARY_DIR}/version.h)
86
75
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/ipecamera.spec.in ${CMAKE_CURRENT_BINARY_DIR}/ipecamera.spec)
87
76
 
88
77
install(FILES 
89
78
    ${CMAKE_CURRENT_BINARY_DIR}/ipecamera.pc 
90
 
    DESTINATION ${LIB_INSTALL_DIR}/pkgconfig
 
79
    DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
91
80
)