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
|
|
|
|
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
|
|
|
|
)
|