... | ... | @@ -31,25 +31,25 @@ int main(int, char *[]) |
|
|
``` cmake
|
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
|
|
PROJECT(DistanceBetweenPoints)
|
|
|
project(DistanceBetweenPoints)
|
|
|
|
|
|
FIND_PACKAGE(VTK REQUIRED)
|
|
|
INCLUDE(${VTK_USE_FILE})
|
|
|
find_package(VTK REQUIRED)
|
|
|
include(${VTK_USE_FILE})
|
|
|
|
|
|
ADD_EXECUTABLE(DistanceBetweenPoints DistanceBetweenPoints.cxx)
|
|
|
INSTALL(TARGETS DistanceBetweenPoints DESTINATION distance)
|
|
|
add_executable(DistanceBetweenPoints DistanceBetweenPoints.cxx)
|
|
|
install(TARGETS DistanceBetweenPoints DESTINATION distance)
|
|
|
|
|
|
SET(CPACK_GENERATOR "DEB")
|
|
|
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "David Doria") #required
|
|
|
set(CPACK_GENERATOR "DEB")
|
|
|
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "David Doria") # required
|
|
|
|
|
|
INCLUDE(CPack)
|
|
|
include(CPack)
|
|
|
|
|
|
# To use this:
|
|
|
# make package
|
|
|
# sudo dpkg -i DistanceBetweenPoints-0.1.1-Linux.deb
|
|
|
|
|
|
# This will result in the file:
|
|
|
#/usr/distance/DistanceBetweenPoints
|
|
|
# /usr/distance/DistanceBetweenPoints
|
|
|
```
|
|
|
|
|
|
----
|
... | ... | |