blob: f0f90a26daf7a617e5b50ee3ce661dc5c3a11d2a [file] [log] [blame]
add_custom_target(GobackendUnitTests)
set_target_properties(GobackendUnitTests PROPERTIES FOLDER "Tests")
if (APPLE)
set(CMAKE_INSTALL_RPATH "@executable_path/../../lib")
else(UNIX)
set(CMAKE_INSTALL_RPATH "\$ORIGIN/../../lib${LLVM_LIBDIR_SUFFIX}")
endif()
function(add_gobackend_unittest test_dirname)
add_unittest(GobackendUnitTests ${test_dirname} ${ARGN})
endfunction()
add_subdirectory(BackendCore)
add_subdirectory(Parser)