WSL/SLF GitLab Repository

Commit 36d3a3eb authored by Mathias Bavay's avatar Mathias Bavay
Browse files

Finally, after learning that DLLs are not libraries but runtimes (at least for...

Finally, after learning that DLLs are not libraries but runtimes (at least for cmake), the Windows packaging works. All the generated files are back in lib, and the example Makefile and io.ini have been modified accordingly.
parent 115fcdfc
......@@ -150,11 +150,11 @@ INSTALL(FILES ${hlawsfiles} DESTINATION include/meteoio/meteolaws COMPONENT head
INSTALL(FILES ${hfilterfiles} DESTINATION include/meteoio/meteofilters COMPONENT headers)
IF(WIN32) #handle the special case of WIN32 needing import libraries
FILE(GLOB importlibs "lib/libmeteoio*.lib*")
FILE(GLOB_RECURSE importlibs "lib/libmeteoio*.lib*")
ENDIF(WIN32)
FILE(GLOB solibs "lib/libmeteoio*.${DLL_EXT}*")
FILE(GLOB plugins "lib/plugins/lib*.${DLL_EXT}*")
FILE(GLOB alibs "lib/*.${STAT_EXT}*")
FILE(GLOB_RECURSE solibs "lib/libmeteoio*.${DLL_EXT}*")
FILE(GLOB_RECURSE plugins "lib/plugins/lib*.${DLL_EXT}*")
FILE(GLOB_RECURSE alibs "lib/*.${STAT_EXT}*")
INSTALL(FILES ${solibs} ${importlibs} ${alibs} DESTINATION lib COMPONENT libraries)
INSTALL(FILES ${plugins} DESTINATION lib/meteoio/plugins COMPONENT plugins)
......
......@@ -3,7 +3,7 @@ CFLAGS = -Wall -Wextra
DEBUG = -g #-O3 # -DDEBUG -ggdb
METEOIODIR = ../../
LIBS = -rdynamic -lstdc++ -ldl -L../../meteoio/lib -lmeteoio
LIBS = -rdynamic -lstdc++ -ldl -L../../lib -lmeteoio
INCLUDE=-I. -I$(METEOIODIR)
INCLUDE_POPC=-I. -I$(METEOIODIR)
......
[General]
PLUGINPATH = ../../meteoio/lib/plugins
PLUGINPATH = ../../lib/plugins
BUFF_CHUNK_SIZE = 30
BUFF_BEFORE = 1.5
......
......@@ -90,8 +90,9 @@ ELSE(DEST MATCHES "par")
TARGET_LINK_LIBRARIES(${SHAREDNAME} ${LIBPROJ})
SET_TARGET_PROPERTIES(${SHAREDNAME} PROPERTIES
PREFIX "${LIBPREFIX}"
LIBRARY_OUTPUT_DIRECTORY lib
ARCHIVE_OUTPUT_DIRECTORY lib
LIBRARY_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/lib"
ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/lib"
RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/lib"
CLEAN_DIRECT_OUTPUT 1
VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}"
SOVERSION "${VERSION_MAJOR}"
......@@ -107,8 +108,9 @@ ENDIF(DEST MATCHES "par")
#static library
SET_TARGET_PROPERTIES(${STATICNAME} PROPERTIES
PREFIX "${LIBPREFIX}"
LIBRARY_OUTPUT_DIRECTORY lib
ARCHIVE_OUTPUT_DIRECTORY lib
LIBRARY_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/lib"
ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/lib"
RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/lib"
CLEAN_DIRECT_OUTPUT 1
OUTPUT_NAME ${STATICLIBNAME}
)
......
INCLUDE_DIRECTORIES("${PROJECT_SOURCE_DIR}/")
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
set(LIBPREFIX "lib") #make sure ALL plugins are libXXX for ALL plateforms
set(CMAKE_IMPORT_LIBRARY_PREFIX "lib") #for Visual C++ import libraries
set(PLUGIN_DIR ${PROJECT_SOURCE_DIR}/lib/plugins)
IF(DEST MATCHES "par")
SET(CMAKE_CXX_OUTPUT_EXTENSION "popc.o")
SET(ARCIONAME arciopopc)
SET(ARPSIONAME arpsiopopc)
SET(PGMIONAME pgmiopopc)
SET(SMETIONAME smetiopopc)
SET(GRASSIONAME grassiopopc)
SET(GEOTOPIONAME geotopiopopc)
SET(SNIONAME sniopopc)
SET(GSNIONAME gsniopopc)
SET(IMISIONAME imisiopopc)
SET(BORMAIONAME bormaiopopc)
SET(COSMOXMLIONAME cosmoxmliopopc)
INCLUDE(CMakeForceCompiler)
CMAKE_FORCE_C_COMPILER(popcc POPCC)
CMAKE_FORCE_CXX_COMPILER(popcc POPCC)
SET(SHAREDNAME ${PROJECT_NAME}popc)
SET(CMAKE_CXX_OUTPUT_EXTENSION "popc.o")
SET(ARCIONAME arciopopc)
SET(ARPSIONAME arpsiopopc)
SET(PGMIONAME pgmiopopc)
SET(SMETIONAME smetiopopc)
SET(GRASSIONAME grassiopopc)
SET(GEOTOPIONAME geotopiopopc)
SET(SNIONAME sniopopc)
SET(GSNIONAME gsniopopc)
SET(IMISIONAME imisiopopc)
SET(BORMAIONAME bormaiopopc)
SET(COSMOXMLIONAME cosmoxmliopopc)
INCLUDE(CMakeForceCompiler)
CMAKE_FORCE_C_COMPILER(popcc POPCC)
CMAKE_FORCE_CXX_COMPILER(popcc POPCC)
SET(SHAREDNAME ${PROJECT_NAME}popc)
ELSE(DEST)
SET(GRASSIONAME grassio)
SET(ARCIONAME arcio)
SET(ARPSIONAME arpsio)
SET(PGMIONAME pgmio)
SET(SMETIONAME smetio)
SET(GEOTOPIONAME geotopio)
SET(SNIONAME snio)
SET(GSNIONAME gsnio)
SET(IMISIONAME imisio)
SET(BORMAIONAME bormaio)
SET(COSMOXMLIONAME cosmoxmlio)
SET(SHAREDNAME ${PROJECT_NAME})
SET(GRASSIONAME grassio)
SET(ARCIONAME arcio)
SET(ARPSIONAME arpsio)
SET(PGMIONAME pgmio)
SET(SMETIONAME smetio)
SET(GEOTOPIONAME geotopio)
SET(SNIONAME snio)
SET(GSNIONAME gsnio)
SET(IMISIONAME imisio)
SET(BORMAIONAME bormaio)
SET(COSMOXMLIONAME cosmoxmlio)
SET(SHAREDNAME ${PROJECT_NAME})
ENDIF(DEST MATCHES "par")
#LINK_DIRECTORIES(lib)
IF(PLUGIN_SMETIO)
ADD_LIBRARY(${SMETIONAME} SMETIO.cc)
TARGET_LINK_LIBRARIES(${SMETIONAME} ${SHAREDNAME})
SET_TARGET_PROPERTIES(${SMETIONAME} PROPERTIES
PREFIX "${LIBPREFIX}"
LIBRARY_OUTPUT_DIRECTORY lib/plugins
VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}
SOVERSION ${VERSION_MAJOR})
SET(MYPLUGINS ${MYPLUGINS} ${SMETIONAME})
ADD_LIBRARY(${SMETIONAME} SMETIO.cc)
TARGET_LINK_LIBRARIES(${SMETIONAME} ${SHAREDNAME})
SET_TARGET_PROPERTIES(${SMETIONAME} PROPERTIES
PREFIX "${LIBPREFIX}"
LIBRARY_OUTPUT_DIRECTORY ${PLUGIN_DIR}
RUNTIME_OUTPUT_DIRECTORY ${PLUGIN_DIR}
VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}
SOVERSION ${VERSION_MAJOR})
SET(MYPLUGINS ${MYPLUGINS} ${SMETIONAME})
ENDIF(PLUGIN_SMETIO)
IF(PLUGIN_ARCIO)
ADD_LIBRARY(${ARCIONAME} ARCIO.cc)
TARGET_LINK_LIBRARIES(${ARCIONAME} ${SHAREDNAME})
SET_TARGET_PROPERTIES(${ARCIONAME} PROPERTIES
PREFIX "${LIBPREFIX}"
LIBRARY_OUTPUT_DIRECTORY lib/plugins
VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}
SOVERSION ${VERSION_MAJOR})
SET(MYPLUGINS ${MYPLUGINS} ${ARCIONAME})
ADD_LIBRARY(${ARCIONAME} ARCIO.cc)
TARGET_LINK_LIBRARIES(${ARCIONAME} ${SHAREDNAME})
SET_TARGET_PROPERTIES(${ARCIONAME} PROPERTIES
PREFIX "${LIBPREFIX}"
LIBRARY_OUTPUT_DIRECTORY ${PLUGIN_DIR}
RUNTIME_OUTPUT_DIRECTORY ${PLUGIN_DIR}
VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}
SOVERSION ${VERSION_MAJOR})
SET(MYPLUGINS ${MYPLUGINS} ${ARCIONAME})
ENDIF(PLUGIN_ARCIO)
IF(PLUGIN_PGMIO)
ADD_LIBRARY(${PGMIONAME} PGMIO.cc)
TARGET_LINK_LIBRARIES(${PGMIONAME} ${SHAREDNAME})
SET_TARGET_PROPERTIES(${PGMIONAME} PROPERTIES
PREFIX "${LIBPREFIX}"
LIBRARY_OUTPUT_DIRECTORY lib/plugins
VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}
SOVERSION ${VERSION_MAJOR})
SET(MYPLUGINS ${MYPLUGINS} ${PGMIONAME})
ADD_LIBRARY(${PGMIONAME} PGMIO.cc)
TARGET_LINK_LIBRARIES(${PGMIONAME} ${SHAREDNAME})
SET_TARGET_PROPERTIES(${PGMIONAME} PROPERTIES
PREFIX "${LIBPREFIX}"
LIBRARY_OUTPUT_DIRECTORY ${PLUGIN_DIR}
RUNTIME_OUTPUT_DIRECTORY ${PLUGIN_DIR}
VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}
SOVERSION ${VERSION_MAJOR})
SET(MYPLUGINS ${MYPLUGINS} ${PGMIONAME})
ENDIF(PLUGIN_PGMIO)
IF(PLUGIN_ARPSIO)
ADD_LIBRARY(${ARPSIONAME} ARPSIO.cc)
TARGET_LINK_LIBRARIES(${ARPSIONAME} ${SHAREDNAME})
SET_TARGET_PROPERTIES(${ARPSIONAME} PROPERTIES
PREFIX "${LIBPREFIX}"
LIBRARY_OUTPUT_DIRECTORY lib/plugins
VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}
SOVERSION ${VERSION_MAJOR})
SET(MYPLUGINS ${MYPLUGINS} ${ARPSIONAME})
ADD_LIBRARY(${ARPSIONAME} ARPSIO.cc)
TARGET_LINK_LIBRARIES(${ARPSIONAME} ${SHAREDNAME})
SET_TARGET_PROPERTIES(${ARPSIONAME} PROPERTIES
PREFIX "${LIBPREFIX}"
LIBRARY_OUTPUT_DIRECTORY ${PLUGIN_DIR}
RUNTIME_OUTPUT_DIRECTORY ${PLUGIN_DIR}
VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}
SOVERSION ${VERSION_MAJOR})
SET(MYPLUGINS ${MYPLUGINS} ${ARPSIONAME})
ENDIF(PLUGIN_ARPSIO)
IF(PLUGIN_GRASSIO)
ADD_LIBRARY(${GRASSIONAME} GrassIO.cc)
TARGET_LINK_LIBRARIES(${GRASSIONAME} ${SHAREDNAME})
SET_TARGET_PROPERTIES(${GRASSIONAME} PROPERTIES
PREFIX "${LIBPREFIX}"
LIBRARY_OUTPUT_DIRECTORY lib/plugins
VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}
SOVERSION ${VERSION_MAJOR})
SET(MYPLUGINS ${MYPLUGINS} ${GRASSIONAME})
ADD_LIBRARY(${GRASSIONAME} GrassIO.cc)
TARGET_LINK_LIBRARIES(${GRASSIONAME} ${SHAREDNAME})
SET_TARGET_PROPERTIES(${GRASSIONAME} PROPERTIES
PREFIX "${LIBPREFIX}"
LIBRARY_OUTPUT_DIRECTORY ${PLUGIN_DIR}
RUNTIME_OUTPUT_DIRECTORY ${PLUGIN_DIR}
VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}
SOVERSION ${VERSION_MAJOR})
SET(MYPLUGINS ${MYPLUGINS} ${GRASSIONAME})
ENDIF(PLUGIN_GRASSIO)
IF(PLUGIN_GEOTOPIO)
ADD_LIBRARY(${GEOTOPIONAME} GeotopIO.cc)
TARGET_LINK_LIBRARIES(${GEOTOPIONAME} ${SHAREDNAME})
SET_TARGET_PROPERTIES(${GEOTOPIONAME} PROPERTIES
PREFIX "${LIBPREFIX}"
LIBRARY_OUTPUT_DIRECTORY lib/plugins
VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}
SOVERSION ${VERSION_MAJOR})
SET(MYPLUGINS ${MYPLUGINS} ${GEOTOPIONAME})
ADD_LIBRARY(${GEOTOPIONAME} GeotopIO.cc)
TARGET_LINK_LIBRARIES(${GEOTOPIONAME} ${SHAREDNAME})
SET_TARGET_PROPERTIES(${GEOTOPIONAME} PROPERTIES
PREFIX "${LIBPREFIX}"
LIBRARY_OUTPUT_DIRECTORY ${PLUGIN_DIR}
RUNTIME_OUTPUT_DIRECTORY ${PLUGIN_DIR}
VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}
SOVERSION ${VERSION_MAJOR})
SET(MYPLUGINS ${MYPLUGINS} ${GEOTOPIONAME})
ENDIF(PLUGIN_GEOTOPIO)
IF(PLUGIN_SNIO)
ADD_LIBRARY(${SNIONAME} SNIO.cc)
TARGET_LINK_LIBRARIES(${SNIONAME} ${SHAREDNAME})
SET_TARGET_PROPERTIES(${SNIONAME} PROPERTIES
PREFIX "${LIBPREFIX}"
LIBRARY_OUTPUT_DIRECTORY lib/plugins
VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}
SOVERSION ${VERSION_MAJOR})
SET(MYPLUGINS ${MYPLUGINS} ${SNIONAME})
ADD_LIBRARY(${SNIONAME} SNIO.cc)
TARGET_LINK_LIBRARIES(${SNIONAME} ${SHAREDNAME})
SET_TARGET_PROPERTIES(${SNIONAME} PROPERTIES
PREFIX "${LIBPREFIX}"
LIBRARY_OUTPUT_DIRECTORY ${PLUGIN_DIR}
RUNTIME_OUTPUT_DIRECTORY ${PLUGIN_DIR}
VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}
SOVERSION ${VERSION_MAJOR})
SET(MYPLUGINS ${MYPLUGINS} ${SNIONAME})
ENDIF(PLUGIN_SNIO)
IF(PLUGIN_GSNIO)
INCLUDE_DIRECTORIES(${INCLUDE_DIRECTORIES} "/usr/include")
#gsoap generates files that do lots of warnings, there is nothing we can do about it -> off
SET_SOURCE_FILES_PROPERTIES(gsn/soapC.cpp PROPERTIES COMPILE_FLAGS "-w")
SET_SOURCE_FILES_PROPERTIES(gsn/soapC.cpp PROPERTIES GENERATED TRUE)
SET_SOURCE_FILES_PROPERTIES(gsn/soapA3DWebServiceSoap12BindingProxy.cpp PROPERTIES GENERATED TRUE)
ADD_LIBRARY(${GSNIONAME} GSNIO.cc gsn/soapA3DWebServiceSoap12BindingProxy.cpp gsn/soapC.cpp)
TARGET_LINK_LIBRARIES(${GSNIONAME} ${GSOAPPP} ${SHAREDNAME})
ADD_DEPENDENCIES(${GSNIONAME} wsdl2cpp gsnclient)
SET_TARGET_PROPERTIES(${GSNIONAME} PROPERTIES
PREFIX "${LIBPREFIX}"
LIBRARY_OUTPUT_DIRECTORY lib/plugins
VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}
SOVERSION ${VERSION_MAJOR})
#necessary because gsoap uses long long
SET_TARGET_PROPERTIES(${GSNIONAME} PROPERTIES COMPILE_FLAGS "-Wno-long-long")
SET(MYPLUGINS ${MYPLUGINS} ${GSNIONAME})
INCLUDE_DIRECTORIES(${INCLUDE_DIRECTORIES} "/usr/include")
#gsoap generates files that do lots of warnings, there is nothing we can do about it -> off
SET_SOURCE_FILES_PROPERTIES(gsn/soapC.cpp PROPERTIES COMPILE_FLAGS "-w")
SET_SOURCE_FILES_PROPERTIES(gsn/soapC.cpp PROPERTIES GENERATED TRUE)
SET_SOURCE_FILES_PROPERTIES(gsn/soapA3DWebServiceSoap12BindingProxy.cpp PROPERTIES GENERATED TRUE)
ADD_LIBRARY(${GSNIONAME} GSNIO.cc gsn/soapA3DWebServiceSoap12BindingProxy.cpp gsn/soapC.cpp)
TARGET_LINK_LIBRARIES(${GSNIONAME} ${GSOAPPP} ${SHAREDNAME})
ADD_DEPENDENCIES(${GSNIONAME} wsdl2cpp gsnclient)
SET_TARGET_PROPERTIES(${GSNIONAME} PROPERTIES
PREFIX "${LIBPREFIX}"
LIBRARY_OUTPUT_DIRECTORY ${PLUGIN_DIR}
RUNTIME_OUTPUT_DIRECTORY ${PLUGIN_DIR}
VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}
SOVERSION ${VERSION_MAJOR})
#necessary because gsoap uses long long
SET_TARGET_PROPERTIES(${GSNIONAME} PROPERTIES COMPILE_FLAGS "-Wno-long-long")
SET(MYPLUGINS ${MYPLUGINS} ${GSNIONAME})
ENDIF(PLUGIN_GSNIO)
IF(PLUGIN_IMISIO)
FIND_PACKAGE(OCCI)
INCLUDE_DIRECTORIES(${INCLUDE_DIRECTORIES} ${OCCI_INCLUDE_DIR})
ADD_LIBRARY(${IMISIONAME} ImisIO.cc)
TARGET_LINK_LIBRARIES(${IMISIONAME} ${OCCI_LIBRARIES} ${SHAREDNAME})
SET_TARGET_PROPERTIES(${IMISIONAME} PROPERTIES
PREFIX "${LIBPREFIX}"
LIBRARY_OUTPUT_DIRECTORY lib/plugins
VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}
SOVERSION ${VERSION_MAJOR})
SET(MYPLUGINS ${MYPLUGINS} ${IMISIONAME})
FIND_PACKAGE(OCCI)
INCLUDE_DIRECTORIES(${INCLUDE_DIRECTORIES} ${OCCI_INCLUDE_DIR})
ADD_LIBRARY(${IMISIONAME} ImisIO.cc)
TARGET_LINK_LIBRARIES(${IMISIONAME} ${OCCI_LIBRARIES} ${SHAREDNAME})
SET_TARGET_PROPERTIES(${IMISIONAME} PROPERTIES
PREFIX "${LIBPREFIX}"
LIBRARY_OUTPUT_DIRECTORY ${PLUGIN_DIR}
RUNTIME_OUTPUT_DIRECTORY ${PLUGIN_DIR}
VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}
SOVERSION ${VERSION_MAJOR})
SET(MYPLUGINS ${MYPLUGINS} ${IMISIONAME})
ENDIF(PLUGIN_IMISIO)
IF(PLUGIN_BORMAIO)
FIND_PACKAGE(LibXML++ REQUIRED)
INCLUDE_DIRECTORIES(${LibXML++_INCLUDE_DIRS})
ADD_LIBRARY(${BORMAIONAME} BormaIO.cc)
TARGET_LINK_LIBRARIES(${BORMAIONAME} ${LibXML++_LIBRARIES} ${SHAREDNAME})
SET_TARGET_PROPERTIES(${BORMAIONAME} PROPERTIES
PREFIX "${LIBPREFIX}"
LIBRARY_OUTPUT_DIRECTORY lib/plugins
VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}
SOVERSION ${VERSION_MAJOR})
SET(MYPLUGINS ${MYPLUGINS} ${BORMAIONAME})
FIND_PACKAGE(LibXML++ REQUIRED)
INCLUDE_DIRECTORIES(${LibXML++_INCLUDE_DIRS})
ADD_LIBRARY(${BORMAIONAME} BormaIO.cc)
TARGET_LINK_LIBRARIES(${BORMAIONAME} ${LibXML++_LIBRARIES} ${SHAREDNAME})
SET_TARGET_PROPERTIES(${BORMAIONAME} PROPERTIES
PREFIX "${LIBPREFIX}"
LIBRARY_OUTPUT_DIRECTORY ${PLUGIN_DIR}
RUNTIME_OUTPUT_DIRECTORY ${PLUGIN_DIR}
VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}
SOVERSION ${VERSION_MAJOR})
SET(MYPLUGINS ${MYPLUGINS} ${BORMAIONAME})
ENDIF(PLUGIN_BORMAIO)
IF(PLUGIN_COSMOXMLIO)
FIND_PACKAGE(LibXML++ REQUIRED)
INCLUDE_DIRECTORIES(${LibXML++_INCLUDE_DIRS})
ADD_LIBRARY(${COSMOXMLIONAME} CosmoXMLIO.cc)
TARGET_LINK_LIBRARIES(${COSMOXMLIONAME} ${LibXML++_LIBRARIES} ${SHAREDNAME})
SET_TARGET_PROPERTIES(${COSMOXMLIONAME} PROPERTIES
PREFIX "${LIBPREFIX}"
LIBRARY_OUTPUT_DIRECTORY lib/plugins
VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}
SOVERSION ${VERSION_MAJOR})
SET(MYPLUGINS ${MYPLUGINS} ${COSMOXMLIONAME})
FIND_PACKAGE(LibXML++ REQUIRED)
INCLUDE_DIRECTORIES(${LibXML++_INCLUDE_DIRS})
ADD_LIBRARY(${COSMOXMLIONAME} CosmoXMLIO.cc)
TARGET_LINK_LIBRARIES(${COSMOXMLIONAME} ${LibXML++_LIBRARIES} ${SHAREDNAME})
SET_TARGET_PROPERTIES(${COSMOXMLIONAME} PROPERTIES
PREFIX "${LIBPREFIX}"
LIBRARY_OUTPUT_DIRECTORY ${PLUGIN_DIR}
RUNTIME_OUTPUT_DIRECTORY ${PLUGIN_DIR}
VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}
SOVERSION ${VERSION_MAJOR})
SET(MYPLUGINS ${MYPLUGINS} ${COSMOXMLIONAME})
ENDIF(PLUGIN_COSMOXMLIO)
INSTALL(TARGETS ${MYPLUGINS}
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib/meteoio/plugins
ARCHIVE DESTINATION lib/meteoio/plugins
COMPONENT plugins
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib/meteoio/plugins
ARCHIVE DESTINATION lib/meteoio/plugins
COMPONENT plugins
)
Supports Markdown
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