File: CMakeLists.txt

package info (click to toggle)
gridtools 2.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 21,728 kB
  • sloc: cpp: 45,263; python: 9,383; javascript: 8,445; ansic: 2,564; sh: 509; f90: 370; makefile: 216
file content (12 lines) | stat: -rw-r--r-- 364 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
cmake_minimum_required(VERSION 3.14.5)
project(simple_example LANGUAGES CXX C Fortran)

# 1) find installed cpp_bindgen version
find_package(cpp_bindgen)

# 2) create a library with bindings
bindgen_add_library(simple SOURCES simple.cpp)

# 3) link the library to a fortran executable
add_executable(driver driver.f90)
target_link_libraries(driver simple_fortran)