mirror of
https://github.com/davidallendj/gdpm.git
synced 2025-12-19 19:17:01 -07:00
Major refactor and API changes
- Updated `.gitignore` file - Updated `CMakeLists.txt` to build static exectuable - Changed some `Doxyfile` configurations to build more robust and complete documentation (WIP) - Changed how `remote` works to better reflect `git`'s API (WIP) - Changed how error handling works - Improved `bin/compile.sh` script - Improved `bin/lines.sh` script (kinda) - Removed some instances of `fmt` in favor of `std` string functions - Restructed style for better readibility
This commit is contained in:
parent
ba23299777
commit
5a73651ad1
29 changed files with 1836 additions and 1140 deletions
|
|
@ -43,25 +43,30 @@ set(LINK_LIBS
|
|||
SQLiteCpp
|
||||
-lcurlpp
|
||||
-lzip
|
||||
-lsqlite3
|
||||
-lcurl
|
||||
)
|
||||
|
||||
# Set library and executable targets
|
||||
add_library(${PROJECT_NAME}-shared SHARED "${SRC}")
|
||||
add_library(${PROJECT_NAME}-static STATIC "${SRC}")
|
||||
add_executable(${PROJECT_NAME} "src/main.cpp")
|
||||
add_executable(${PROJECT_NAME}-tests "${TESTS}")
|
||||
add_executable(${PROJECT_NAME}.static "src/main.cpp")
|
||||
add_executable(${PROJECT_NAME}.tests "${TESTS}")
|
||||
|
||||
# Set include directories for targets
|
||||
target_include_directories(${PROJECT_NAME} PRIVATE ${INCLUDE_DIRS})
|
||||
target_include_directories(${PROJECT_NAME}.static PRIVATE ${INCLUDE_DIRS})
|
||||
target_include_directories(${PROJECT_NAME}.tests PRIVATE ${INCLUDE_DIRS})
|
||||
target_include_directories(${PROJECT_NAME}-shared PRIVATE ${INCLUDE_DIRS})
|
||||
target_include_directories(${PROJECT_NAME}-static PRIVATE ${INCLUDE_DIRS})
|
||||
target_include_directories(${PROJECT_NAME}-tests PRIVATE ${INCLUDE_DIRS})
|
||||
|
||||
# Set link libraries for targets
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE ${PROJECT_NAME}-shared ${LINK_LIBS})
|
||||
target_link_libraries(${PROJECT_NAME}.static PRIVATE ${PROJECT_NAME}-static ${LINK_LIBS})
|
||||
target_link_libraries(${PROJECT_NAME}.tests PRIVATE ${PROJECT_NAME}-shared ${LINK_LIBS})
|
||||
target_link_libraries(${PROJECT_NAME}-shared PRIVATE ${LINK_LIBS})
|
||||
target_link_libraries(${PROJECT_NAME}-static PRIVATE ${LINK_LIBS})
|
||||
target_link_libraries(${PROJECT_NAME}-tests PRIVATE ${PROJECT_NAME}-shared ${LINK_LIBS})
|
||||
|
||||
# Add project unit tests
|
||||
# add_custom_target("${PROJECT_NAME}-tests" SOURCE ${TESTS})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue