C Make Lists
C Make Lists
C Make Lists
if( UNIX )
if( APPLE )
set( KICAD_USER_CONFIG_DIR $ENV{HOME}/Library/Preferences/kicad
CACHE PATH "Location of user specifig KiCad config files" )
else()
set( KICAD_USER_CONFIG_DIR $ENV{HOME}/.config/kicad
CACHE PATH "Location of user specifig KiCad config files" )
endif()
elseif( MINGW )
set( KICAD_USER_CONFIG_DIR $ENV{APPDATA}/kicad
CACHE PATH "Location of user specifig KiCad config files" )
endif()
mark_as_advanced( KICAD_USER_CONFIG_DIR )
#================================================
# "make uninstall" rules
#================================================
configure_file(
"${PROJECT_SOURCE_DIR}/CMakeModules/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY )
add_custom_target( uninstall
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" )