CMakeLists.txt
470 Bytes
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)