We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d5fe17 commit d126a71Copy full SHA for d126a71
2 files changed
CMakeLists.txt
@@ -9,6 +9,7 @@ if (POLICY CMP0091)
9
endif ()
10
11
12
+option(FMU4CPP_BUILD_EXAMPLES "Build example FMUs" OFF)
13
option(FMU4CPP_BUILD_TESTS "Build internal tests" OFF)
14
15
set(CMAKE_CXX_STANDARD 17)
export/CMakeLists.txt
@@ -1,11 +1,14 @@
1
add_subdirectory(src)
2
-add_subdirectory(examples)
+
3
+if (FMU4CPP_BUILD_EXAMPLES)
4
+ add_subdirectory(examples)
5
+endif ()
6
7
# internal executable invoked by CMake to generate the modelDescription.xml from a shared library
8
add_executable(descriptionGenerator "descriptionGenerator.cpp")
if (UNIX)
target_link_libraries(descriptionGenerator PRIVATE dl)
-endif()
if (FMU4CPP_BUILD_TESTS)
Include(FetchContent)
0 commit comments