File tree 2 files changed +13
-11
lines changed
2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 1
- PROJECT (ALGORITHM_MODULE )
1
+ cmake_minimum_required ( VERSION 3.10 )
2
2
3
- IF (CMAKE_BUILD_TYPE STREQUAL Debug)
4
- SET (DEBUG YES )
5
- ELSE ()
6
- SET (DEBUG NO )
7
- ENDIF ()
3
+ project (ALGORITHM_MODULE)
8
4
9
- INCLUDE_DIRECTORIES (${ALGORITHM_MODULE_SOURCE_DIR} /include )
10
- LINK_DIRECTORIES (${ALGORITHM_MODULE_SOURCE_DIR} /lib)
5
+ if (CMAKE_BUILD_TYPE STREQUAL Debug)
6
+ set (DEBUG YES )
7
+ else ()
8
+ set (DEBUG NO )
9
+ endif ()
11
10
12
- ADD_SUBDIRECTORY (src)
11
+ include_directories (${ALGORITHM_MODULE_SOURCE_DIR} /include )
12
+ link_directories (${ALGORITHM_MODULE_SOURCE_DIR} /lib)
13
+
14
+ add_subdirectory (src)
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ SET(EXECUTABLE_OUTPUT_PATH ${ALGORITHM_MODULE_SOURCE_DIR}/bin)
3
3
aux_source_directory (. SRC_LIST)
4
4
5
5
FOREACH (source_file ${SRC_LIST} )
6
- STRING (REGEX REPLACE "_main.cpp" "" bin_name "${source_file} " )
6
+ STRING (REGEX REPLACE "(./)|( _main.cpp) " "" bin_name "${source_file} " )
7
7
ADD_EXECUTABLE ("${bin_name} " "${source_file} " )
8
8
TARGET_LINK_LIBRARIES ("${bin_name} " algorithm_module)
9
- ENDFOREACH ()
9
+ ENDFOREACH ()
You can’t perform that action at this time.
0 commit comments