improves file availability from cmake-generated projects

This commit is contained in:
Sam Hatchett
2018-01-11 14:16:20 -05:00
parent 70c38b0d85
commit e1acb5a601

View File

@@ -47,7 +47,11 @@ ENDIF(APPLE)
# the library # the library
include_directories(include) include_directories(include)
file(GLOB EPANET_SOURCES src/*.c) file(GLOB EPANET_SOURCES src/*.c)
add_library(epanet STATIC ${EPANET_SOURCES}) file(GLOB EPANET_HEADERS src/*.h)
file(GLOB EPANET_DATA src/*.dat)
set(EPANET_API_HEADER "include/epanet2.h")
add_library(epanet STATIC ${EPANET_SOURCES} ${EPANET_HEADERS} ${EPANET_DATA} ${EPANET_API_HEADER})
# the standalone executable # the standalone executable
include_directories(src) include_directories(src)