chiark / gitweb /
Added install target
authorxantares <xantares09@hotmail.com>
Tue, 6 May 2014 15:06:02 +0000 (17:06 +0200)
committerxantares <xantares09@hotmail.com>
Tue, 6 May 2014 15:06:02 +0000 (17:06 +0200)
CMakeLists.txt

index 5e667b539624cd47e6a2a9f8be4fd7282c0e48bf..032c067cf17ff014c5e425a29faf4fcd3501a108 100644 (file)
@@ -118,6 +118,10 @@ INCLUDE_DIRECTORIES (
 # nlopt LIBRARY TARGET (SHARED OR STATIC)\r
 #==============================================================================\r
 \r
+SET ( NLOPT_HEADERS \r
+  api/nlopt.h api/nlopt.hpp api/nlopt.f\r
+)\r
+\r
 SET ( NLOPT_SOURCES   \r
        direct/DIRect.c direct/direct_wrap.c direct/DIRserial.c direct/DIRsubrout.c direct/direct-internal.h direct/direct.h\r
        cdirect/cdirect.c cdirect/hybrid.c cdirect/cdirect.h\r
@@ -149,5 +153,11 @@ ELSE(NLOPT_BUILD_SHARED)
   ADD_LIBRARY (nlopt STATIC ${NLOPT_SOURCES} )\r
 ENDIF(NLOPT_BUILD_SHARED)\r
 \r
+INSTALL ( TARGETS nlopt\r
+          RUNTIME DESTINATION bin\r
+          LIBRARY DESTINATION lib${LIB_SUFFIX}\r
+          ARCHIVE DESTINATION lib${LIB_SUFFIX}\r
+        )\r
 \r
+INSTALL ( FILES ${NLOPT_HEADERS} DESTINATION include )\r
 \r