Compare commits
1 Commits
410f9190fc
...
f0f9240b24
Author | SHA1 | Date | |
---|---|---|---|
f0f9240b24 |
@ -29,9 +29,14 @@ set(HEADERS
|
|||||||
src/main.h)
|
src/main.h)
|
||||||
|
|
||||||
|
|
||||||
set(PRODUCTION true)
|
|
||||||
add_definitions(-DPRODUCTION=${PRODUCTION})
|
|
||||||
add_executable(${PROJECT_NAME} ${SOURCES} ${HEADERS})
|
add_executable(${PROJECT_NAME} ${SOURCES} ${HEADERS})
|
||||||
|
IF(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
|
add_compile_definitions(DEBUG=1)
|
||||||
|
ELSE()
|
||||||
|
add_compile_definitions(DEBUG=0)
|
||||||
|
ENDIF()
|
||||||
|
message(STATUS "Build type is " ${CMAKE_BUILD_TYPE})
|
||||||
|
|
||||||
|
|
||||||
install(TARGETS ${PROJECT_NAME}
|
install(TARGETS ${PROJECT_NAME}
|
||||||
RUNTIME DESTINATION bin)
|
RUNTIME DESTINATION bin)
|
||||||
|
@ -11,10 +11,11 @@
|
|||||||
const static std::string homeDirectory = getpwuid(getuid())->pw_dir;
|
const static std::string homeDirectory = getpwuid(getuid())->pw_dir;
|
||||||
const static std::string configD = homeDirectory + "/.config/budget/";
|
const static std::string configD = homeDirectory + "/.config/budget/";
|
||||||
const static std::string storageD = homeDirectory + "/.local/share/budget/";
|
const static std::string storageD = homeDirectory + "/.local/share/budget/";
|
||||||
#if PRODUCTION == true
|
|
||||||
const static std::string databaseFile = homeDirectory + "/.local/share/budget/budget.sqlite";
|
#if DEBUG
|
||||||
|
const static std::string databaseFile = homeDirectory + "/.local/share/budget/budgetDebug.sqlite";
|
||||||
#else
|
#else
|
||||||
const static std::string databaseFile = homeDirectory + "/.local/share/budget/budgetDebug.sqlite";
|
const static std::string databaseFile = homeDirectory + "/.local/share/budget/budget.sqlite";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user