| 1 |
# CMakeLists.txt for pmg |
| 2 |
# Author: N.S. Oblath |
| 3 |
# |
| 4 |
# Builds pmg library |
| 5 |
|
| 6 |
message(STATUS "Building pmg") |
| 7 |
|
| 8 |
include_directories(${CMAKE_CURRENT_SOURCE_DIR}) |
| 9 |
|
| 10 |
# Prepare variables for the build |
| 11 |
setup_for_build() |
| 12 |
|
| 13 |
# Add header files |
| 14 |
#add_build_items( |
| 15 |
# TYPE EXTERNAL_HEADERS |
| 16 |
# ITEMS ... |
| 17 |
#) |
| 18 |
|
| 19 |
add_build_items( |
| 20 |
TYPE INTERNAL_HEADERS |
| 21 |
ITEMS vpmg.h |
| 22 |
) |
| 23 |
|
| 24 |
# Add source files |
| 25 |
# Commented labels were how the source files were organized in the original Makefile.am |
| 26 |
add_build_items( |
| 27 |
TYPE SOURCES |
| 28 |
ITEMS buildAd.c buildBd.c buildGd.c buildPd.c cgd.c cgmgd.c cgmgdrvd.c gsd.c matvecd.c mblasd.c mgcsd.c mgdrvd.c mgfasd.c mgsubd.c mikpckd.c mlinpckd.c ncgd.c ncgdrvd.c newdrvd.c newtond.c ngsd.c ngsdrvd.c ninterpd.c nrchd.c nrchdrvd.c nsmoothd.c nsord.c nsordrvd.c nwjd.c nwjdrvd.c powerd.c rchd.c smoothd.c sord.c wjd.c |
| 29 |
) |
| 30 |
|
| 31 |
#message(STATUS "internal headers: ${INTERNAL_HEADERS}") |
| 32 |
#message(STATUS "external headers: ${EXTERNAL_HEADERS}") |
| 33 |
#message(STATUS "sources: ${SOURCES}") |
| 34 |
|
| 35 |
add_library(pmg ${SOURCES} ${EXTERNAL_HEADERS} ${INTERNAL_HEADERS}) |
| 36 |
#target_link_libraries(pmg ${MALOC_EXT_LIBS}) |
| 37 |
|
| 38 |
install(FILES ${EXTERNAL_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) |
| 39 |
install(TARGETS pmg DESTINATION ${CMAKE_INSTALL_LIBDIR}) |