forked from AndySomogyi/sbmlsolver
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0u812
committed
Apr 14, 2015
1 parent
24c825b
commit 9a2e95d
Showing
328 changed files
with
131,169 additions
and
131,169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,84 +1,84 @@ | ||
CMAKE_MINIMUM_REQUIRED(VERSION 2.8) | ||
project(rr-libstruct) | ||
|
||
# Option that allows users to build static and/or shared libraries | ||
# ---------------------------------------------------------------- | ||
OPTION(LIBSTRUCT_BUILD_STATIC_LIBS "Build static libraries" ON) | ||
OPTION(LIBSTRUCT_BUILD_SHARED_LIBS "Build shared libraries" OFF) | ||
set(target rr-libstruct) | ||
|
||
set(sources | ||
lsMatrix | ||
lsLibStructural | ||
lsSBMLModel | ||
lsUtils | ||
lsLibla | ||
lsLA | ||
lsLUResult | ||
) | ||
|
||
|
||
include_directories( | ||
. | ||
${THIRD_PARTY_FOLDER}/clapack/3.2.1/INCLUDE | ||
${THIRD_PARTY_FOLDER}/${RR_LIBSBML}/src | ||
) | ||
|
||
#add_library(${target} SHARED ${sources}) | ||
# | ||
#set_property(TARGET ${target} | ||
# PROPERTY COMPILE_DEFINITIONS | ||
# WIN32 | ||
# SHARED_NLEQ | ||
# ) | ||
# | ||
#Then the static version | ||
add_library(${target}-static STATIC ${sources}) | ||
|
||
set(static_compile_definitions | ||
STATIC_LIBSTRUCT | ||
LIBSBML_USE_CPP_NAMESPACE | ||
LIBSBML_STATIC | ||
) | ||
|
||
if(WIN32) | ||
set(static_compile_definitions | ||
${static_compile_definitions} | ||
WIN32 | ||
) | ||
endif() | ||
|
||
set_property(TARGET ${target}-static | ||
PROPERTY COMPILE_DEFINITIONS | ||
${static_compile_definitions} | ||
) | ||
|
||
#libraries to link with | ||
if(${MINGW}) | ||
else() | ||
#target_link_libraries (${target} libf2c) | ||
#target_link_libraries (${target}-static libf2c) | ||
endif() | ||
|
||
set(headers | ||
lsExporter.h | ||
lsMatrix.h | ||
lsLibStructural.h | ||
lsLA.h | ||
lsLibla.h | ||
lsLUResult.h | ||
) | ||
|
||
#Install required files | ||
install(FILES ${headers} | ||
DESTINATION include/rr-libstruct) | ||
|
||
#install(TARGETS ${target} | ||
# LIBRARY DESTINATION lib | ||
# ARCHIVE DESTINATION lib | ||
# RUNTIME DESTINATION bin) | ||
# | ||
install(TARGETS ${target}-static | ||
LIBRARY DESTINATION lib | ||
ARCHIVE DESTINATION lib) | ||
|
||
CMAKE_MINIMUM_REQUIRED(VERSION 2.8) | ||
project(rr-libstruct) | ||
|
||
# Option that allows users to build static and/or shared libraries | ||
# ---------------------------------------------------------------- | ||
OPTION(LIBSTRUCT_BUILD_STATIC_LIBS "Build static libraries" ON) | ||
OPTION(LIBSTRUCT_BUILD_SHARED_LIBS "Build shared libraries" OFF) | ||
set(target rr-libstruct) | ||
|
||
set(sources | ||
lsMatrix | ||
lsLibStructural | ||
lsSBMLModel | ||
lsUtils | ||
lsLibla | ||
lsLA | ||
lsLUResult | ||
) | ||
|
||
|
||
include_directories( | ||
. | ||
${THIRD_PARTY_FOLDER}/clapack/3.2.1/INCLUDE | ||
${THIRD_PARTY_FOLDER}/${RR_LIBSBML}/src | ||
) | ||
|
||
#add_library(${target} SHARED ${sources}) | ||
# | ||
#set_property(TARGET ${target} | ||
# PROPERTY COMPILE_DEFINITIONS | ||
# WIN32 | ||
# SHARED_NLEQ | ||
# ) | ||
# | ||
#Then the static version | ||
add_library(${target}-static STATIC ${sources}) | ||
|
||
set(static_compile_definitions | ||
STATIC_LIBSTRUCT | ||
LIBSBML_USE_CPP_NAMESPACE | ||
LIBSBML_STATIC | ||
) | ||
|
||
if(WIN32) | ||
set(static_compile_definitions | ||
${static_compile_definitions} | ||
WIN32 | ||
) | ||
endif() | ||
|
||
set_property(TARGET ${target}-static | ||
PROPERTY COMPILE_DEFINITIONS | ||
${static_compile_definitions} | ||
) | ||
|
||
#libraries to link with | ||
if(${MINGW}) | ||
else() | ||
#target_link_libraries (${target} libf2c) | ||
#target_link_libraries (${target}-static libf2c) | ||
endif() | ||
|
||
set(headers | ||
lsExporter.h | ||
lsMatrix.h | ||
lsLibStructural.h | ||
lsLA.h | ||
lsLibla.h | ||
lsLUResult.h | ||
) | ||
|
||
#Install required files | ||
install(FILES ${headers} | ||
DESTINATION include/rr-libstruct) | ||
|
||
#install(TARGETS ${target} | ||
# LIBRARY DESTINATION lib | ||
# ARCHIVE DESTINATION lib | ||
# RUNTIME DESTINATION bin) | ||
# | ||
install(TARGETS ${target}-static | ||
LIBRARY DESTINATION lib | ||
ARCHIVE DESTINATION lib) | ||
|
Oops, something went wrong.