Fixes win_build and VS/cmake build problems

This commit is contained in:
Lew Rossman
2019-02-11 14:30:15 -05:00
parent d6d244d4d2
commit 3eb9a68783
6 changed files with 5 additions and 14 deletions

View File

@@ -116,6 +116,7 @@ ELSE (BUILD_PY_LIB)
add_library(epanet2 SHARED ${EPANET_LIB_ALL})
else(NOT WIN32)
add_library(epanet2 SHARED ${EPANET_LIB_ALL} ${PROJECT_SOURCE_DIR}/include/epanet2.def)
set_source_files_properties(${PROJECT_SOURCE_DIR}/include/epanet2.def PROPERTIES_HEADER_FILE_ONLY TRUE)
endif(NOT WIN32)
target_include_directories(epanet2 PUBLIC ${PROJECT_SOURCE_DIR}/include)