find_package(JlCxx REQUIRED)

add_library(spieljl SHARED wrapper/spieljl.cc ${OPEN_SPIEL_OBJECTS})
target_link_libraries(spieljl PRIVATE JlCxx::cxxwrap_julia JlCxx::cxxwrap_julia_stl)
set_target_properties(spieljl PROPERTIES
    CXX_STANDARD 17
    CXX_STANDARD_REQUIRED ON
    CXX_EXTENSIONS ON
)

install(TARGETS spieljl
    RUNTIME DESTINATION lib
    ARCHIVE DESTINATION lib
    LIBRARY DESTINATION lib
)

add_test(NAME julia_test COMMAND julia --project=${CMAKE_CURRENT_SOURCE_DIR}
                                       -e "using Pkg; Pkg.build(); Pkg.test()")

find_package(JlCxx REQUIRED)

add_library(spieljl SHARED wrapper/spieljl.cc ${OPEN_SPIEL_OBJECTS})
target_link_libraries(spieljl PRIVATE JlCxx::cxxwrap_julia JlCxx::cxxwrap_julia_stl)
set_target_properties(spieljl PROPERTIES
    CXX_STANDARD 17
    CXX_STANDARD_REQUIRED ON
    CXX_EXTENSIONS ON
)

install(TARGETS spieljl
    RUNTIME DESTINATION lib
    ARCHIVE DESTINATION lib
    LIBRARY DESTINATION lib
)

# Disabled until we can properly fix it.
#add_test(NAME julia_test COMMAND julia --project=${CMAKE_CURRENT_SOURCE_DIR}
#                                       -e "using Pkg; Pkg.build(); Pkg.test()")

Disable Julia test until it can be fixed.
Disable Julia test until it can be fixed.

PiperOrigin-RevId: 374504323
Change-Id: I989615996dd3bded4643dc3d8300921301e4b4bc
