# 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
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