Removed Boost dependency, changed MySQL library to MariaDB
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
cmake_minimum_required(VERSION 3.8)
|
||||
|
||||
project(quest CXX)
|
||||
|
||||
@ -7,19 +7,13 @@ file(GLOB_RECURSE sources
|
||||
src/*.c
|
||||
)
|
||||
|
||||
# Add the src directory to the include path
|
||||
include_directories(src)
|
||||
|
||||
# Find dependencies
|
||||
find_package(Boost REQUIRED)
|
||||
|
||||
add_executable(${PROJECT_NAME} ${sources})
|
||||
set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "qc")
|
||||
|
||||
# Link dependencies if found
|
||||
if (Boost_FOUND)
|
||||
include_directories(${Boost_INCLUDE_DIRS})
|
||||
target_link_libraries (${PROJECT_NAME} ${Boost_LIBRARIES})
|
||||
endif (Boost_FOUND)
|
||||
# Find and link dependencies
|
||||
|
||||
# liblua
|
||||
target_link_libraries(${PROJECT_NAME} liblua)
|
||||
target_include_directories(${PROJECT_NAME} PUBLIC . ../liblua)
|
Reference in New Issue
Block a user