Lagom: Build LibJS + "js" test program

You can now get a full Linux build of the "js" test program by simply
building in Meta/Lagom :^)
This commit is contained in:
Andreas Kling 2020-03-23 13:15:32 +01:00
parent 79e065f0a2
commit e31dac3ba4
Notes: sideshowbarker 2024-07-19 08:10:25 +09:00

View file

@ -12,8 +12,10 @@ endif()
file(GLOB AK_SOURCES "../../AK/*.cpp")
file(GLOB LIBCORE_SOURCES "../../Libraries/LibCore/*.cpp")
file(GLOB LIBIPC_SOURCES "../../Libraries/LibIPC/*.cpp")
file(GLOB LIBJS_SOURCES "../../Libraries/LibJS/*.cpp")
file(GLOB LIBJS_SUBDIR_SOURCES "../../Libraries/LibJS/*/*.cpp")
set(SOURCES ${AK_SOURCES} ${LIBCORE_SOURCES} ${LIBIPC_SOURCES})
set(SOURCES ${AK_SOURCES} ${LIBCORE_SOURCES} ${LIBIPC_SOURCES} ${LIBJS_SOURCES} ${LIBJS_SUBDIR_SOURCES})
include_directories (../../)
include_directories (../../Libraries/)
@ -26,3 +28,8 @@ target_link_libraries(TestApp stdc++)
add_executable(TestJson TestJson.cpp)
target_link_libraries(TestJson lagom)
target_link_libraries(TestJson stdc++)
add_executable(js ../../Userland/js.cpp)
target_link_libraries(js lagom)
target_link_libraries(js stdc++)
target_link_libraries(js pthread)