Logo
Explore Help
Sign In
realAscot/kicad-source
1
0
Fork 0
You've already forked kicad-source
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-09-14 02:03:12 +02:00
Code Issues Packages Projects Releases Wiki Activity
kicad-source/thirdparty/dynamic_bitset/CMakeLists.txt

10 lines
302 B
CMake
Raw Normal View History

Reorganize layer numbering F_Cu = 0 B_Cu = 2 Remaining internal copper layers are even and incrementing Non-copper layers are odd and incrementing. This means that we can no longer do things like: for( PCB_LAYER_ID layer = F_Cu; layer <= B_Cu; ++layer) Instead, we have the class LAYER_RANGE: for( PCB_LAYER_ID layer : LAYER_RANGE( F_Cu, B_Cu) ) Similarly, gt/lt tests should not refer to the integer value of the layer. We have functions such as IsCopperLayer to test whether a layer is copper or not. When using the connectivity RTree, the third dimension is layer, so we provide B_Cu with the special INT_MAX value, ensuring that elements between F_Cu and B_Cu will be identified. There is a new, special function GetBoardLayer() for interfacing with CN_ITEMS Similarly, PNS layers remain unchanged and sequential. A set of interface functions is provided to map PNS layers to Board layers and back. This allows the PNS_LAYER_RANGE to function as expected
2024-07-21 10:49:18 -07:00
add_library( dynamic_bitset INTERFACE )
target_include_directories( dynamic_bitset INTERFACE ${CMAKE_CURRENT_SOURCE_DIR} )
target_sources( dynamic_bitset INTERFACE
${CMAKE_CURRENT_SOURCE_DIR}/dynamic_bitset.h
)
Utilize libpopcnt We need to be sure to reference the include when pulling in dynamic_bitset
2025-01-29 08:18:46 -06:00
target_link_libraries( dynamic_bitset INTERFACE popcnt ) # Link with libpopcnt
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.5 Page: 132ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API