1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:57:44 +00:00

test: Port to LibMain

This commit is contained in:
Kenneth Myhra 2022-03-30 08:49:43 +02:00 committed by Linus Groh
parent 704e1d13f4
commit 6581cf47ab
2 changed files with 13 additions and 10 deletions

View file

@ -40,7 +40,7 @@ foreach(CMD_SRC ${CMD_SOURCES})
endif()
if (CMD_NAME IN_LIST SPECIAL_TARGETS)
add_executable(${TARGET_NAME} ${CMD_SRC})
target_link_libraries(${TARGET_NAME} LibCore)
target_link_libraries(${TARGET_NAME} LibCore LibMain)
install(TARGETS ${TARGET_NAME} RUNTIME DESTINATION bin)
install(CODE "file(RENAME ${CMAKE_INSTALL_PREFIX}/bin/${CMD_NAME}-bin ${CMAKE_INSTALL_PREFIX}/bin/${CMD_NAME})")
else()