Commit d1e3abb1 authored by Loic Guegan's avatar Loic Guegan
Browse files

Simplify the use of local WxWidgets project.

parent 915dd7cf
Pipeline #151364812 passed with stage
in 7 minutes and 59 seconds
......@@ -5,7 +5,7 @@
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
<provider copy-of="extension" id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser"/>
<provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector" console="false" env-hash="140741070326236242" id="org.eclipse.cdt.managedbuilder.core.GCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector" console="false" env-hash="-1514857841696623615" id="org.eclipse.cdt.managedbuilder.core.GCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<language-scope id="org.eclipse.cdt.core.gcc"/>
<language-scope id="org.eclipse.cdt.core.g++"/>
</provider>
......
......@@ -12,6 +12,15 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wall -Wextra") # Be hard-liner
########## DEPENDENCIES ##########
# Find boost
set(LOCAL_WX "${CMAKE_CURRENT_BINARY_DIR}/WX")
if(EXISTS "${LOCAL_WX}")
message(STATUS "Using local WxWidgets ${LOCAL_WX}")
#set(wxWidgets_ROOT_DIR "${LOCAL_WX}")
set(wxWidgets_CONFIG_EXECUTABLE "${LOCAL_WX}/build/wx-config")
set(wxWidgets_wxrc_EXECUTABLE "${LOCAL_WX}/lib/wxrc")
else()
message(STATUS "Note that you can use your own local WxWidgets project by placing it into ${LOCAL_WX}. Thus, WxWidgets should be compiled in ${LOCAL_WX}/build.")
endif()
find_package(Boost 1.65 REQUIRED COMPONENTS log log_setup) # Logging component need to be explicitely specified :(
add_definitions(-DBOOST_LOG_DYN_LINK=1) # To avoid linker error on DEBIAN (cf: https://stackoverflow.com/questions/23137637/linker-error-while-linking-boost-log-tutorial-undefined-references)
include_directories(${Boost_INCLUDE_DIRS})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment