X-Git-Url: https://harrygodden.com/git/?p=convexer.git;a=blobdiff_plain;f=nbvtf%2FCMakeLists.txt;fp=nbvtf%2FCMakeLists.txt;h=8b3eb41023283e39f9638f300ffecd43c6651319;hp=0000000000000000000000000000000000000000;hb=05e7fa40fd47dd5bfeaa1de9e9eba73319ae8564;hpb=23283f27eb4a14456ba00dc05e83bf19ad71b1a6 diff --git a/nbvtf/CMakeLists.txt b/nbvtf/CMakeLists.txt new file mode 100644 index 0000000..8b3eb41 --- /dev/null +++ b/nbvtf/CMakeLists.txt @@ -0,0 +1,29 @@ +project( nbvtf ) + +# RGBCX C++ -> C Wrapper object +add_library( rgbcx OBJECT librgbcx.cpp ) + +# NBVTF C object +add_library( onbvtf OBJECT nbvtf.c ) +target_compile_definitions( onbvtf PRIVATE USE_LIBRGBCX ) +set_property( TARGET onbvtf PROPERTY POSITION_INDEPENDENT_CODE ON ) + +# NBVTF Shared object +add_library( ${PROJECT_NAME} SHARED ) +target_link_libraries( ${PROJECT_NAME} PRIVATE rgbcx onbvtf ) + +target_compile_options( ${PROJECT_NAME} + PRIVATE -Wall -Wno-unused-variable -Wno-unused-function + -std=c99 -pedantic +) + +# Extra tools +add_library( otovtf OBJECT vtf_cmd.c nbvtf.h ) +target_compile_definitions( otovtf PRIVATE USE_LIBRGBCX ) +add_executable( tovtf ) +target_link_libraries( tovtf PRIVATE rgbcx otovtf ) + +add_library( otodds OBJECT dds_cmd.c nbvtf.h ) +target_compile_definitions( otodds PRIVATE USE_LIBRGBCX ) +add_executable( todds ) +target_link_libraries( todds PRIVATE rgbcx otodds )