add_library(Colobot-Common STATIC) if(NOT CBOT_STATIC) # required to use static library inside CBot shared library set_property(TARGET Colobot-Common PROPERTY POSITION_INDEPENDENT_CODE ON) endif() target_sources(Colobot-Common PRIVATE src/common/stringutils.cpp src/common/stringutils.h ) if(WIN32) target_sources(Colobot-Common PRIVATE src/common/stringutils_windows.cpp ) else() target_sources(Colobot-Common PRIVATE src/common/stringutils_generic.cpp ) endif() target_include_directories(Colobot-Common PUBLIC $ )