mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-25 06:49:36 +03:00
find openmp declared required only once
added subfolders after finding openmp
This commit is contained in:
parent
2a9b520ab7
commit
aa98625b45
@ -48,13 +48,6 @@ endif(MSVC)
|
|||||||
|
|
||||||
find_library(MATH_LIBRARY m)
|
find_library(MATH_LIBRARY m)
|
||||||
|
|
||||||
add_subdirectory(conversions)
|
|
||||||
add_subdirectory(misc)
|
|
||||||
add_subdirectory(project_euler)
|
|
||||||
add_subdirectory(sorting)
|
|
||||||
add_subdirectory(searching)
|
|
||||||
add_subdirectory(numerical_methods)
|
|
||||||
|
|
||||||
if(USE_OPENMP)
|
if(USE_OPENMP)
|
||||||
find_package(OpenMP)
|
find_package(OpenMP)
|
||||||
if (OpenMP_C_FOUND)
|
if (OpenMP_C_FOUND)
|
||||||
@ -64,6 +57,13 @@ if(USE_OPENMP)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
add_subdirectory(conversions)
|
||||||
|
add_subdirectory(misc)
|
||||||
|
add_subdirectory(project_euler)
|
||||||
|
add_subdirectory(sorting)
|
||||||
|
add_subdirectory(searching)
|
||||||
|
add_subdirectory(numerical_methods)
|
||||||
|
|
||||||
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
|
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
|
||||||
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
|
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
|
||||||
include(CPack)
|
include(CPack)
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
if(USE_OPENMP)
|
|
||||||
find_package(OpenMP)
|
|
||||||
endif(USE_OPENMP)
|
|
||||||
# If necessary, use the RELATIVE flag, otherwise each source file may be listed
|
# If necessary, use the RELATIVE flag, otherwise each source file may be listed
|
||||||
# with full pathname. RELATIVE may makes it easier to extract an executable name
|
# with full pathname. RELATIVE may makes it easier to extract an executable name
|
||||||
# automatically.
|
# automatically.
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
if(USE_OPENMP)
|
|
||||||
find_package(OpenMP)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# If necessary, use the RELATIVE flag, otherwise each source file may be listed
|
# If necessary, use the RELATIVE flag, otherwise each source file may be listed
|
||||||
# with full pathname. RELATIVE may makes it easier to extract an executable name
|
# with full pathname. RELATIVE may makes it easier to extract an executable name
|
||||||
# automatically.
|
# automatically.
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
if(USE_OPENMP)
|
|
||||||
find_package(OpenMP)
|
|
||||||
endif(USE_OPENMP)
|
|
||||||
# If necessary, use the RELATIVE flag, otherwise each source file may be listed
|
# If necessary, use the RELATIVE flag, otherwise each source file may be listed
|
||||||
# with full pathname. RELATIVE may makes it easier to extract an executable name
|
# with full pathname. RELATIVE may makes it easier to extract an executable name
|
||||||
# automatically.
|
# automatically.
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
if(USE_OPENMP)
|
|
||||||
find_package(OpenMP)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# If necessary, use the RELATIVE flag, otherwise each source file may be listed
|
# If necessary, use the RELATIVE flag, otherwise each source file may be listed
|
||||||
# with full pathname. RELATIVE may makes it easier to extract an executable name
|
# with full pathname. RELATIVE may makes it easier to extract an executable name
|
||||||
# automatically.
|
# automatically.
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
if(USE_OPENMP)
|
|
||||||
find_package(OpenMP)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# If necessary, use the RELATIVE flag, otherwise each source file may be listed
|
# If necessary, use the RELATIVE flag, otherwise each source file may be listed
|
||||||
# with full pathname. RELATIVE may makes it easier to extract an executable name
|
# with full pathname. RELATIVE may makes it easier to extract an executable name
|
||||||
# automatically.
|
# automatically.
|
||||||
|
Loading…
Reference in New Issue
Block a user