Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (25 sloc) 830 Bytes
# This file wraps the CMake build system for FMI Library, and is used by
# Jenkins to build some predetermined configurations, do testing as a separate
# stage, and build the documentation.
include $(CONFIG_FILE)
.PHONY: install test documentation generate clean
install: generate
cd $(BUILD_DIR) && \
cmake --build . --config MinSizeRel --target '$@'
test: generate
cd $(BUILD_DIR) && \
ctest -C MinSizeRel
documentation: generate
cd $(BUILD_DIR) && \
make doc
generate:
mkdir $(BUILD_DIR) || true
cd $(BUILD_DIR) && \
cmake -DFMILIB_INSTALL_PREFIX=../$(INSTALL_DIR) \
-DFMILIB_GENERATE_DOXYGEN_DOC=$(GENERATE_DOXYGEN_DOC) \
-DFMILIB_BUILD_WITH_STATIC_RTLIB=$(BUILD_WITH_STATIC_RTLIB) \
-DFMILIB_BUILD_TESTS=$(BUILD_TESTS) \
-G $(GENERATOR) \
../$(SRC_DIR)
clean:
rm -rf -v build-* install-*
You can’t perform that action at this time.