Skip to content

Commit

Permalink
statics
Browse files Browse the repository at this point in the history
  • Loading branch information
thorstink committed Oct 4, 2024
1 parent 12f831d commit b83209a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions symmetri/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion symmetri/gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

0 comments on commit b83209a

Please sign in to comment.