mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2025-08-19 15:39:46 +00:00
Reorganize source code in directories.
This commit is contained in:
parent
3a67f0ec29
commit
d8be48d2e8
25 changed files with 50 additions and 27 deletions
11
src/pq/CMakeLists.txt
Normal file
11
src/pq/CMakeLists.txt
Normal file
|
@ -0,0 +1,11 @@
|
|||
project(dindexer-pq CXX)
|
||||
|
||||
add_library(${PROJECT_NAME} STATIC
|
||||
connection.cpp
|
||||
databaseexception.cpp
|
||||
resultset.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
PRIVATE dindexer
|
||||
)
|
|
@ -15,9 +15,9 @@
|
|||
* along with "dindexer". If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "pq/connection.hpp"
|
||||
#include "connection.hpp"
|
||||
#include "pq/databaseexception.hpp"
|
||||
#include "pq/resultinfo.hpp"
|
||||
#include "resultinfo.hpp"
|
||||
#include <libpq-fe.h>
|
||||
#include <algorithm>
|
||||
#include <ciso646>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*/
|
||||
|
||||
#include "pq/resultset.hpp"
|
||||
#include "pq/resultinfo.hpp"
|
||||
#include "resultinfo.hpp"
|
||||
#include "pq/databaseexception.hpp"
|
||||
#include <libpq-fe.h>
|
||||
#include <map>
|
||||
|
|
22
src/update/CMakeLists.txt
Normal file
22
src/update/CMakeLists.txt
Normal file
|
@ -0,0 +1,22 @@
|
|||
project(dindexer-update CXX C)
|
||||
|
||||
add_executable(${PROJECT_NAME}
|
||||
main.cpp
|
||||
filesearcher.cpp
|
||||
pathname.cpp
|
||||
indexer.cpp
|
||||
tiger.c
|
||||
tiger.cpp
|
||||
dbbackend.cpp
|
||||
settings.cpp
|
||||
commandline.cpp
|
||||
)
|
||||
|
||||
target_include_directories(${PROJECT_NAME}
|
||||
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/..
|
||||
PUBLIC ${CMAKE_SOURCE_DIR}/include
|
||||
)
|
||||
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
PRIVATE dindexer
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue