diff --git a/symmetri/CMakeLists.txt b/symmetri/CMakeLists.txt index 4e39d1f..66b1377 100644 --- a/symmetri/CMakeLists.txt +++ b/symmetri/CMakeLists.txt @@ -12,6 +12,19 @@ add_library(${PROJECT_NAME} SHARED grml_parser.cpp submodules/tinyxml2/tinyxml2.cpp ) + +add_library(static_${PROJECT_NAME} STATIC + types.cpp + tasks.cpp + symmetri.cpp + petri.cpp + petri_traits.cpp + petri_utilities.cpp + pnml_parser.cpp + grml_parser.cpp + submodules/tinyxml2/tinyxml2.cpp +) + add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME}) target_link_libraries(${PROJECT_NAME} PUBLIC pthread) diff --git a/symmetri/gui/CMakeLists.txt b/symmetri/gui/CMakeLists.txt index 1d1352d..5be4c6f 100644 --- a/symmetri/gui/CMakeLists.txt +++ b/symmetri/gui/CMakeLists.txt @@ -69,7 +69,7 @@ else() endif() add_executable(Farbart ${ALL_SOURCES}) -target_link_libraries(Farbart symmetri ${EXTRA_LIBS}) +target_link_libraries(Farbart static_symmetri ${EXTRA_LIBS}) add_executable(generate_icon generate_icon.cpp ../submodules/tinyxml2/tinyxml2.cpp )