Skip to content

Commit 85aaafc

Browse files
authored
cmake: Set targets to INSTALL (#912)
I'm in the process of trying to get alive2 available in the JuliaLang binary distribution system [1]. That system would like all relevant targets to be INSTALL'ed, so add appropriate CMake directives. [1] JuliaPackaging/Yggdrasil#4271
1 parent b2488e3 commit 85aaafc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ target_link_libraries(alive PRIVATE ${ALIVE_LIBS})
244244
add_executable(alive-jobserver
245245
"tools/alive-jobserver.cpp"
246246
)
247+
install(TARGETS alive alive-jobserver)
247248

248249
#add_library(alive2 SHARED ${IR_SRCS} ${SMT_SRCS} ${TOOLS_SRCS} ${UTIL_SRCS} ${LLVM_UTIL_SRCS})
249250

@@ -253,6 +254,7 @@ if (BUILD_LLVM_UTILS OR BUILD_TV)
253254
target_link_libraries(alive-tv PRIVATE ${ALIVE_LIBS_LLVM} ${Z3_LIBRARIES} ${HIREDIS_LIBRARIES} ${llvm_libs})
254255
target_link_libraries(quick-fuzz PRIVATE ${ALIVE_LIBS_LLVM} ${Z3_LIBRARIES} ${HIREDIS_LIBRARIES} ${llvm_libs})
255256
target_link_libraries(alive-exec PRIVATE ${ALIVE_LIBS_LLVM} ${Z3_LIBRARIES} ${HIREDIS_LIBRARIES} ${llvm_libs})
257+
install(TARGETS alive-tv quick-fuzz alive-exec)
256258
endif()
257259

258260
target_link_libraries(alive PRIVATE ${Z3_LIBRARIES} ${HIREDIS_LIBRARIES})

0 commit comments

Comments
 (0)