kicad-source/libs/core/CMakeLists.txt
Seth Hillbrand 452e69de85 Move thread pool into true singleton
Thread pool needs to be stored in a single location for all of KiCad
otherwise each kiface will spin up its own pool of persistent threads
2025-01-09 09:03:08 -08:00

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
)