Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make install implemented, to usr/local

  • Loading branch information...
commit 8c3abcb475778f6c77266205e960c4049e0c72e8 1 parent 9f96f23
@RJ authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 CMakeLists.txt
View
8 CMakeLists.txt
@@ -8,6 +8,9 @@ SET(SRC "${F2F_PATH}/src")
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${F2F_PATH}/bin")
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${F2F_PATH}/lib")
+# binaries get installed here
+SET(CMAKE_INSTALL_PREFIX "/usr/local/")
+
# on linux x86-64 set this to OFF if you are having (-fPIC...) build problems.
# then: cd build/ && rm -rf CMakeCache.txt CMakeFiles/ cmake_install.cmake resolvers/
# then: cmake .. ; make
@@ -43,6 +46,7 @@ IF(NOT WIN32)
ADD_DEFINITIONS(-g )
ADD_DEFINITIONS(-fno-operator-names)
ADD_DEFINITIONS(-fPIC)
+ ADD_DEFINITIONS(-02)
ENDIF(NOT WIN32)
ADD_LIBRARY( f2f SHARED
@@ -68,4 +72,6 @@ TARGET_LINK_LIBRARIES( f2f-demo
${Boost_LIBRARIES} # Boost license
)
-#INSTALL(TARGETS libf2f RUNTIME DESTINATION bin)
+INSTALL(TARGETS f2f LIBRARY DESTINATION lib)
+INSTALL(TARGETS f2f-demo RUNTIME DESTINATION bin)
+INSTALL(DIRECTORY include/libf2f DESTINATION include PATTERN "*~" EXCLUDE)
Please sign in to comment.
Something went wrong with that request. Please try again.