forked from phbasler/BSMPT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
29 lines (26 loc) · 904 Bytes
/
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
# SPDX-FileCopyrightText: 2024 Lisa Biermann, Margarete Mühlleitner, Rui Santos,
# João Viana
#
# SPDX-License-Identifier: GPL-3.0-or-later
set(STANDALONE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
file(GLOB SOURCE_FILES "*.cpp" CONFIURE_DEPENDS)
foreach(file_path ${SOURCE_FILES})
get_filename_component(filename "${file_path}" NAME)
string(REPLACE ".cpp" "" filename "${filename}")
add_executable("${filename}" "${file_path}")
target_link_libraries(
"${filename}"
PRIVATE Minimizer
MinimumTracer
Models
Utility
TestCompares
ThermalFunctions
BounceSolution
TransitionTracer
GW)
set_target_properties(
"${filename}" PROPERTIES RUNTIME_OUTPUT_DIRECTORY
"${CMAKE_BINARY_DIR}/bin/standalone")
target_compile_features("${filename}" PUBLIC cxx_std_14)
endforeach()