Added basic Window interface

This commit is contained in:
Robert 2020-06-15 20:03:08 +02:00
parent a027bdf802
commit db99718802
99 changed files with 38994 additions and 0 deletions

View file

@ -0,0 +1,18 @@
add_executable(example_app
"main.cpp"
)
target_include_directories(example_app PRIVATE
"${CMAKE_SOURCE_DIR}/src/sdlf"
"${CMAKE_SOURCE_DIR}/3rdparty/include/SDL"
)
target_link_libraries(example_app PRIVATE
sdlf
"${CMAKE_SOURCE_DIR}/3rdparty/lib/SDL2.lib"
"${CMAKE_SOURCE_DIR}/3rdparty/lib/SDL2main.lib"
)
add_custom_command(TARGET example_app POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/3rdparty/lib/SDL2.dll $<TARGET_FILE_DIR:example_app>
)

8
src/example/main.cpp Normal file
View file

@ -0,0 +1,8 @@
#include "Window.hpp"
int main(int argc, char* argv[])
{
sf::IWindow window;
return 0;
}