From 33edb5ba5775182bb6054fc91e121df225ffdd46 Mon Sep 17 00:00:00 2001 From: Sam Hatchett Date: Fri, 12 Jun 2015 10:34:12 -0400 Subject: [PATCH] cmake --- build/CMake/CMakeLists.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 build/CMake/CMakeLists.txt diff --git a/build/CMake/CMakeLists.txt b/build/CMake/CMakeLists.txt new file mode 100644 index 0000000..5aaa576 --- /dev/null +++ b/build/CMake/CMakeLists.txt @@ -0,0 +1,18 @@ +## cmake . +## make + +cmake_minimum_required (VERSION 2.6) + +SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin) +SET(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin) + +project (EPANET) + +# the library +include_directories(../../include) +add_library(epanet STATIC ../../src/epanet.c ../../src/hydraul.c ../../src/hash.c ../../src/inpfile.c ../../src/input1.c ../../src/input2.c ../../src/input3.c ../../src/mempool.c ../../src/output.c ../../src/quality.c ../../src/report.c ../../src/rules.c ../../src/smatrix.c) + +# the standalone executable +include_directories(../../src) +add_executable(runepanet ../../run/main.c) +target_link_libraries (runepanet LINK_PUBLIC epanet)