if(WIN32)
	return()
endif()

add_executable(metin_smoke_tests
	smoke_auth.cpp
	${CMAKE_SOURCE_DIR}/src/game/SecureCipher.cpp
)

target_link_libraries(metin_smoke_tests
	libthecore
	sodium
	pthread
)

if (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
	target_link_libraries(metin_smoke_tests md)
endif()

add_test(NAME metin_smoke_tests COMMAND metin_smoke_tests)
