Skip to content

Commit

Permalink
Update cmake to only build nyxstone internals once
Browse files Browse the repository at this point in the history
  • Loading branch information
stuxnot committed Oct 11, 2023
1 parent 702a759 commit a0b5ae1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ file(GLOB srcs
# add_compile_options(-fsanitize=address,undefined)
# add_link_options(-fsanitize=address,undefined)

add_executable(nstone examples/nyxstone-cli.cpp ${srcs})
add_executable(sample examples/sample.cpp ${srcs})
add_library(nyxstone ${srcs})

target_link_libraries(nstone ${llvm_libs} ${Boost_LIBRARIES})
target_link_libraries(sample ${llvm_libs})
add_executable(nstone examples/nyxstone-cli.cpp)
add_executable(sample examples/sample.cpp)

target_link_libraries(nstone nyxstone ${llvm_libs} ${Boost_LIBRARIES})
target_link_libraries(sample nyxstone ${llvm_libs})

0 comments on commit a0b5ae1

Please sign in to comment.