2023-04-04 23:34:46 +00:00
|
|
|
# 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()
|
|
|
|
|
|
|
|
|
2023-04-07 23:37:49 +00:00
|
|
|
add_library( core STATIC
|
2023-09-07 03:27:08 +00:00
|
|
|
base64.cpp
|
2023-09-07 01:25:24 +00:00
|
|
|
observable.cpp
|
2023-09-07 11:22:10 +00:00
|
|
|
profile.cpp
|
2023-09-08 00:55:16 +00:00
|
|
|
utf8.cpp
|
2023-09-06 21:19:38 +00:00
|
|
|
thread_pool.cpp
|
2023-06-13 16:44:22 +00:00
|
|
|
version_compare.cpp
|
2023-04-07 23:37:49 +00:00
|
|
|
wx_stl_compat.cpp
|
2023-04-04 23:34:46 +00:00
|
|
|
)
|
|
|
|
|
2023-04-07 23:37:49 +00:00
|
|
|
target_link_libraries( core PUBLIC
|
2023-04-04 23:34:46 +00:00
|
|
|
${wxWidgets_LIBRARIES}
|
|
|
|
)
|
|
|
|
|
2023-04-07 23:37:49 +00:00
|
|
|
target_include_directories( core PUBLIC
|
2023-04-04 23:34:46 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include
|
2023-09-06 21:19:38 +00:00
|
|
|
$<TARGET_PROPERTY:thread-pool,INTERFACE_INCLUDE_DIRECTORIES>
|
2023-09-07 11:22:10 +00:00
|
|
|
PRIVATE
|
|
|
|
${CMAKE_BINARY_DIR} # to get config.h
|
2023-09-06 21:19:38 +00:00
|
|
|
)
|