Skip to content

Commit

Permalink
adding make install
Browse files Browse the repository at this point in the history
  • Loading branch information
hiraksarkar committed Feb 7, 2019
1 parent fd8a536 commit 6c26826
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ message("${CMAKE_CXX_FLAGS}")
#
#include(ExternalProject)

set(GAT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})

message("Build system will NOT compile libgff")
##
# Let us check the sha sum of our pacakges if we have the right tools
Expand Down
21 changes: 21 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,27 @@ add_library(fixfastalib STATIC ${FIXFASTA_LIB_SRC})
add_executable(fixfasta FixFasta.cpp)
target_link_libraries(fixfasta fixfastalib z)


IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
SET(CMAKE_INSTALL_PREFIX
"${GAT_SOURCE_DIR}" CACHE PATH "Default install prefix" FORCE
)
ENDIF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)

set(INSTALL_LIB_DIR lib )
set(INSTALL_BIN_DIR bin )
set(INSTALL_INCLUDE_DIR include )


install(
TARGETS minnow fixfasta minnowlib fixfastalib
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib

)


#add_executable(gfftest TestGFFParser.cpp)
#target_link_libraries(gfftest gff)

Expand Down

0 comments on commit 6c26826

Please sign in to comment.