Think cmake is figured out
This commit is contained in:
@@ -4,6 +4,7 @@ project(daggy)
|
||||
|
||||
file(GLOB SOURCES src/*.cpp)
|
||||
add_library(${PROJECT_NAME} STATIC ${SOURCES})
|
||||
include_directories(${PISTACHE_INCLUDE_DIR})
|
||||
target_include_directories(${PROJECT_NAME} PUBLIC include)
|
||||
add_dependencies(${PROJECT_NAME} pistache)
|
||||
target_link_libraries(${PROJECT_NAME} pistache pthread)
|
||||
add_dependencies(${PROJECT_NAME} PistacheDownload)
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
namespace daggy {
|
||||
class Server {
|
||||
public:
|
||||
Server(Address addr)
|
||||
Server(Pistache::Address addr)
|
||||
: endpoint_(addr)
|
||||
, desc("Daggy API", "0.1")
|
||||
{}
|
||||
@@ -23,7 +23,7 @@ namespace daggy {
|
||||
|
||||
Pistache::Http::Endpoint endpoint_;
|
||||
Pistache::Rest::Description desc_;
|
||||
Pistache::Router router_;
|
||||
Pistache::Http::Router router_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user