Skip to content

Commit

Permalink
enable FHS install
Browse files Browse the repository at this point in the history
use CMAKE_INSTALL_PREFIX
  • Loading branch information
illwieckz committed Feb 27, 2019
1 parent 559a1b0 commit 98c7429
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crnlib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -196,3 +196,7 @@ if (BUILD_SHARED_LIBS)
else()
add_library(${CRUNCH_LIBRARY_NAME} STATIC ${CRNLIB_SRCS} ${CRNLIB_THREAD_SRCS})
endif()

install(TARGETS ${CRUNCH_LIBRARY_NAME}
DESTINATION lib
)
4 changes: 4 additions & 0 deletions crunch/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ set(CRUNCH_SRCS

add_executable(${CRUNCH_EXE_NAME} ${CRUNCH_SRCS})
target_link_libraries(${CRUNCH_EXE_NAME} ${CRUNCH_LIBRARY_NAME} ${CMAKE_THREAD_LIBS_INIT})

install(TARGETS ${CRUNCH_EXE_NAME}
DESTINATION bin
)

0 comments on commit 98c7429

Please sign in to comment.