From e31dac3ba4985e940eaea0b6700a091aaaac4ced Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 23 Mar 2020 13:15:32 +0100 Subject: [PATCH] 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 :^) --- Meta/Lagom/CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Meta/Lagom/CMakeLists.txt b/Meta/Lagom/CMakeLists.txt index 38fa3658950..8b98afadc9c 100644 --- a/Meta/Lagom/CMakeLists.txt +++ b/Meta/Lagom/CMakeLists.txt @@ -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)