We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50ca2b2 commit 2c463d8Copy full SHA for 2c463d8
1 file changed
Use-Cases/CMakeLists.txt
@@ -0,0 +1,20 @@
1
+cmake_minimum_required(VERSION 3.20)
2
+project(Use-Cases LANGUAGES C Fortran)
3
+
4
+set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
5
6
+set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -c -cpp -Wall -Wuninitialized -Wmaybe-uninitialized")
7
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -c -Wall -Wuninitialized -Wmaybe-uninitialized")
8
9
+file(GLOB F90_SRCS "*.f90")
10
+file(GLOB C_SRCS "*.c")
11
12
+foreach(src ${F90_SRCS})
13
+ get_filename_component(prog ${src} NAME_WE)
14
+ add_executable(${prog} ${src})
15
+endforeach()
16
17
+foreach(src ${C_SRCS})
18
19
20
0 commit comments