Permalink
Browse files

make install target

  • Loading branch information...
1 parent d74ec91 commit a8f80b0cd6b21b489598e71b19c9338b54664869 @RJ committed Jul 8, 2009
Showing with 7 additions and 4 deletions.
  1. +5 −2 CMakeLists.txt
  2. 0 include/{ → portfwd}/portfwd.h
  3. +1 −1 src/main.cpp
  4. +1 −1 src/portfwd.cpp
View
7 CMakeLists.txt
@@ -30,9 +30,12 @@ ADD_LIBRARY(portfwd STATIC
src/portfwd.cpp
)
-ADD_EXECUTABLE(portfwd-test
+ADD_EXECUTABLE(portfwd-demo
src/main.cpp
)
-TARGET_LINK_LIBRARIES(portfwd-test portfwd)
+TARGET_LINK_LIBRARIES(portfwd-demo portfwd)
+INSTALL(TARGETS portfwd ARCHIVE DESTINATION lib)
+INSTALL(TARGETS portfwd-demo RUNTIME DESTINATION bin)
+INSTALL(DIRECTORY include/portfwd DESTINATION include PATTERN "*~" EXCLUDE)
View
0 include/portfwd.h → include/portfwd/portfwd.h
File renamed without changes.
View
2 src/main.cpp
@@ -1,4 +1,4 @@
-#include "portfwd.h"
+#include "portfwd/portfwd.h"
int main(int argc, char** argv)
{
if(argc!=3)
View
2 src/portfwd.cpp
@@ -1,4 +1,4 @@
-#include "portfwd.h"
+#include "portfwd/portfwd.h"
#include "miniwget.h"
#include "miniupnpc.h"

0 comments on commit a8f80b0

Please sign in to comment.