Skip to content
Snippets Groups Projects
Commit a3c034e4 authored by psychocrypt's avatar psychocrypt
Browse files

rename binary to xmr-stak

- add pseudo install rule to CMake
parent 855af1cf
No related branches found
No related tags found
No related merge requests found
...@@ -373,14 +373,14 @@ set_source_files_properties(${SRCFILES_CPP} PROPERTIES LANGUAGE CXX) ...@@ -373,14 +373,14 @@ set_source_files_properties(${SRCFILES_CPP} PROPERTIES LANGUAGE CXX)
set_property(TARGET xmr-stak-c PROPERTY C_STANDARD 99) set_property(TARGET xmr-stak-c PROPERTY C_STANDARD 99)
target_link_libraries(xmr-stak-c ${LIBS}) target_link_libraries(xmr-stak-c ${LIBS})
add_executable(xmr-stak-cpu add_executable(xmr-stak
${SRCFILES_CPP} ${SRCFILES_CPP}
) )
set(EXECUTABLE_OUTPUT_PATH "bin") set(EXECUTABLE_OUTPUT_PATH "bin")
set(LIBRARY_OUTPUT_PATH "bin") set(LIBRARY_OUTPUT_PATH "bin")
target_link_libraries(xmr-stak-cpu ${LIBS} xmr-stak-c xmr-stak-backend) target_link_libraries(xmr-stak ${LIBS} xmr-stak-c xmr-stak-backend)
################################################################################ ################################################################################
# Install # Install
...@@ -389,7 +389,7 @@ target_link_libraries(xmr-stak-cpu ${LIBS} xmr-stak-c xmr-stak-backend) ...@@ -389,7 +389,7 @@ target_link_libraries(xmr-stak-cpu ${LIBS} xmr-stak-c xmr-stak-backend)
# do not install the binary if the project and install are equal # do not install the binary if the project and install are equal
if( NOT "${CMAKE_INSTALL_PREFIX}" STREQUAL "${PROJECT_BINARY_DIR}" ) if( NOT "${CMAKE_INSTALL_PREFIX}" STREQUAL "${PROJECT_BINARY_DIR}" )
install(TARGETS xmr-stak-cpu install(TARGETS xmr-stak
RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
if(CUDA_FOUND) if(CUDA_FOUND)
if(WIN32) if(WIN32)
...@@ -410,5 +410,6 @@ if( NOT "${CMAKE_INSTALL_PREFIX}" STREQUAL "${PROJECT_BINARY_DIR}" ) ...@@ -410,5 +410,6 @@ if( NOT "${CMAKE_INSTALL_PREFIX}" STREQUAL "${PROJECT_BINARY_DIR}" )
endif() endif()
endif() endif()
else() else()
set(WIN_OUTPUT_RELEASE "/Release") # this rule is used if the install prefix is the build directory
install(CODE "MESSAGE(\"xmr-stak installed to folder 'bin'\")")
endif() endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment