Commit 3df3e8e4 authored by Elisa Rebolini's avatar Elisa Rebolini
Browse files

Matching cmakelist for the API

parent a001edb2
Pipeline #8022 failed with stages
in 12 minutes and 4 seconds
......@@ -11,10 +11,12 @@ cmake_minimum_required(VERSION 2.8.0 FATAL_ERROR)
# The project is declared. It is a Fortran project.
project(Python_API Fortran)
set(LIBRARY_NAME crysfml_api)
add_library(${LIBRARY_NAME} SHARED Extensions/API_init.f90
Extensions/API_Crystallographic_Symmetry.f90
Extensions/API_IO_Formats.f90
Extensions/forpy_mod.f90)
add_library(${LIBRARY_NAME} SHARED
Extensions/API_init.f90
Extensions/API_Crystallographic_Symmetry.f90
Extensions/API_Crystal_Metrics.f90
Extensions/API_IO_Formats.f90
Extensions/forpy_mod.f90)
# Forpy must be preprocessed
set_source_files_properties(forpy_mod.f90 PROPERTIES COMPILE_FLAG "-cpp")
......@@ -66,4 +68,4 @@ install(TARGETS ${LIBRARY_NAME} LIBRARY DESTINATION ${PYTHON_API_PREFIX}/CFML_ap
endif()
# Installing example files
install(DIRECTORY "../Examples" DESTINATION ${PYTHON_API_PREFIX} FILES_MATCHING PATTERN "*.py")
install(DIRECTORY "../Examples/Data" DESTINATION ${PYTHON_API_PREFIX}/Examples FILES_MATCHING PATTERN "*.cfl" PATTERN "*.cif")
\ No newline at end of file
install(DIRECTORY "../Examples/Data" DESTINATION ${PYTHON_API_PREFIX}/Examples FILES_MATCHING PATTERN "*.cfl" PATTERN "*.cif")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment