init repository placeholder struct
This commit is contained in:
commit
704e38b8da
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
src/builddir
|
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"mesonbuild.configureOnOpen": true
|
||||||
|
}
|
43
CMakeLists.txt
Normal file
43
CMakeLists.txt
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
cmake_minimum_required(VERSION 3.13)
|
||||||
|
|
||||||
|
project(arsgoetia LANGUAGES CXX)
|
||||||
|
|
||||||
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -Wextra -Wpedantic -g")
|
||||||
|
|
||||||
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/build)
|
||||||
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/build)
|
||||||
|
set(CMAKE_RESOURCE_DIRECTORY ${CMAKE_SOURCE_DIR}/resources)
|
||||||
|
|
||||||
|
set(CMAKE_THREAD_LIBS_INIT "-lpthread")
|
||||||
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
|
||||||
|
set(CMAKE_HAVE_THREADS_LIBRARY 1)
|
||||||
|
set(CMAKE_USE_WIN32_THREADS_INIT 0)
|
||||||
|
set(CMAKE_USE_PTHREADS_INIT 1)
|
||||||
|
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
||||||
|
|
||||||
|
include_directories(${CMAKE_SOURCE_DIR}/include)
|
||||||
|
file(GLOB_RECURSE SOURCES "src/main.cc" "include/*.h")
|
||||||
|
add_executable(arsgoetia ${SOURCES})
|
||||||
|
|
||||||
|
SET(CMAKE_INSTALL_PREFIX /)
|
||||||
|
# When new game modes appear, aggregate them into a ONE subdirectory
|
||||||
|
# if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/src/modes/classicmode/CMakeLists.txt")
|
||||||
|
# add_subdirectory(src/modes/classicmode)
|
||||||
|
# target_link_libraries(arsgoetia classicmode)
|
||||||
|
# endif()
|
||||||
|
# if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/src/tools/CMakeLists.txt")
|
||||||
|
# add_subdirectory(src/tools)
|
||||||
|
# target_link_libraries(arsgoetia tools)
|
||||||
|
# endif()
|
||||||
|
# if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/src/application/CMakeLists.txt")
|
||||||
|
# add_subdirectory(src/application)
|
||||||
|
# target_link_libraries(arsgoetia application)
|
||||||
|
# endif()
|
||||||
|
# if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/src/impl/CMakeLists.txt")
|
||||||
|
# add_subdirectory(src/impl)
|
||||||
|
# target_link_libraries(arsgoetia impl)
|
||||||
|
# endif()
|
||||||
|
|
||||||
|
file(COPY "${CMAKE_RESOURCE_DIRECTORY}" DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
|
12
arsgoetia.c
Normal file
12
arsgoetia.c
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#define PROJECT_NAME "arsgoetia"
|
||||||
|
|
||||||
|
int main(int argc, char **argv) {
|
||||||
|
if(argc != 1) {
|
||||||
|
printf("%s takes no arguments.\n", argv[0]);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
printf("This is project %s.\n", PROJECT_NAME);
|
||||||
|
return 0;
|
||||||
|
}
|
1
include/core.h
Normal file
1
include/core.h
Normal file
@ -0,0 +1 @@
|
|||||||
|
// placeholder
|
3
src/main.cc
Normal file
3
src/main.cc
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
int main() {
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user