-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
33 lines (26 loc) · 805 Bytes
/
CMakeLists.txt
File metadata and controls
33 lines (26 loc) · 805 Bytes
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
cmake_minimum_required(VERSION 3.25)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
include(fix_msvc)
include(cpp_novice_fetch_project_options)
project(cpp_novice LANGUAGES C CXX)
include(check_latest_cppstd)
include(cpp_novice_custom_project_options)
include(add_program)
# -----------------------------------------------------------------------------------------------------------------------
add_program_options(
DEPENDENCIES
LIBRARIES
INCLUDES
include
)
# ------------------------------------------------------------------------------------------------------------------------
add_program(test
test/main.cpp
)
add_program(example_single
src/example_single/main.cpp
)
add_program(example_multiple
src/example_multiple/main.cpp
src/example_multiple/hello.cpp
)