Set include_directories in CMakeLists.txt

This commit is contained in:
LuK1337 2016-12-25 12:35:06 +01:00
parent afc72efcd8
commit 11025e6484
1 changed files with 3 additions and 1 deletions

View File

@ -1,9 +1,11 @@
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8)
project(cstrike-basehook) project(cstrike-basehook)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -std=c++14 -I./include -m32 -Wall -Wextra -Wpedantic") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -std=c++14 -m32 -Wall -Wextra -Wpedantic")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -static-libstdc++ -m32 -lSDL2") set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -static-libstdc++ -m32 -lSDL2")
include_directories("include")
file(GLOB_RECURSE SOURCE_FILES src/*.cpp include/*.cpp) file(GLOB_RECURSE SOURCE_FILES src/*.cpp include/*.cpp)
add_library(cstrike-basehook SHARED ${SOURCE_FILES}) add_library(cstrike-basehook SHARED ${SOURCE_FILES})