File tree Expand file tree Collapse file tree 4 files changed +20
-10
lines changed Expand file tree Collapse file tree 4 files changed +20
-10
lines changed Original file line number Diff line number Diff line change 59
59
cmake --build build_artifacts --config RelWithDebInfo
60
60
- name : Test C++
61
61
run : |
62
- build_artifacts/scripts/ fork_union_test_cpp17
63
- build_artifacts/scripts/ fork_union_test_cpp20
62
+ build_artifacts/fork_union_test_cpp17
63
+ build_artifacts/fork_union_test_cpp20
64
64
65
65
# Rust
66
66
- name : Set up Rust
94
94
cmake --build build_artifacts --config RelWithDebInfo
95
95
- name : Test C++
96
96
run : |
97
- build_artifacts/scripts/ fork_union_test_cpp17
98
- build_artifacts/scripts/ fork_union_test_cpp20
97
+ build_artifacts/fork_union_test_cpp17
98
+ build_artifacts/fork_union_test_cpp20
99
99
100
100
# Rust
101
101
- name : Set up Rust
@@ -125,8 +125,8 @@ jobs:
125
125
cmake --build build_artifacts --config RelWithDebInfo
126
126
- name : Test C++
127
127
run : |
128
- build_artifacts/scripts/ fork_union_test_cpp17
129
- build_artifacts/scripts/ fork_union_test_cpp20
128
+ build_artifacts/fork_union_test_cpp17
129
+ build_artifacts/fork_union_test_cpp20
130
130
131
131
# Rust
132
132
- name : Set up Rust
@@ -152,6 +152,8 @@ jobs:
152
152
choco install cmake
153
153
cmake -B build_artifacts -D CMAKE_BUILD_TYPE=RelWithDebInfo
154
154
cmake --build build_artifacts --config RelWithDebInfo
155
+ - name : List build artifacts
156
+ run : Get-ChildItem -Recurse .\build_artifacts
155
157
- name : Test C++
156
158
run : |
157
159
.\build_artifacts\fork_union_test_cpp17.exe
Original file line number Diff line number Diff line change 9
9
"type" : " cppdbg" ,
10
10
"request" : " launch" ,
11
11
"preLaunchTask" : " Build: Debug with GDB" ,
12
- "program" : " ${workspaceFolder}/build_debug/scripts/ fork_union_test_cpp20" ,
12
+ "program" : " ${workspaceFolder}/build_debug/fork_union_test_cpp20" ,
13
13
"cwd" : " ${workspaceFolder}" ,
14
14
"args" : [],
15
15
"setupCommands" : [
49
49
"type" : " cppdbg" ,
50
50
"request" : " launch" ,
51
51
"preLaunchTask" : " Build: Debug with LLDB" ,
52
- "program" : " ${workspaceFolder}/build_debug/scripts/ fork_union_test_cpp20" ,
52
+ "program" : " ${workspaceFolder}/build_debug/fork_union_test_cpp20" ,
53
53
"cwd" : " ${workspaceFolder}" ,
54
54
"args" : [],
55
55
"setupCommands" : [
78
78
"type" : " cppdbg" ,
79
79
"request" : " launch" ,
80
80
"preLaunchTask" : " Build: Debug with GDB" ,
81
- "program" : " ${workspaceFolder}/build_debug/scripts/ fork_union_nbody" ,
81
+ "program" : " ${workspaceFolder}/build_debug/fork_union_nbody" ,
82
82
"cwd" : " ${workspaceFolder}" ,
83
83
"args" : [],
84
84
"setupCommands" : [
Original file line number Diff line number Diff line change @@ -34,6 +34,14 @@ set_target_properties(
34
34
target_link_libraries (fork_union_dynamic PUBLIC fork_union )
35
35
target_link_libraries (fork_union_static PUBLIC fork_union )
36
36
37
+ # Set the output directory for all executables - on Windows requires more boilerplate:
38
+ # https://stackoverflow.com/a/25328001
39
+ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} )
40
+ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR} )
41
+ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR} )
42
+ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELWITHDEBINFO ${CMAKE_BINARY_DIR} )
43
+ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY_MINSIZEREL ${CMAKE_BINARY_DIR} )
44
+
37
45
# Tests & benchmarking scripts
38
46
include (CTest )
39
47
if (BUILD_TESTING )
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ foreach (STD IN LISTS CXX_STANDARDS)
48
48
PROPERTIES CXX_STANDARD ${STD}
49
49
CXX_STANDARD_REQUIRED ON
50
50
CXX_EXTENSIONS OFF
51
+ RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}
51
52
)
52
53
53
54
# register it as a CTest test
@@ -72,7 +73,6 @@ set_target_properties(
72
73
PROPERTIES CXX_STANDARD 20
73
74
CXX_STANDARD_REQUIRED ON
74
75
CXX_EXTENSIONS OFF
75
- RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}
76
76
)
77
77
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
78
78
message (STATUS "Enabling OpenMP for fork_union_nbody on GCC" )
You can’t perform that action at this time.
0 commit comments