pystring new package

This commit is contained in:
Rmys
2021-06-30 12:17:50 +03:00
parent 8cc1882910
commit bdd188855b
8 changed files with 187 additions and 6 deletions
@@ -0,0 +1,31 @@
project(pystring
LANGUAGES CXX
)
cmake_minimum_required(VERSION 3.0)
set(CMAKE_CXX_FLAGS "-O3 -Wall -Wextra -Wshadow -Wconversion -Wcast-qual -Wformat=2 ${CMAKE_CXX_FLAGS}")
include(GNUInstallDirs)
mark_as_advanced(CLEAR CMAKE_INSTALL_LIBDIR
CMAKE_INSTALL_INCLUDEDIR
)
add_library(pystring SHARED
pystring.cpp
)
set_target_properties(pystring PROPERTIES
SOVERSION 0.0
)
install(TARGETS pystring
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
install(FILES pystring.h
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/pystring
)
add_executable(test pystring.cpp test.cpp)
target_compile_definitions(test PRIVATE PYSTRING_UNITTEST=1)