-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
36 lines (32 loc) · 1.28 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
cmake_minimum_required(VERSION 3.27)
project(COEN243)
set(CMAKE_CXX_STANDARD 17)
#Start of interactive messages
message("\n\nWelcome to COEN243 Project")
message("CMAKE Version: 3.27")
message("C++${CMAKE_CXX_STANDARD} Standard")
message("Current system: ${CMAKE_SYSTEM}")
message("System name: ${CMAKE_SYSTEM_NAME}")
message("Processor: ${CMAKE_SYSTEM_PROCESSOR}")
message("\n")
#end of messages
#GLOB_RECURSE
file(GLOB ALL
"*.cpp")
foreach(file ${ALL})
#extract just the file name and extension
get_filename_component(fname ${file} NAME)
message(STATUS "Adding target for ${fname}")
#add target for just that file
add_executable(${fname} ${fname})
endforeach()
#target_link_directories(${PROJECT_SOURCE_DIR})
#target_link_libraries(${PROJECT_SOURCE_DIR})
#add_executable(MY Assignment4/Employee.cpp Assignment4/Employee.h Assignment4/testemployee.cpp)
#include_directories(${PROJECT_SOURCE_DIR}/Assignment4)
#add_subdirectory(${PROJECT_SOURCE_DIR}/Assignment4) # This line ensure all files in Assignment4 folder are brought in!
#add_subdirectory(${PROJECT_SOURCE_DIR}/Labs)
#add_subdirectory(${PROJECT_SOURCE_DIR}/FinalProject)
#add_subdirectory("${PROJECT_SOURCE_DIR}/STL ALGORITHMS")
add_subdirectory("${PROJECT_SOURCE_DIR}/STL")
add_subdirectory("${PROJECT_SOURCE_DIR}/Labs")