Copy data directory into binary directory

This commit is contained in:
Hannes Mann 2016-06-11 21:19:43 +02:00
parent 9504fcb17f
commit 56fda34225
3 changed files with 7 additions and 1 deletions

3
.gitignore vendored
View file

@ -30,3 +30,6 @@
# Compiled Engine
bin/
# CMake
build/

View file

@ -6,9 +6,13 @@ add_executable(openrayman ${SOURCES})
set(EXECUTABLE_OUTPUT_PATH "${CMAKE_SOURCE_DIR}/bin")
target_link_libraries(openrayman glfw)
if (UNIX)
find_package(PkgConfig REQUIRED)
pkg_check_modules(GTK3 REQUIRED gtk+-3.0)
include_directories(${GTK3_INCLUDE_DIRS})
link_directories(${GTK3_LIBRARY_DIRS})
add_definitions(${GTK3_CFLAGS_OTHER})
target_link_libraries(openrayman ${GTK3_LIBRARIES})
endif()
file(COPY "${CMAKE_SOURCE_DIR}/data" DESTINATION "${CMAKE_SOURCE_DIR}/bin")

View file

@ -5,6 +5,5 @@
int openrayman::engine::run(const std::string& game)
{
openrayman::message_box::display("Test title", "This is a test of the message_box class.\nMultilines are supported.", false);
return EXIT_SUCCESS;
}