Commits (1)
...@@ -40,7 +40,14 @@ include_directories(${PROJECT_SOURCE_DIR}superlu/include) ...@@ -40,7 +40,14 @@ include_directories(${PROJECT_SOURCE_DIR}superlu/include)
# Link libraries # Link libraries
link_directories(${PROJECT_SOURCE_DIR}/superlu/lib) link_directories(${PROJECT_SOURCE_DIR}/superlu/lib)
if (UNIX AND NOT APPLE)
set(SUPERLU superlu_4.3)
elseif (APPLE)
set(SUPERLU superlu_4.3_mac10.10)
elseif (WIN32)
set(SUPERLU superlu_4.3_cygwin)
endif ()
#---------------------------------------------------------------------------------------# #---------------------------------------------------------------------------------------#
# Subdirectories # Subdirectories
add_subdirectory(src) add_subdirectory(src)
\ No newline at end of file
...@@ -31,10 +31,9 @@ set(src Identify.C ...@@ -31,10 +31,9 @@ set(src Identify.C
SVD.C SVD.C
LIB_PS_Solver.C) LIB_PS_Solver.C)
set(lib_ps set(lib_ps LIB_PS/LIB_PS.C
LIB_PS/LIB_PS.C LIB_PS/LIB_PS_Matrix.C
LIB_PS/LIB_PS_Matrix.C LIB_PS/LIB_PS_Parallel.C)
LIB_PS/LIB_PS_Parallel.C)
add_library(SRC STATIC ${src}) add_library(SRC STATIC ${src})
add_library(LIB_PS STATIC ${lib_ps}) add_library(LIB_PS STATIC ${lib_ps})