File tree 5 files changed +26
-170
lines changed
5 files changed +26
-170
lines changed Original file line number Diff line number Diff line change 1
- msvc-project /Release
2
- msvc-project /Debug
3
- msvc-project /sdl2stub /Release
4
- msvc-project /sdl2stub /Debug
5
- * .vcxproj.filters
6
- .vs
1
+ build /
Original file line number Diff line number Diff line change
1
+ cmake_minimum_required (VERSION 3.13 FATAL_ERROR)
2
+ project (sdl2stub LANGUAGES CXX)
3
+
4
+ set (PROJECT_NAME sdl2stub)
5
+
6
+ if (WIN32 )
7
+ set (VCPKG_INCLUDE_DIR "$ENV{VCPKG_ROOT} /installed/x64-windows/include" )
8
+ set (VCPKG_LIB_DIR "$ENV{VCPKG_ROOT} /installed/x64-windows/lib" )
9
+ set (SDL2_LIBRARIES ${VCPKG_LIB_DIR} /SDL2.lib ${VCPKG_LIB_DIR} /manual-link/SDL2main.lib)
10
+ include_directories ($VCPKG_INCLUDE_DIR)
11
+ else ()
12
+ find_package (SDL2 REQUIRED)
13
+ endif ()
14
+
15
+ find_package (OPENGL REQUIRED)
16
+
17
+ add_executable (${PROJECT_NAME} src/main.cpp)
18
+
19
+ if (WIN32 )
20
+ set_target_properties (${PROJECT_NAME} PROPERTIES LINK_FLAGS /SUBSYSTEM:WINDOWS)
21
+ endif ()
22
+
23
+ target_link_libraries (${PROJECT_NAME} ${SDL2_LIBRARIES} opengl32)
24
+
25
+
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments