diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..c96e8dc --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 2.8.9) + +project (Hydrangea) + +set(CMAKE_CXX_STANDARD 14) + +#Import all of the SDL2 dependencies first... +find_package(SDL2 REQUIRED) +include_directories(${SDL2_INCLUDE_DIRS}) + +#Then bring in the local source files and headers into the project +include_directories(include) +file(GLOB SOURCES "src/*.cpp") + +add_executable(Hydrangea ${SOURCES}) +target_link_libraries(Hydrangea ${SDL2_LIBRARIES}) \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..aa7023a --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,6 @@ +#include + +int main() { + std::cout << "Hello, Hydrangea!\n"; + return 0; +} \ No newline at end of file