cmake: added missing CMakeFiles.txt
This commit is contained in:
1
src/external/mud/CMakeLists.txt
vendored
Normal file
1
src/external/mud/CMakeLists.txt
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
add_subdirectory(src)
|
39
src/external/mud/src/CMakeLists.txt
vendored
Normal file
39
src/external/mud/src/CMakeLists.txt
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
# - mud library ---------------------------------------------------------------
|
||||||
|
|
||||||
|
#--- create pkg-config info ---------------------------------------------------
|
||||||
|
set(prefix "${CMAKE_INSTALL_PREFIX}")
|
||||||
|
set(exec_prefix "\$\{prefix\}")
|
||||||
|
set(libdir "\$\{exec_prefix\}/lib")
|
||||||
|
set(includedir "\$\{prefix\}/include")
|
||||||
|
set(MUD_VERSION "1.0.0")
|
||||||
|
set(MUD_LIBRARY_NAME "mud")
|
||||||
|
configure_file("mud.pc.in" "mud.pc" @ONLY)
|
||||||
|
|
||||||
|
#--- lib creation -------------------------------------------------------------
|
||||||
|
add_library(mud SHARED
|
||||||
|
mud_all.c
|
||||||
|
mud.c
|
||||||
|
mud_encode.c
|
||||||
|
mud_friendly.c
|
||||||
|
mud_gen.c
|
||||||
|
mud_new.c
|
||||||
|
mud_tri_ti.c
|
||||||
|
)
|
||||||
|
|
||||||
|
#--- set target properties, e.g. version --------------------------------------
|
||||||
|
set_target_properties(mud
|
||||||
|
PROPERTIES
|
||||||
|
VERSION ${MUD_VERSION}
|
||||||
|
)
|
||||||
|
|
||||||
|
#--- install mud solib --------------------------------------------------------
|
||||||
|
install(TARGETS mud DESTINATION lib)
|
||||||
|
|
||||||
|
#--- install mud header -------------------------------------------------------
|
||||||
|
install(FILES mud.h DESTINATION include)
|
||||||
|
|
||||||
|
#--- install pkg-config info --------------------------------------------------
|
||||||
|
install(
|
||||||
|
FILES ${CMAKE_CURRENT_BINARY_DIR}/mud.pc
|
||||||
|
DESTINATION lib/pkgconfig
|
||||||
|
)
|
43
src/external/nexus/CMakeLists.txt
vendored
Normal file
43
src/external/nexus/CMakeLists.txt
vendored
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
# - PNeXus library ------------------------------------------------------------
|
||||||
|
|
||||||
|
include_directories(${NEXUS_INCLUDE_DIR}) # to get the nexus headers
|
||||||
|
|
||||||
|
#--- create pkg-config info ---------------------------------------------------
|
||||||
|
set(prefix "${CMAKE_INSTALL_PREFIX}")
|
||||||
|
set(exec_prefix "\$\{prefix\}")
|
||||||
|
set(libdir "\$\{exec_prefix\}/lib")
|
||||||
|
set(includedir "\$\{prefix\}/include")
|
||||||
|
set(PNEXUS_VERSION "0.9.0")
|
||||||
|
set(PNEXUS_LIBRARY_NAME "PNeXus")
|
||||||
|
configure_file("PNeXus.pc.in" "PNeXus.pc" @ONLY)
|
||||||
|
|
||||||
|
#--- lib creation -------------------------------------------------------------
|
||||||
|
add_library(PNeXus SHARED
|
||||||
|
PNeXus.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
#--- set target properties, e.g. version --------------------------------------
|
||||||
|
set_target_properties(PNeXus
|
||||||
|
PROPERTIES
|
||||||
|
VERSION ${PNEXUS_VERSION}
|
||||||
|
)
|
||||||
|
|
||||||
|
#--- make sure that the include directory is found ----------------------------
|
||||||
|
target_include_directories(
|
||||||
|
PNeXus BEFORE PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
||||||
|
)
|
||||||
|
|
||||||
|
#--- add library dependencies -------------------------------------------------
|
||||||
|
target_link_libraries(PNeXus ${NEXUS_LIBRARY})
|
||||||
|
|
||||||
|
#--- install PNeXus solib -----------------------------------------------------
|
||||||
|
install(TARGETS PNeXus DESTINATION lib)
|
||||||
|
|
||||||
|
#--- install PNeXus header ----------------------------------------------------
|
||||||
|
install(FILES PNeXus.h DESTINATION include)
|
||||||
|
|
||||||
|
#--- install pkg-config info --------------------------------------------------
|
||||||
|
install(
|
||||||
|
FILES ${CMAKE_CURRENT_BINARY_DIR}/PNeXus.pc
|
||||||
|
DESTINATION lib/pkgconfig
|
||||||
|
)
|
Reference in New Issue
Block a user