shell/CMakeLists.txt

19 lines
508 B
CMake

cmake_minimum_required(VERSION 3.10)
project(shell)
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/windows)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/linux)
endif()
set(CMAKE_CXX_STANDARD 23)
add_executable(shell src/main.cpp
src/shellUtils.cpp
include/shellUtils.h)
target_include_directories(shell PRIVATE include)