Skip to content
Browse files

archive not .so, less hassle to distribute

  • Loading branch information...
1 parent 8c3abcb commit d2268cbfb355ac1387f3318cadd5ec067bf798d9 @RJ committed Jul 9, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 CMakeLists.txt
View
6 CMakeLists.txt
@@ -46,10 +46,10 @@ IF(NOT WIN32)
ADD_DEFINITIONS(-g )
ADD_DEFINITIONS(-fno-operator-names)
ADD_DEFINITIONS(-fPIC)
- ADD_DEFINITIONS(-02)
+ ADD_DEFINITIONS(-O2)
ENDIF(NOT WIN32)
-ADD_LIBRARY( f2f SHARED
+ADD_LIBRARY( f2f STATIC
${SRC}/router.cpp
${SRC}/protocol.cpp
${SRC}/connection.cpp
@@ -72,6 +72,6 @@ TARGET_LINK_LIBRARIES( f2f-demo
${Boost_LIBRARIES} # Boost license
)
-INSTALL(TARGETS f2f LIBRARY DESTINATION lib)
+INSTALL(TARGETS f2f ARCHIVE DESTINATION lib)
INSTALL(TARGETS f2f-demo RUNTIME DESTINATION bin)
INSTALL(DIRECTORY include/libf2f DESTINATION include PATTERN "*~" EXCLUDE)

0 comments on commit d2268cb

Please sign in to comment.
Something went wrong with that request. Please try again.