]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | cmake_minimum_required(VERSION 3.5.1) |
2 | project(libpystring C CXX) | |
3 | ||
4 | if(MSVC) | |
5 | add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS) | |
6 | endif() | |
7 | ||
8 | add_library(libpystring pystring.cpp) | |
9 | ||
10 | install( | |
11 | TARGETS libpystring | |
12 | RUNTIME DESTINATION bin | |
13 | LIBRARY DESTINATION lib | |
14 | ARCHIVE DESTINATION lib | |
15 | ) | |
16 | ||
17 | if(NOT DISABLE_INSTALL_HEADERS) | |
18 | install(FILES pystring.h DESTINATION include) | |
19 | endif() |