quicktex/CMakeLists.txt

17 lines
466 B
CMake
Raw Normal View History

2021-01-28 22:40:01 +00:00
cmake_minimum_required(VERSION 3.17)
project(python_rgbcx)
2021-01-29 00:24:30 +00:00
# Setup pybind
add_subdirectory(extern/pybind11)
2021-01-28 22:40:01 +00:00
# Make the python_rgbcx module
add_library(python_rgbcx MODULE src/main.cpp src/rgbcx.cpp)
# Link to Pybind
target_link_libraries(python_rgbcx PRIVATE pybind11::module pybind11::lto)
pybind11_extension(python_rgbcx)
pybind11_strip(python_rgbcx)
2021-01-29 00:24:30 +00:00
# Set module features, like C/C++ standards
target_compile_features(python_rgbcx PUBLIC cxx_std_14 c_std_11)