Skip to content

Instantly share code, notes, and snippets.

@Paxa
Created August 11, 2010 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Paxa/519389 to your computer and use it in GitHub Desktop.
Save Paxa/519389 to your computer and use it in GitHub Desktop.
Pavel:vertexdb pavel$ cmake .
-- Found TokyoCabinet: /usr/local/lib/libtokyocabinet.dylib
-- Found Yajl: /usr/local/lib/libyajl.dylib
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/pavel/Sites/vertexdb
Pavel:vertexdb pavel$ make
[100%] Building C object CMakeFiles/vartextdb.dir/source/main.c.o
In file included from /Users/pavel/Sites/vertexdb/source/VertexServer.h:5,
from /Users/pavel/Sites/vertexdb/source/main.c:2:
/Users/pavel/Sites/vertexdb/source/httpserver/HttpServer.h:11:19: error: event.h: No such file or directory
/Users/pavel/Sites/vertexdb/source/httpserver/HttpServer.h:12:20: error: evhttp.h: No such file or directory
make[2]: *** [CMakeFiles/vartextdb.dir/source/main.c.o] Error 1
make[1]: *** [CMakeFiles/vartextdb.dir/all] Error 2
make: *** [all] Error 2
cmake_minimum_required(VERSION 2.8)
project(vertexdb C)
include_directories(source source/pdb source/httpserver source/basekit/source source/store source/basekit/source/simd_cph/include)
add_definitions(-O0 -g)
add_executable (vartextdb source/main)
SET(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/modules/")
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/_build/binaries)
find_package(Event)
TARGET_LINK_LIBRARIES(vartextdb ${Event_LIBRARIES})
find_package(TokyoCabinet)
TARGET_LINK_LIBRARIES(vartextdb ${TokyoCabinet_LIBRARIES})
find_package(yajl)
TARGET_LINK_LIBRARIES(vartextdb ${yajl_LIBRARIES})
link_directories(/opt/local/include /opt/local/include)
TARGET_LINK_LIBRARIES(vartextdb ${bz2_LIBRARIES})
TARGET_LINK_LIBRARIES(vartextdb ${zip_LIBRARIES})
TARGET_LINK_LIBRARIES(vartextdb ${z_LIBRARIES})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment