1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2024-12-01 01:45:42 +00:00
dindexer/cmake/Modules
King_DuckZ a48742c0b0 Add a DINDEXER_INST_MODE cmake switch.
Attempt to clean up the path mess in cmake and improve scalability.
Previously, paths such as action search path and config file path had to
be given manually and were likely to be wrong if running make install or
if running the program from the build directory directly.

This commit introduces set_switchable(), along with the
DINDEXER_INST_MODE. Whenever relevant, paths come with a regular and an
INST variant (eg: DINDEXER_QML_PATH and DINDEXER_INST_QML_PATH), which
are CACHE variables so users can customize them and expect their setting
to be persistent.
set_switchable() then sets a CURR variant of the same variable (eg:
DINDEXER_CURR_QML_PATH), which is set to either of the above two values
depending on if DINDEXER_INST_MODE is on or off. This way the rest of
the cmake code can just use the CURR variable and expect it to be set to
the right value.
2016-10-12 23:08:29 +02:00
..
Buildlibpqtypes.cmake Use the same compiler passed to cmake for libpqtypes. 2016-05-13 19:54:25 +01:00
Findblkid.cmake Implement autodetect set type. 2015-12-08 13:56:46 +00:00
FindMagic.cmake Add retrieving the mime type. 2015-12-15 11:26:04 +00:00
FindReadline.cmake Use readline 2016-03-15 08:42:01 +01:00
FindYamlCpp.cmake Read db connection parameters from a yml file. 2015-11-11 17:08:17 +00:00
gccversion.cmake Improve compiler version detection in cmake 2016-04-14 20:47:16 +02:00
GetGitRevisionDescription.cmake Print git revision in --version. 2015-12-12 20:27:31 +00:00
GetGitRevisionDescription.cmake.in Print git revision in --version. 2015-12-12 20:27:31 +00:00
set_switchable.cmake Add a DINDEXER_INST_MODE cmake switch. 2016-10-12 23:08:29 +02:00
shared_git_project.cmake Add unlicense license to flat_git. 2016-07-15 15:47:21 +01:00
TargetArch.cmake Conditionally build the Qt5 gui project. 2016-08-10 01:30:28 +02:00
timestamp.cmake Forgot to remove the time from the date 2016-04-22 20:49:51 +02:00
WithMediaAutodetect.cmake Make main dindexer show options used to build. 2015-12-26 14:51:49 +00:00