File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ add_subdirectory(machine_learning)
64
64
add_subdirectory (process_scheduling_algorithms )
65
65
add_subdirectory (numerical_methods )
66
66
add_subdirectory (math )
67
+ add_subdirectory (cipher )
67
68
68
69
## Configure Doxygen documentation system
69
70
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/cipher" ) # Folder name. Do NOT include `<>`
17
+
18
+ endforeach ( testsourcefile ${APP_SOURCES} )
File renamed without changes.
You can’t perform that action at this time.
0 commit comments