mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Having thread pool as its own singleton in the library meant that each kiface had its own threadpool, leading to many multiples of the threads being started. Placing a singleton class in PGM_BASE ensures that all kifaces use the same thread pool. The singleton class can be extended to provide single instance guarantee for any element across kifaces
25 lines
538 B
CMake
25 lines
538 B
CMake
# Add all the warnings to the files
|
|
if( COMPILER_SUPPORTS_WARNINGS )
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WARN_FLAGS_CXX}")
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WARN_FLAGS_C}")
|
|
endif()
|
|
|
|
|
|
add_library( core STATIC
|
|
base64.cpp
|
|
observable.cpp
|
|
profile.cpp
|
|
utf8.cpp
|
|
version_compare.cpp
|
|
wx_stl_compat.cpp
|
|
)
|
|
|
|
target_link_libraries( core PUBLIC
|
|
${wxWidgets_LIBRARIES}
|
|
)
|
|
|
|
target_include_directories( core PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
PRIVATE
|
|
${CMAKE_BINARY_DIR} # to get config.h
|
|
) |