Remove hackshield and unused function, game now compiles and runs
This commit is contained in:
@ -6,7 +6,7 @@ file(GLOB_RECURSE sources
|
||||
src/*.cpp src/*.h
|
||||
)
|
||||
|
||||
include_directories(${PROJECT_BINARY_DIR}/src/system/)
|
||||
include_directories(${PROJECT_BINARY_DIR}/src/)
|
||||
|
||||
include_directories(src/)
|
||||
|
||||
@ -15,18 +15,21 @@ find_package(libmysql REQUIRED)
|
||||
find_package(Boost COMPONENTS system REQUIRED)
|
||||
find_package(DevIL REQUIRED)
|
||||
find_package(LZO REQUIRED)
|
||||
find_package(cryptopp CONFIG REQUIRED)
|
||||
find_package(GTest REQUIRED)
|
||||
|
||||
add_executable(${PROJECT_NAME} ${sources})
|
||||
|
||||
# Link dependencies if found
|
||||
if (libmysql_FOUND)
|
||||
target_link_libraries (${PROJECT_NAME} ${MYSQL_LIBRARIES})
|
||||
endif (libmysql_FOUND)
|
||||
target_link_libraries (${PROJECT_NAME} ${MYSQL_LIBRARIES})
|
||||
|
||||
# Crypto++
|
||||
target_link_libraries (${PROJECT_NAME} cryptopp-static)
|
||||
|
||||
# Boost
|
||||
include_directories(${Boost_INCLUDE_DIR})
|
||||
target_link_libraries (${PROJECT_NAME} ${Boost_LIBRARIES})
|
||||
|
||||
if (Boost_FOUND)
|
||||
include_directories(${Boost_INCLUDE_DIRS})
|
||||
target_link_libraries (${PROJECT_NAME} ${Boost_LIBRARIES} ${Boost_SYSTEM_LIBRARY})
|
||||
endif (Boost_FOUND)
|
||||
|
||||
if (IL_FOUND)
|
||||
include_directories(${IL_INCLUDE_DIR})
|
||||
@ -39,14 +42,12 @@ if (LZO_FOUND)
|
||||
endif (LZO_FOUND)
|
||||
|
||||
|
||||
target_link_libraries(${PROJECT_NAME} md)
|
||||
|
||||
# Pthreads
|
||||
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
||||
find_package (Threads REQUIRED)
|
||||
target_link_libraries (${PROJECT_NAME} Threads::Threads)
|
||||
|
||||
find_package(GTest REQUIRED)
|
||||
# Google test
|
||||
if (GTEST_FOUND)
|
||||
include_directories(${GTEST_INCLUDE_DIRS})
|
||||
target_link_libraries (${PROJECT_NAME} ${GTEST_BOTH_LIBRARIES})
|
||||
|
Reference in New Issue
Block a user