Fixing build for python wrapper

This commit is contained in:
Michael Tryby
2018-08-28 11:23:30 -04:00
parent 21ab62cfd4
commit bdfe7ec289
4 changed files with 8 additions and 10 deletions

View File

@@ -75,12 +75,11 @@ source_group("Library" FILES ${EPANET_LIB_ALL})
# the shared library
add_library(epanet SHARED ${EPANET_SOURCES}) #${EPANET_API_HEADER})
add_library(epanet SHARED ${EPANET_SOURCES})
target_include_directories(epanet PUBLIC ${PROJECT_SOURCE_DIR}/include)
# create export lib so we can link against dll using Visual Studio
add_definitions(-D WITH_GENX)
include(GenerateExportHeader)
GENERATE_EXPORT_HEADER(epanet
BASE_NAME epanet