You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
quicktex/CMakeLists.txt

21 lines
608 B
CMake

3 years ago
cmake_minimum_required(VERSION 3.17)
project(python_rgbcx)
# Make the python_rgbcx module
set(C_FILES
src/main.cpp
src/rgbcx.cpp src/rgbcx.cpp
src/tables.cpp src/tables.h src/table4.h
src/blocks.cpp src/blocks.h
src/util.h)
add_library(python_rgbcx MODULE ${C_FILES})
# Link to Pybind
add_subdirectory(extern/pybind11)
target_link_libraries(python_rgbcx PRIVATE pybind11::module pybind11::lto)
pybind11_extension(python_rgbcx)
pybind11_strip(python_rgbcx)
3 years ago
# Set module features, like C/C++ standards
target_compile_features(python_rgbcx PUBLIC cxx_std_17 c_std_11)