Skip to content

Commit

Permalink
Added cmake rules for 'make install'.
Browse files Browse the repository at this point in the history
  • Loading branch information
markwkm committed Oct 29, 2008
1 parent b8684ec commit 570b9af
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
10 changes: 8 additions & 2 deletions CMakeLists.txt
@@ -1,5 +1,5 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT(iopp C)
CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
PROJECT(IOPP C)

#
# Files to build.
Expand All @@ -12,3 +12,9 @@ add_executable(iopp iopp.c)
#

SET_SOURCE_FILES_PROPERTIES(iopp.c COMPILE_FLAGS "-g -Wall")

#
# Install rules.
#

INSTALL(PROGRAMS iopp DESTINATION "/bin")
12 changes: 12 additions & 0 deletions README
@@ -0,0 +1,12 @@
To build 'iopp':

cmake CMakeLists.txt
make

-----

To install 'iopp':

make install DESTDIR=/usr

'iopp' is installed into '/usr/bin'.

0 comments on commit 570b9af

Please sign in to comment.