I've been trying to download and build the Stanford Library source files and build a library out of them to use for my own project using the CLion (IDE). I've been following instructions from this answer and my CMakeLists file looks like this:
cmake_minimum_required(VERSION 3.3)
project(Stanford)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_BUILD_TYPE Release)
file(GLOB MyHeaders "*.h" /stacktrace/"*.h" private/"*.h")
file(GLOB MySources "*.cpp" /stacktrace/"*.cpp" private/"*.cpp")
include_directories(MyHeaders)
add_library(Stanford SHARED ${MySources} ${MyHeaders})
target_include_directories (Stanford PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
When opening the run menu, I get the following:
If I tell it to build anyway I get the following errors.
I've been struggling to find out what why I need an executable to build a library and what those undefined references mean.