## @file CMakeLists.txt ## @brief CMake build script for example programs ## @author Frank T. Bergmann ## ## include_directories(${CMAKE_CURRENT_SOURCE_DIR}) include_directories(BEFORE ${LIBSBML_ROOT_SOURCE_DIR}/src) include_directories(${LIBSBML_ROOT_SOURCE_DIR}/include) include_directories(BEFORE ${LIBSBML_ROOT_BINARY_DIR}/src) if (EXTRA_INCLUDE_DIRS) include_directories(${EXTRA_INCLUDE_DIRS}) endif(EXTRA_INCLUDE_DIRS) foreach(example fbc_example1 fbc_example1_v2 ) add_executable(example_fbc_c_${example} ${example}.c ../util.c) set_target_properties(example_fbc_c_${example} PROPERTIES OUTPUT_NAME ${example}) target_link_libraries(example_fbc_c_${example} ${LIBSBML_LIBRARY}-static) endforeach() # install c examples file(GLOB c_samples "${CMAKE_CURRENT_SOURCE_DIR}/*.c" "${CMAKE_CURRENT_SOURCE_DIR}/*.h") install(FILES ${c_samples} DESTINATION ${MISC_PREFIX}examples/c/fbc)