chore: add AbstractFactory
parent
58a01eb680
commit
d87b07f8d9
|
@ -0,0 +1,21 @@
|
|||
cmake_minimum_required(VERSION 3.20)
|
||||
|
||||
project(
|
||||
AbstractFactory
|
||||
VERSION 0.1.0
|
||||
LANGUAGES CXX)
|
||||
|
||||
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/../cmake")
|
||||
|
||||
include(ExportCompileCommands)
|
||||
include(sccache)
|
||||
|
||||
add_executable(AbstractFactory main.cpp)
|
||||
|
||||
target_compile_features(AbstractFactory PUBLIC cxx_std_20)
|
||||
|
||||
set_target_properties(
|
||||
AbstractFactory
|
||||
PROPERTIES ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/bin"
|
||||
RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/bin"
|
||||
RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/bin")
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
cmake -S . -B .build -G Ninja -D CMAKE_EXPORT_COMPILE_COMMANDS=ON
|
||||
ln -s .build/compile_commands.json
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
cmake --build .build
|
|
@ -0,0 +1,8 @@
|
|||
#include <iostream>
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
|
||||
std::cout << "AbstractFactory" << std::endl;
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
Loading…
Reference in New Issue