mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-16 08:38:23 +01:00
working cmake build
git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@9465 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
parent
00f434dca9
commit
a4653c1b19
@ -38,12 +38,13 @@ endif()
|
|||||||
|
|
||||||
# Disable deprecation warnings for standard C and STL functions in VS2005
|
# Disable deprecation warnings for standard C and STL functions in VS2005
|
||||||
# and later
|
# and later
|
||||||
IF(MSVC_VERSION EQUAL 1400 OR MSVC_VERSION GREATER 1400)
|
if(MSVC_VERSION EQUAL 1400 OR MSVC_VERSION GREATER 1400)
|
||||||
ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE)
|
add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
|
||||||
ADD_DEFINITIONS(-D_SCL_SECURE_NO_WARNINGS)
|
add_definitions(-D_SCL_SECURE_NO_WARNINGS)
|
||||||
ENDIF(MSVC_VERSION EQUAL 1400 OR MSVC_VERSION GREATER 1400)
|
endif(MSVC_VERSION EQUAL 1400 OR MSVC_VERSION GREATER 1400)
|
||||||
ADD_DEFINITIONS(-DSWIG_SHARED_OBJ)
|
|
||||||
ADD_DEFINITIONS(-DUSE_PHRQ_ALLOC)
|
add_definitions(-DSWIG_SHARED_OBJ)
|
||||||
|
add_definitions(-DUSE_PHRQ_ALLOC)
|
||||||
|
|
||||||
|
|
||||||
SET(IPhreeqc_SOURCES
|
SET(IPhreeqc_SOURCES
|
||||||
@ -222,13 +223,16 @@ include_directories("${PROJECT_SOURCE_DIR}/src/phreeqcpp")
|
|||||||
include_directories("${PROJECT_SOURCE_DIR}/src/phreeqcpp/PhreeqcKeywords")
|
include_directories("${PROJECT_SOURCE_DIR}/src/phreeqcpp/PhreeqcKeywords")
|
||||||
|
|
||||||
|
|
||||||
OPTION(BUILD_SHARED_LIBS "Build Shared Libraries" OFF)
|
if (STANDALONE_BUILD EQUAL 1)
|
||||||
SET(LIB_TYPE STATIC)
|
option(BUILD_SHARED_LIBS "Build Shared Libraries" OFF)
|
||||||
|
set(LIB_TYPE STATIC)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (BUILD_SHARED_LIBS)
|
if (BUILD_SHARED_LIBS)
|
||||||
SET(LIB_TYPE SHARED)
|
set(LIB_TYPE SHARED)
|
||||||
if (STANDALONE_BUILD EQUAL 1)
|
if (STANDALONE_BUILD EQUAL 1)
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
OPTION(BUILD_CLR_LIBS "Build CLR Libraries" OFF)
|
option(BUILD_CLR_LIBS "Build CLR Libraries" OFF)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user