2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
.vs/
|
||||||
|
build/
|
||||||
13
CMakeLists.txt
Normal file
13
CMakeLists.txt
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
cmake_minimum_required(VERSION 3.27.7)
|
||||||
|
|
||||||
|
project(LightYears
|
||||||
|
VERSION 1.0.0
|
||||||
|
LANGUAGES C CXX)
|
||||||
|
|
||||||
|
set(CMAKE_CXX_STANDARD 14)
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
set(CMAKE_CXX_EXTENSIONS OFf)
|
||||||
|
|
||||||
|
set(LIGHT_YEARS_GAME_TARGET_NAME LightYearsGame)
|
||||||
|
|
||||||
|
add_subdirectory(LightYears)
|
||||||
3
LightYears/CMakeLists.txt
Normal file
3
LightYears/CMakeLists.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
add_executable(${LIGHT_YEARS_GAME_TARGET_NAME}
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/src/main.cpp
|
||||||
|
)
|
||||||
5
LightYears/src/main.cpp
Normal file
5
LightYears/src/main.cpp
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
std::cout << "Hello, world!" << std::endl;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user