Implemented basic app framework
This commit is contained in:
commit
b55204243c
8 changed files with 170 additions and 0 deletions
20
CMakeLists.txt
Normal file
20
CMakeLists.txt
Normal file
|
@ -0,0 +1,20 @@
|
|||
# CMakeList.txt : Top-level CMake project file, do global configuration
|
||||
# and include sub-projects here.
|
||||
#
|
||||
cmake_minimum_required (VERSION 3.8)
|
||||
|
||||
project ("EulerFluid")
|
||||
|
||||
find_package (SDL2)
|
||||
if (SDL2_FOUND)
|
||||
message (STATUS "SDL2 found, using system-installed SDL2")
|
||||
else (SDL2_FOUND)
|
||||
message (STATUS "SDL2 not found, using vendored static SDL2")
|
||||
set (BUILD_SHARED_LIBS OFF)
|
||||
add_subdirectory ("vendor/SDL")
|
||||
set (SDL2_INCLUDE_DIRS SDL2-static)
|
||||
set (SDL2_LIBRARIES SDL2-static SDL2main)
|
||||
endif (SDL2_FOUND)
|
||||
|
||||
# Include sub-projects.
|
||||
add_subdirectory ("src")
|
Loading…
Add table
Add a link
Reference in a new issue