DesignPattern/01.SimpleFactory/2.Code/CMakeLists.txt

7 lines
303 B
CMake
Raw Normal View History

2023-08-06 02:44:10 +00:00
cmake_minimum_required(VERSION 3.10)
project(SimpleFactory)
set(SRC_LIST main.cpp)
2023-08-08 14:10:55 +00:00
get_filename_component(FOLDER_NAME ${CMAKE_CURRENT_SOURCE_DIR} DIRECTORY)
get_filename_component(FOLDER_NAME ${FOLDER_NAME} NAME)
set(EXECUTABLE_OUTPUT_PATH ${OUTPUT_DIR}/${FOLDER_NAME}/)
add_executable(app1 ${SRC_LIST})