Skip to content

Instantly share code, notes, and snippets.

@TrainerGuy22
Created December 30, 2013 16:24
Show Gist options
  • Save TrainerGuy22/8184265 to your computer and use it in GitHub Desktop.
Save TrainerGuy22/8184265 to your computer and use it in GitHub Desktop.
cmake_minimum_required (VERSION 2.6)
project (SeePlusPlus)
set(SRC_FOLDER ${PROJECT_SOURCE_DIR}/src)
set(INCLUDE_FOLDER ${PROJECT_SOURCE_DIR}/include)
set(V8_FOLDER ${PROJECT_SOURCE_DIR}/libs/v8/out/native/obj.target/tools/gyp)
set(SRC_FILES ${SRC_FOLDER}/main.cpp ${SRC_FOLDER}/IrcConnection.cpp)
set(INCLUDE_FILES ${INCLUDE_FOLDER}/IrcConnection.h)
include_directories(${SRC_FOLDER} ${INCLUDE_FOLDER} ${V8_FOLDER})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
add_executable (SeePlusPlus ${SRC_FILES} ${INCLUDE_FILES})
target_link_libraries(SeePlusPlus pthread)
target_link_libraries(SeePlusPlus v8_base.ia32)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment