-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
38 lines (29 loc) · 1.16 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
37
38
cmake_minimum_required(VERSION 3.12)
project(ASTL_Project)
# Set the C++ standard to C++14
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_WIN32_EXECUTABLE ON)
# Specify the custom build directory
set(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/build)
# Add your source files here
set(SOURCES
Test/ASTL.cpp
Profiler.cpp
)
include_directories(${CMAKE_SOURCE_DIR})
# Add an executable target
add_executable(astl_test ${SOURCES})
target_link_libraries(astl_test
user32
gdi32
opengl32
)
# Copy AOC11.txt and AOC12.txt to build/Test folder during the build process
configure_file(Test/AOC12.txt ${CMAKE_BINARY_DIR}/Test/AOC12.txt COPYONLY)
configure_file(Test/AOC15.txt ${CMAKE_BINARY_DIR}/Test/AOC15.txt COPYONLY)
configure_file(Test/AOC17.txt ${CMAKE_BINARY_DIR}/Test/AOC17.txt COPYONLY)
configure_file(Test/AOC22.txt ${CMAKE_BINARY_DIR}/Test/AOC22.txt COPYONLY)
configure_file(Test/AOC22.txt ${CMAKE_BINARY_DIR}/Test/2021Day1.txt COPYONLY)
configure_file(Test/AOC22.txt ${CMAKE_BINARY_DIR}/Test/2021Day2.txt COPYONLY)
configure_file(Test/AOC22.txt ${CMAKE_BINARY_DIR}/Test/2021Day4.txt COPYONLY)
configure_file(Test/AOC22.txt ${CMAKE_BINARY_DIR}/Test/2021Day5.txt COPYONLY)