diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 076a92b..ce1be04 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.10) -project(extent-sampling VERSION 0.1.0) +project(nsmc VERSION 0.1.0) find_package(GSL REQUIRED) find_program(SC NAMES sc REQUIRED) @@ -42,17 +42,17 @@ endforeach() include_directories("include") # Build and install shared library with headers. -add_library(extentsampling SHARED ${C_SOURCES}) -target_link_libraries(extentsampling -lgsl -lgslcblas) -set_target_properties(extentsampling PROPERTIES +add_library(nsmc SHARED ${C_SOURCES}) +target_link_libraries(nsmc -lgsl -lgslcblas) +set_target_properties(nsmc PROPERTIES PUBLIC_HEADER "include/extent-sampling.h;include/gaussian-nd-random.h;include/nd-random.h;include/oracles.h") -install(TARGETS extentsampling LIBRARY - PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/extent-sampling) +install(TARGETS nsmc LIBRARY + PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/nsmc) # Build and install scheme wrapper. if(${GUILE_FOUND}) - configure_file(scm/extent-sampling/load-libs.scm.in scm/extent-sampling/load-libs.scm) - set(SCM_WRAPPER_PATH scm/extent-sampling/wrap.scm) + configure_file(scm/nsmc/load-libs.scm.in scm/nsmc/load-libs.scm) + set(SCM_WRAPPER_PATH scm/nsmc/wrap.scm) change_extension(SCM_WRAPPER_GO_PATH ${SCM_WRAPPER_PATH} go) add_custom_command( OUTPUT ${SCM_WRAPPER_GO_PATH} @@ -64,12 +64,12 @@ if(${GUILE_FOUND}) string(REPLACE "." ";" GUILE_VERSION_LIST ${GUILE_VERSION}) list(GET GUILE_VERSION_LIST 0 GUILE_MAJOR_VERSION) list(GET GUILE_VERSION_LIST 1 GUILE_MINOR_VERSION) - install(FILES ${CMAKE_BINARY_DIR}/scm/extent-sampling/load-libs.scm - DESTINATION ${CMAKE_INSTALL_DATADIR}/guile/site/${GUILE_MAJOR_VERSION}.${GUILE_MINOR_VERSION}/extent-sampling) + install(FILES ${CMAKE_BINARY_DIR}/scm/nsmc/load-libs.scm + DESTINATION ${CMAKE_INSTALL_DATADIR}/guile/site/${GUILE_MAJOR_VERSION}.${GUILE_MINOR_VERSION}/nsmc) install(FILES ${CMAKE_BINARY_DIR}/${SCM_WRAPPER_PATH} - DESTINATION ${CMAKE_INSTALL_DATADIR}/guile/site/${GUILE_MAJOR_VERSION}.${GUILE_MINOR_VERSION}/extent-sampling) + DESTINATION ${CMAKE_INSTALL_DATADIR}/guile/site/${GUILE_MAJOR_VERSION}.${GUILE_MINOR_VERSION}/nsmc) install(FILES ${CMAKE_BINARY_DIR}/${SCM_WRAPPER_GO_PATH} - DESTINATION ${CMAKE_INSTALL_LIBDIR}/guile/site/${GUILE_MAJOR_VERSION}.${GUILE_MINOR_VERSION}/site-ccache/extent-sampling) + DESTINATION ${CMAKE_INSTALL_LIBDIR}/guile/site/${GUILE_MAJOR_VERSION}.${GUILE_MINOR_VERSION}/site-ccache/nsmc) endif() # Configure environment wrapper script. |