You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
623 B
27 lines
623 B
# 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
|
|
thread_pool.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
|
|
$<TARGET_PROPERTY:thread-pool,INTERFACE_INCLUDE_DIRECTORIES>
|
|
PRIVATE
|
|
${CMAKE_BINARY_DIR} # to get config.h
|
|
)
|