moved common sources to submoudle
This commit is contained in:
@@ -33,14 +33,10 @@ foreach(file IN LISTS TEMPLATE_FILES)
|
||||
configure_file("${file}" "${CMAKE_BINARY_DIR}/${rel_path}" COPYONLY)
|
||||
endforeach()
|
||||
|
||||
# warnings to ignore
|
||||
add_compile_options(-Wno-deprecated-declarations)
|
||||
add_compile_options(-Wno-deprecated-literal-operator)
|
||||
|
||||
# Use Crow from system include (installed via yay -S crow + asio)
|
||||
include_directories(
|
||||
/usr/include
|
||||
include/libs
|
||||
modules/cpp-libraries/src/
|
||||
src
|
||||
src/htmx
|
||||
src/shadowrun
|
||||
@@ -49,6 +45,13 @@ include_directories(
|
||||
)
|
||||
|
||||
add_executable(${TARGET_NAME}
|
||||
# sqlite3
|
||||
modules/cpp-libraries/src/sqlite3.c
|
||||
modules/cpp-libraries/src/sqlite3.h
|
||||
modules/cpp-libraries/src/json.hpp
|
||||
modules/cpp-libraries/src/magic_enum.hpp
|
||||
modules/cpp-libraries/src/sqlite_orm.h
|
||||
|
||||
src/main.cpp
|
||||
src/utils.hpp
|
||||
src/utils.cpp
|
||||
@@ -88,9 +91,17 @@ add_executable(${TARGET_NAME}
|
||||
|
||||
)
|
||||
|
||||
# warnings to ignore
|
||||
target_compile_options(${TARGET_NAME} PRIVATE
|
||||
$<$<COMPILE_LANGUAGE:CXX>:
|
||||
-Wno-deprecated-literal-operator
|
||||
-Wno-deprecated-declarations
|
||||
>
|
||||
)
|
||||
|
||||
target_compile_definitions(${TARGET_NAME} PRIVATE APPLICATION_NAME="${TARGET_NAME}")
|
||||
|
||||
target_link_libraries(${TARGET_NAME} pthread sqlite3 sodium)
|
||||
target_link_libraries(${TARGET_NAME} pthread sodium)
|
||||
|
||||
# Optional: Print build type at configuration time
|
||||
message(STATUS "Configuring build type: ${CMAKE_BUILD_TYPE}")
|
||||
Reference in New Issue
Block a user