File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ add_subdirectory(project_euler)
63
63
add_subdirectory (machine_learning )
64
64
add_subdirectory (process_scheduling_algorithms )
65
65
add_subdirectory (numerical_methods )
66
+ add_subdirectory (math )
66
67
67
68
## Configure Doxygen documentation system
68
69
cmake_policy (SET CMP0054 NEW )
Original file line number Diff line number Diff line change
1
+ # If necessary, use the RELATIVE flag, otherwise each source file may be listed
2
+ # with full pathname. The RELATIVE flag makes it easier to extract an executable's name
3
+ # automatically.
4
+
5
+ file ( GLOB APP_SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.c )
6
+ foreach ( testsourcefile ${APP_SOURCES} )
7
+ string ( REPLACE ".c" "" testname ${testsourcefile} ) # File type. Example: `.c`
8
+ add_executable ( ${testname} ${testsourcefile} )
9
+
10
+ if (OpenMP_C_FOUND )
11
+ target_link_libraries (${testname} OpenMP::OpenMP_C )
12
+ endif ()
13
+ if (MATH_LIBRARY )
14
+ target_link_libraries (${testname} ${MATH_LIBRARY} )
15
+ endif ()
16
+ install (TARGETS ${testname} DESTINATION "bin/math" ) # Folder name. Do NOT include `<>`
17
+
18
+ endforeach ( testsourcefile ${APP_SOURCES} )
You can’t perform that action at this time.
0 commit comments