22 lines
531 B
CMake
22 lines
531 B
CMake
|
cmake_minimum_required(VERSION 3.20)
|
||
|
|
||
|
project(
|
||
|
Singleton
|
||
|
VERSION 0.1.0
|
||
|
LANGUAGES CXX)
|
||
|
|
||
|
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/../cmake")
|
||
|
|
||
|
include(ExportCompileCommands)
|
||
|
include(sccache)
|
||
|
|
||
|
add_executable(Singleton main.cpp)
|
||
|
|
||
|
target_compile_features(Singleton PUBLIC cxx_std_20)
|
||
|
|
||
|
set_target_properties(
|
||
|
Singleton
|
||
|
PROPERTIES ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/bin"
|
||
|
RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/bin"
|
||
|
RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/bin")
|