Skip to content

Commit

Permalink
build: add cmake base
Browse files Browse the repository at this point in the history
  • Loading branch information
michaldziuba03 committed Sep 25, 2024
1 parent ccb0394 commit b51146c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ _
*.out
*.app
sample
pand
pand
build/
33 changes: 33 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
cmake_minimum_required(VERSION 3.22)
project(pand)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED True)

include_directories(
./deps/v8/include
./deps/swcc/include
./deps/luxio/src
)

link_directories(
./deps/v8/out.gn/x64.release.sample/obj
./deps/luxio/build
./deps/swcc/target/release
)

add_definitions(-DV8_ENABLE_SANDBOX=1 -DV8_COMPRESS_POINTERS=1)

add_executable(pand core/main.cc)

target_link_libraries(pand
swcc
luxio
v8_libplatform
v8_monolith
pthread
rt
dl
)

target_link_options(pand PRIVATE -pthread -lrt -ldl)

0 comments on commit b51146c

Please sign in to comment.