-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
16 lines (13 loc) · 1004 Bytes
/
CMakeLists.txt
File metadata and controls
16 lines (13 loc) · 1004 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
cmake_minimum_required(VERSION 3.31)
project(TR_Programming_Language C)
set(CMAKE_C_STANDARD 11)
# Moves the input file in root directory to the binary (working) directory so CMake can find it
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/front1.in DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/front2.in DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/front3.in DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/front4.in DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/front1.in ${CMAKE_CURRENT_BINARY_DIR}/front1.in COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/front2.in ${CMAKE_CURRENT_BINARY_DIR}/front2.in COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/front3.in ${CMAKE_CURRENT_BINARY_DIR}/front3.in COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/front4.in ${CMAKE_CURRENT_BINARY_DIR}/front4.in COPYONLY)
add_executable(TR_Programming_Language front.c)