Skip to content

Commit

Permalink
cmake: install targets in miniapp
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpintarelli committed Jul 17, 2022
1 parent fe6eb59 commit bc8b257
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions miniapp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ foreach(exec ${executables})
add_executable(${exec} "${exec}.cpp")
target_link_libraries(${exec} PRIVATE cosma cxxopts)
target_include_directories(${exec} PUBLIC "${cosma_SOURCE_DIR}/libs/cxxopts/include/")
install(TARGETS ${exec} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
endforeach()

if(COSMA_SCALAPACK)
Expand All @@ -15,6 +16,7 @@ if(COSMA_SCALAPACK)
add_executable(${exec} "${exec}.cpp")
target_link_libraries(${exec} PRIVATE cosma_pxgemm_cpp cxxopts)
target_include_directories(${exec} PUBLIC "${cosma_SOURCE_DIR}/libs/cxxopts/include/")
install(TARGETS ${exec} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
if (COSMA_WITH_PROFILING)
target_link_libraries(${exec} PRIVATE semiprof)
target_compile_definitions(${exec} PRIVATE COSMA_WITH_PROFILING)
Expand Down

0 comments on commit bc8b257

Please sign in to comment.