Project

General

Profile

Wt cmake Could NOT find Boost » CMakeLists.txt

Gunnar Skogsholm, 12/14/2020 09:59 PM

 
# C:\Dev\Couloir\Generic\REF\HelloWorld.Wt.http.web

add_compile_definitions(LINUX WEB FMT_EXPORT SPDLOG_WCHAR_FILENAMES PUGIXML_WCHAR_MODE PUGIXML_NO_EXCEPTIONS BOOST_LIB_DIAGNOSTIC UNICODE)
add_compile_options(-std=c++17)
set(Boost_USE_STATIC_LIBS ON) # only find static libs
set(Boost_USE_DEBUG_LIBS OFF) # ignore debug libs and
set(Boost_USE_RELEASE_LIBS ON) # only find release libs
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
#set(BOOST_LIBRARYDIR /mnt/c/Dev/Couloir/3pLibs/ubuntu/vcpkg/installed/x64-linux/lib)
set(BOOST_ROOT /mnt/c/Dev/Couloir/3pLibs/boost_1_75_0)# ../../../3pLibs/boost_1_75_0)

add_subdirectory(../../../3pLibs/wt-4 wt-build)

add_executable(HelloWorld.Wt.http.web-Linux HelloWorld.Wt.http.web.cpp)
#target_include_directories(HelloWorld.Wt.http.web-Linux PUBLIC ../../../3pLibs/ubuntu/vcpkg/installed/x64-linux/include)

target_include_directories(HelloWorld.Wt.http.web-Linux PUBLIC ../../../3pLibs/Include)
target_include_directories(HelloWorld.Wt.http.web-Linux PUBLIC ../../../Generic/AFX/MVC/CouloirAFX/Include)
target_include_directories(HelloWorld.Wt.http.web-Linux PUBLIC ../../../Generic/AFX/MVC/CouloirMVC/Include)
target_include_directories(HelloWorld.Wt.http.web-Linux PUBLIC ../../../Generic/AFX/MVC/DataBase/Include)
target_include_directories(HelloWorld.Wt.http.web-Linux PUBLIC ../../../Generic/AFX/Graphical/Graphics/Include)
target_include_directories(HelloWorld.Wt.http.web-Linux PUBLIC ../../../Generic/OSI/Web/Include)
target_include_directories(HelloWorld.Wt.http.web-Linux PUBLIC ../../../Generic/OSI/WebUI/Include)
target_include_directories(HelloWorld.Wt.http.web-Linux PUBLIC ../../../Generic/PFM/RelationalDB/Include)
target_include_directories(HelloWorld.Wt.http.web-Linux PUBLIC ../../../Generic/PFM/Symbolic/Include)
target_include_directories(HelloWorld.Wt.http.web-Linux PUBLIC ../../../Generic/PFM/CouloirPFM/Include)
    (1-1/1)