Skip to content

Commit

Permalink
Add lunatic as an optional dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
fleroviux committed Apr 27, 2024
1 parent e4ebb69 commit 1804e64
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "external/atom"]
path = external/atom
url = https://github.com/fleroviux/atom
[submodule "external/lunatic"]
path = external/lunatic
url = https://github.com/fleroviux/lunatic
5 changes: 4 additions & 1 deletion external/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
add_subdirectory(atom)
set(LUNATIC_USE_EXTERNAL_FMT ON CACHE BOOL "" FORCE)

add_subdirectory(atom)
add_subdirectory(lunatic)
1 change: 1 addition & 0 deletions external/lunatic
Submodule lunatic added at 3ac20f
5 changes: 5 additions & 0 deletions src/dual/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,14 @@ set(HEADERS_PUBLIC
include/dual/nds/timer.hpp
)

option(DUAL_ENABLE_JIT "Enable Just-In-Time compiler support" ON)

add_library(dual ${SOURCES} ${HEADERS} ${HEADERS_PUBLIC})

target_link_libraries(dual PUBLIC atom-common atom-logger atom-math)
if(DUAL_ENABLE_JIT)
target_link_libraries(dual PRIVATE lunatic)
endif()

target_include_directories(dual PUBLIC include)
target_include_directories(dual PRIVATE src)
Expand Down

0 comments on commit 1804e64

Please sign in to comment.