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
)

# This is failing now too (in addition to thread_test). Temporarily disabling.
# See https://github.com/deepmind/open_spiel/pull/593 and
# https://github.com/deepmind/open_spiel/pull/596 for discussion.
# add_test(NAME julia_test COMMAND julia --project=${CMAKE_CURRENT_SOURCE_DIR}
#                                        -e "using Pkg; Pkg.build(); Pkg.test()")




Disable Julia test while we look into fixing it.
Disable Julia test while we look into fixing it.

PiperOrigin-RevId: 374160979
Change-Id: I63da825af5e38848e72c3d349a538951e240d507
