solstice

Compute collected power and efficiencies of a solar plant
git clone git://git.meso-star.com/solstice.git
Log | Files | Refs | README | LICENSE

commit cd15037ed3399d07d77e1104fa030094f068ebef
parent 70ac6d60d813a2658d618c61124339bd9e532ce0
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Wed,  4 Jan 2017 15:15:34 +0100

Fix Windows build.

Still a problem with non-constant global var init.

Diffstat:
Mcmake/CMakeLists.txt | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt @@ -45,6 +45,7 @@ include(rcmake_runtime) include_directories( ${RSys_INCLUDE_DIR} + ${MuslGetopt_INCLUDE_DIR} ${SolAnim_INCLUDE_DIR} ${SolSolver_INCLUDE_DIR} ${StarSP_INCLUDE_DIR} @@ -101,9 +102,13 @@ if(CMAKE_COMPILER_IS_GNUCC) set(MATH_LIB m) endif() +if(MSVC) + set(GETOPT_LIB MuslGetopt) +endif() + add_library(sollib STATIC ${SOLSTICE_FILES_SRC} ${SOLSTICE_FILES_INC}) add_executable(solstice ${SOLSTICE_SOURCE_DIR}/main.c) -target_link_libraries(solstice ${MATH_LIB} +target_link_libraries(solstice ${MATH_LIB} ${GETOPT_LIB} LibYAML RSys sollib solparser solstice-core SolAnim SolSolver Star3DUT) set_target_properties(solstice PROPERTIES VERSION ${VERSION} @@ -118,7 +123,7 @@ if(NOT NO_TEST) add_executable(${_name} ${SOLSTICE_SOURCE_DIR}/${_name}.c ${SOLSTICE_SOURCE_DIR}/test_solstice_utils.h) - target_link_libraries(${_name} ${MATH_LIB} RSys sollib) + target_link_libraries(${_name} ${MATH_LIB} ${GETOPT_LIB} RSys sollib) endfunction() function(new_test _name)