Merge pull request #1 from luk1337/master

Few CMakeLists.txt updates
This commit is contained in:
エイミー 2016-12-25 13:12:50 +00:00 committed by GitHub
commit 6a6ecfd760
1 changed files with 5 additions and 3 deletions

View File

@ -1,11 +1,13 @@
cmake_minimum_required(VERSION 2.8)
project(cstrike-basehook)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -std=c++14 -I./include -m32 -Wall -Wextra -Wpedantic")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -static-libstdc++ -m32 -lSDL2")
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")
include_directories("include")
file(GLOB_RECURSE SOURCE_FILES src/*.cpp include/*.cpp)
add_library(cstrike-basehook SHARED ${SOURCE_FILES})
target_link_libraries(cstrike-basehook)
target_link_libraries(cstrike-basehook SDL2 GL)