Added basic Window interface
This commit is contained in:
parent
a027bdf802
commit
db99718802
99 changed files with 38994 additions and 0 deletions
18
src/example/CMakeLists.txt
Normal file
18
src/example/CMakeLists.txt
Normal 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
8
src/example/main.cpp
Normal file
|
@ -0,0 +1,8 @@
|
|||
#include "Window.hpp"
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
sf::IWindow window;
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue