Blame view

geopack/CMakeLists.txt 470 Bytes
55c4dfc0   Benjamin Renard   Add COTS for Tsyg...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
cmake_minimum_required(VERSION 2.6)

PROJECT(geopack CXX Fortran)

add_definitions( -DLINUX )

set(CMAKE_BUILD_TYPE Release)

set(CMAKE_CXX_FLAGS "-O3 -fPIC -fno-align-commons -fbounds-check -fbacktrace -ffixed-form")

file(
		GLOB
		source_files
		src/*.for
)

add_library(geopack SHARED ${source_files})

SET_TARGET_PROPERTIES(geopack PROPERTIES LINKER_LANGUAGE CXX)

install (TARGETS geopack DESTINATION lib)
install (FILES src/include/geopack.hh DESTINATION include)