include_directories("src/demo/RuntimeTest/include")
add_executable(Re3D-RuntimeTest "src/demo/RuntimeTest/main.cpp")

#Link based on the relative path *so you can copy the game around*
set_target_properties(Re3D-RuntimeTest PROPERTIES LINK_FLAGS "-Wl,-rpath,./lib")

#Copy the assets to the build directory.
file(COPY "assets" DESTINATION "${PROJECT_BINARY_DIR}")
file(COPY "cfg" DESTINATION "${PROJECT_BINARY_DIR}")

if(UNIX AND NOT APPLE)
	target_link_libraries(Re3D-RuntimeTest PUBLIC Re3D)
endif()

if(WIN32)
    target_link_libraries(Re3D-RuntimeTest PUBLIC Re3D)
endif()
