Commit 7bb77977 authored by jclamber's avatar jclamber

change libnemo.so to libnemo.a

git-svn-id: http://svn.oamp.fr/repos/unsio/trunk@176 ce2cc22f-6084-46ce-a062-084b172ee5dc
parent 1de8e72e
......@@ -27,7 +27,7 @@ MESSAGE( STATUS "PROJECT_SOURCE_DIR: " ${PROJECT_SOURCE_DIR} )
MESSAGE( STATUS "CMAKE_BUILD_TYPE =" ${CMAKE_BUILD_TYPE} )
MESSAGE( STATUS "CMAKE_CXX_FLAGS =" ${CMAKE_CXX_FLAGS} )
MESSAGE( STATUS "LIBRARY TYPE =" ${LIBTYPE} )
#MESSAGE( STATUS "LIBRARY TYPE =" ${LIBTYPE} )
MESSAGE( STATUS "nemolight OPT =" ${OPT} )
......@@ -36,13 +36,15 @@ MESSAGE( STATUS "nemolight OPT =" ${OPT} )
# Find all the sources for the utils LIB
FILE(GLOB LIBUTILS ../src/*.c )
# create the library "libnemo.so"
add_library (nemo ${LIBTYPE} ${LIBUTILS})
#add_library (nemo ${LIBTYPE} ${LIBUTILS})
add_library (nemo STATIC ${LIBUTILS})
# Lib : libnemomaing77.so
# Find all the sources for old fortran compiler
FILE(GLOB LIBUTILS ../src/fortran_old_gcc/*.c )
# create the library "libnemomaing77.so"
add_library (nemomaing77 ${LIBTYPE} ${LIBUTILS})
#add_library (nemomaing77 ${LIBTYPE} ${LIBUTILS})
add_library (nemomaing77 STATIC ${LIBUTILS})
if(OSX)
set_target_properties(nemo PROPERTIES LINK_FLAGS "-undefined suppress -flat_namespace")
......
......@@ -213,8 +213,8 @@ INSTALL(FILES ${UNSIO_BINARY_DIR}/../src/userselection.h DESTINATION inc/uns)
IF (NOT NEMO_INSTALLED)
# install nemo lib
INSTALL(FILES ${NEMOLIGHT}/lib/libnemo.${LIBEXT} DESTINATION lib)
INSTALL(FILES ${NEMOLIGHT}/lib/libnemomaing77.${LIBEXT} DESTINATION lib)
INSTALL(FILES ${NEMOLIGHT}/lib/libnemo.a DESTINATION lib)
INSTALL(FILES ${NEMOLIGHT}/lib/libnemomaing77.a DESTINATION lib)
# Find all NEMOLIGHT header files
FILE(GLOB nlight_files ${NEMOLIGHT}/src/*.h ${NEMOLIGHT}/src/inc/*.h)
......
......@@ -74,9 +74,9 @@ ELSE (OSX) # Linux
SET(SOEXT "so")
ENDIF(OSX)
SWIG_ADD_MODULE(${MODULENAME} python ${INTERFACE} ${execpp_sources} ${UNSIOPATH}/lib/libunsio.${SOEXT} ${UNSIOPATH}/lib/libnemo.${SOEXT} )
SWIG_ADD_MODULE(${MODULENAME} python ${INTERFACE} ${execpp_sources} ${UNSIOPATH}/lib/libunsio.${SOEXT} ${UNSIOPATH}/lib/libnemo.a )
SWIG_LINK_LIBRARIES(${MODULENAME} ${PYTHON_LIBRARIES} ${UNSIOPATH}/lib/libunsio.${SOEXT} ${UNSIOPATH}/lib/libnemo.${SOEXT} ${SQLITE3_LIB_PATH}/libsqlite3.${SOEXT} )
SWIG_LINK_LIBRARIES(${MODULENAME} ${PYTHON_LIBRARIES} ${UNSIOPATH}/lib/libunsio.${SOEXT} ${UNSIOPATH}/lib/libnemo.a ${SQLITE3_LIB_PATH}/libsqlite3.${SOEXT} )
# ----------------------------------------------------------
# Install SETUP
# ----------------------------------------------------------
......
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