Diff of /CMakeLists.txt [0dd1fa] .. [21822d] Maximize Restore

  Switch to unified view

a/CMakeLists.txt b/CMakeLists.txt
...
...
84
    SET(sys_c "sys_ansi.c")
84
    SET(sys_c "sys_ansi.c")
85
    SET(sys_h "sys_ansi.h")
85
    SET(sys_h "sys_ansi.h")
86
  ENDIF(BUILD_WINGUI)
86
  ENDIF(BUILD_WINGUI)
87
  SET(sys_compat_c "sys_compat_win.c")
87
  SET(sys_compat_c "sys_compat_win.c")
88
ELSE(WIN32)
88
ELSE(WIN32)
89
  ##
90
  ## Cleaner Debian Packaging (enable by -DDISABLE_DPKG=OFF)
91
  ##
92
  OPTION (DISABLE_DPKG "Do not use debian scripts to get package dependences" ON)
93
89
  SET(sys_c "sys_ansi.c")
94
  SET(sys_c "sys_ansi.c")
90
  SET(sys_h "sys_ansi.h")
95
  SET(sys_h "sys_ansi.h")
91
  SET(sys_compat_c "sys_compat_unix.c")
96
  SET(sys_compat_c "sys_compat_unix.c")
92
ENDIF(WIN32)
97
ENDIF(WIN32)
93
98
...
...
404
  endif()
409
  endif()
405
endif()
410
endif()
406
411
407
set(CPACK_SOURCE_PACKAGE_FILE_NAME "libpano13-${PANO_MAJOR_VERSION}.${PANO_MINOR_VERSION}.${CPACK_PACKAGE_VERSION_PATCH}")
412
set(CPACK_SOURCE_PACKAGE_FILE_NAME "libpano13-${PANO_MAJOR_VERSION}.${PANO_MINOR_VERSION}.${CPACK_PACKAGE_VERSION_PATCH}")
408
413
414
415
if(CPACK_BINARY_DEB)
409
# Use dpkg-shlibdeps to get the needed dependences
416
  # Use dpkg-shlibdeps to get the needed dependences
417
  if (NOT DISABLE_DPKG)
418
    # Use dpkg-shlibdeps to get the needed dependences
410
SET(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
419
    SET(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
411
420
421
    # the following part copied from http://www.cmake.org/Wiki/CMake_RPATH_handling
422
    # use, i.e. don't skip the full RPATH for the build tree
423
    SET(CMAKE_SKIP_BUILD_RPATH  FALSE)
424
425
    # when building, don't use the install RPATH already
426
    # (but later on when installing)
427
    SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
428
429
    SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
430
    SET(CPACK_DEBIAN_PACKAGE_DEBUG ON)
431
432
    # add the automatically determined parts of the RPATH
433
    # which point to directories outside the build tree to the install RPATH
434
    SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
435
436
    #this environment will be used by dpkg-shlibdebs to find local created libs
437
    string(REGEX REPLACE "^/(.*)" "\\1" LDLIBPATH "${CMAKE_INSTALL_RPATH}")
438
439
    set(CPACK_PROJECT_CONFIG_FILE "${CMAKE_BINARY_DIR}/CPackEnv.cmake")
440
    FILE(WRITE "${CPACK_PROJECT_CONFIG_FILE}" "set(ENV{LD_LIBRARY_PATH} \"${LDLIBPATH}\")")
441
  endif()
442
  set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_CURRENT_SOURCE_DIR}/Debian/postinst")
443
endif()
412
444
413
include(CPack)
445
include(CPack)
414
446
415
enable_testing()
447
enable_testing()
416
add_subdirectory(tests)
448
add_subdirectory(tests)