Browse Source

Finally it compiles

master
Joshua Moerman 12 years ago
parent
commit
cf821b1af4
  1. 4
      .gitignore
  2. 33
      CMakeLists.txt
  3. 2
      main.cpp
  4. 9
      run

4
.gitignore

@ -0,0 +1,4 @@
.DS_Store
build
*.sublime-workspace

33
CMakeLists.txt

@ -0,0 +1,33 @@
cmake_minimum_required(VERSION 2.8)
#include(motor/cmake/set_system_include_flag.cmake)
#include(motor/cmake/address_sanitizer.cmake)
#include(motor/cmake/enable_gnu11.cmake)
#include(motor/cmake/warning_settings.cmake)
#get_sane_warning_flags(warnings)
#include(motor/cmake/join.cmake)
#join("${warnings}" " " warnings)
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${warnings}")
project(server)
add_subdirectory(${PROJECT_SOURCE_DIR}/contrib/libwebsockets/)
find_package(Boost 1.48 REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})
set(boost ${Boost_LIBRARIES})
include_directories("${PROJECT_SOURCE_DIR}")
include_directories(SYSTEM "${PROJECT_SOURCE_DIR}/contrib/libwebsockets/")
set(all_friggin_libraries ${boost} websockets_shared)
add_executable(server main.cpp)
target_link_libraries(server ${all_friggin_libraries})

2
main.cpp

@ -36,7 +36,7 @@
#include "lws_config.h"
#endif
#include "lib/libwebsockets.h"
#include <lib/libwebsockets.h>
int force_exit = 0;

9
run

@ -0,0 +1,9 @@
#!/bin/bash
mkdir -p build
cd build
cmake ..
make -j8
cd ..
./build/server